Run locally
Running from a source checkout is the fastest way to develop or evaluate ReviewPhin. It uses your local Node.js instead of the container image.
Prerequisites
Section titled “Prerequisites”- Node.js 22 or newer.
- pnpm (the repo pins a version through
packageManager;corepack enablepicks it up). - The GitHub Copilot CLI on your
PATHif you plan to use the default Copilot model path, or a model profile pointing at another provider.
1. Install dependencies
Section titled “1. Install dependencies”pnpm install --frozen-lockfile2. Configure the environment
Section titled “2. Configure the environment”Copy the example file and edit it. For local runs the worker reads .env:
cp .env.example .envAt minimum, set model authentication. For the Copilot path, set one GitHub token:
GH_TOKEN=github_pat_xxxxxxxxxxxxxxxxxxxxxxxxxxxxFor a BYOK provider, leave GH_TOKEN unset and create a model profile after startup. See environment variables for every setting.
3. Start the worker
Section titled “3. Start the worker”Development mode with reload:
pnpm devOr build and run the compiled output:
pnpm buildpnpm startThe worker listens on port 3000 by default.
4. Check health
Section titled “4. Check health”curl http://localhost:3000/healthz# {"status":"ok"}5. Register a project
Section titled “5. Register a project”Use pnpm cli from a local checkout wherever the docs write reviewphin:
pnpm cli platform connection add \ --name main-gitlab \ --platform gitlab \ --base-url https://gitlab.example.com \ --api-token glpat-xxxxxxxxContinue with platform connections and tenants.
Next steps
Section titled “Next steps”- Local instances are not reachable by GitLab or GitHub yet. Expose the worker with a tunnel before configuring webhooks.
- Previewing the GitHub setup screens without starting the App flow?
pnpm devlogs a/github/setup/samplesURL with sample data.