Review providers
AbstractThe reviewer makes its one model call through one of three provider CLIs. Sign in with your own Cursor, Claude or ChatGPT account, or supply an API key. Every call runs with tools, shell and web search disabled.
The three providers
REVIEW_PROVIDER selects which CLI answers the review. The default is cursor.
| Value | Command | How the CLI is held back | Credential |
|---|---|---|---|
cursor | cursor-agent -p --mode=ask | A workspace configuration that denies shell, file, web and MCP tools | Cursor CLI login, or CURSOR_API_KEY |
claude | claude -p | Tools disabled, one turn, a strict MCP configuration | Claude subscription login, or ANTHROPIC_API_KEY |
codex | codex exec | An ephemeral read-only session, with shell and web search disabled | ChatGPT device login, or CODEX_API_KEY |
All three CLIs are in the image. Whichever you choose, the model receives the patch and the scanner evidence and nothing else, and may return one answer.
Signing in with an account
For a new provider configuration the wizard defaults to CLI sign-in. Existing API-key configurations keep their current method.
The container runs cursor-agent login, codex login --device-auth or claude auth login --claudeai. Follow the CLI's link in your own browser and enter the code where the provider directs you. Codex device login may need to be enabled by your workspace administrator.
With Compose, setup and reviewer share the writable provider-login volume. Protect it like a credential. The sync service has no mount for it. The reviewer checks the sign-in when it starts.
- To switch accounts, attach to setup and press r.
- Use the browser to confirm the repository list and the Cursor team.
- With plain Docker, the default location is
/state/provider-login, inside the state volume. To mount a separate directory, setREVIEW_LOGIN_DIRto the same path for setup and reviewer.
For the authentication details, see each provider's guide: Codex and Claude Code, including its notes on use in other products.
With an API key
REVIEW_AUTH_MODE is api-key by default. Set the key for the selected provider, or point at a file with the matching _FILE variable: CURSOR_API_KEY, ANTHROPIC_API_KEY or CODEX_API_KEY.
For a deployment with no wizard, set REVIEW_PROVIDER to cursor, codex or claude and REVIEW_AUTH_MODE to the mode you want. With login, run the image once with -it, the persistent volumes and the login command before starting the reviewer.
The model
Leave REVIEW_MODEL unset to use the selected CLI's default model, or name a model that provider offers. The command line takes the same choice as --model.
The reviewer launches at most one provider CLI per eligible request that is not already cached, with the same prompt estimate and timeout whichever provider you use.
The cache separates providers, and Cursor teams from one another, so switching never reuses another account's answer.
Cursor teams
Cursor setup uses the CLI's team list and team switch commands.
- With several eligible teams, you choose one by its numeric ID.
- With one, the installer selects it.
- An empty membership list uses personal scope.
- An account with memberships but no selectable team fails setup.
The service rechecks the configured account when it starts, and verifies the active team in an isolated Cursor configuration. For a deployment with no wizard, set REVIEW_CURSOR_TEAM_ID when the account has several eligible teams. A failed lookup or selection stops startup before any review.
What reaches the provider
The provider CLI is started with a small allowlist of environment variables: the home directory, the path, locale settings, the provider's own key, and proxy and TLS settings. Forge credentials and CI secrets stay out of its environment.
The prompt it receives has three parts: the review rubric, a fixed instruction to use only the supplied patch and scanner evidence and to use no tools, and then that evidence and the patch. The answer must be a single JSON object of at most three findings, each citing a line that appears in the patch.
Cost and coverage covers what happens to an answer that breaks those rules.