From install to your first review in four steps
Install the GitHub App, choose an AI provider, merge the setup PR and open a pull request. You approve every workflow change before reviews begin.
Choose how to run ReviewRouter
- Step 1
Install the GitHub App
Install ReviewRouter on the repositories you choose, or request approval from your organization owner. The dashboard then lists those repositories.
- Step 2
Choose an AI provider
Pick Codex, Claude Code, MiMo Token Plan, OpenRouter or Kimi Code in the dashboard. The setup PR is made for the provider you choose, and its usage is billed to your own subscription or API account.
- Step 3
Create and merge the setup PR
Create the setup PR for a repository from the dashboard. It adds the ReviewRouter workflow files on the reviewrouter/setup branch for you to inspect. Merge it, then follow the remaining steps in that repository's row.
- Step 4
Open a pull request
The review runs in GitHub Actions and posts inline findings with a summary. With the Interaction workflow installed, comment /rr help, /rr status or /rr review on the PR.
Before you start
- A Linux x64 server with Docker Compose v2, Git, curl and Node.js 24.21+ or 26.10+.
- Two public DNS names for the web app and the API, with ports 80 and 443 open for automatic HTTPS.
- A GitHub account that can create and install an App, and an AI provider account.
You still approve the GitHub App, connect the provider through GitHub Secrets and approve the workflow setup PR.
Read the self-hosting guideRun the guided installer
SOURCE_SHA=PASTE_APPROVED_40_CHARACTER_COMMIT_SHA
git clone https://github.com/777genius/review-router-ai.git reviewrouter
git -C reviewrouter fetch origin "$SOURCE_SHA"
git -C reviewrouter checkout --detach "$SOURCE_SHA"
cd reviewrouter
bash scripts/install-self-hosted.sh \
--web-url https://review.example.com \
--api-url https://api.review.example.com \
--repo OWNER/REPOSITORYReplace the example domains, repository and commit. Pinning an approved source commit keeps the installation reproducible; the guide also describes an agent-first command for quick evaluations.
Connect an AI provider
Two choices: which provider, and where its credential lives. A GitHub secret keeps it in your repository's Actions; a managed Gateway account keeps it in protected server custody and can be shared across workspaces. Run the commands from your own machine; secret values go directly into GitHub Actions secrets.
Use your Codex subscription for reviews.
- Default model
- gpt-5.6-sol
- Settings
- Reasoning effort, fast mode
Repository sign-in (default)
GitHub secretUse the command the dashboard generates for the selected repository. Generic Codex commands are intentionally not offered.
Server-issued versioned namespace
# Open Dashboard -> Enable review -> Codex for the repository. # Copy and run the complete command generated there. # It downloads an immutable installer to a temporary file, verifies its SHA-256, # and only then executes it with a short-lived, repository-scoped setup nonce.Hosted account pool
Hosted poolWhere the hosted pool is enabled, a workspace account pool serves the review and GitHub Actions only receives a grant bounded to that one invocation, so no Codex credential lives in the repository.
Gateway account
Gateway accountDashboard, Providers, Add account, then Connect Codex OAuth. One managed connection can be shared with several workspaces.
Use a Claude Code subscription or an Anthropic API key.
- Default model
- sonnet
Subscription token
GitHub secretStore only the token that claude setup-token prints. Do not paste local Claude config files.
CLAUDE_CODE_OAUTH_TOKEN
claude setup-token gh secret set CLAUDE_CODE_OAUTH_TOKEN --repo owner/repo --app actionsAnthropic API key
GitHub secretUse normal Anthropic API billing instead of a subscription.
ANTHROPIC_API_KEY
gh secret set ANTHROPIC_API_KEY --repo owner/repo --app actions
Bring your MiMo Token Plan API key.
- Default model
- mimo-v2.6-pro
- Settings
- Reasoning effort, fast mode
API key in GitHub
GitHub secretgh asks for the key at its own secret prompt, so the key never appears in the command line.
MIMO_TOKEN_PLAN_API_KEY
gh secret set MIMO_TOKEN_PLAN_API_KEY --repo owner/repo --app actionsAPI key as a Gateway account
Gateway accountDashboard, Providers, Add account, then Connect with API key. The key stays in protected Gateway custody instead of GitHub.
Route reviews through any model your OpenRouter key can use.
- Default model
- openai/gpt-5.3-codex
- Models
- Loaded from the OpenRouter catalog
API key in GitHub
GitHub secretNormal OpenRouter billing applies when you prefer an API key over a subscription.
OPENROUTER_API_KEY
gh secret set OPENROUTER_API_KEY --repo owner/repo --app actionsAPI key as a Gateway account
Gateway accountDashboard, Providers, Add account, then Connect with API key.
Bring your Kimi Code API key.
- Default model
- k3-256k
API key in GitHub
GitHub secretStore the Kimi Code API key as a GitHub Actions secret for the repository.
KIMI_CODE_API_KEY
gh secret set KIMI_CODE_API_KEY --repo owner/repo --app actionsAPI key as a Gateway account
Gateway accountDashboard, Providers, Add account, then Connect with API key.
These providers connect only as managed Gateway accounts: the key is kept in protected Gateway custody and never becomes a GitHub secret.
- Where
- Dashboard, Providers, Add account
NVIDIA Build
Gateway accountConnect an NVIDIA Build API key.
GLM Coding Plan
Gateway accountConnect a GLM Coding Plan key.
MiniMax M Plan
Gateway accountConnect a MiniMax M Plan key.
Grok
Gateway accountConnect a Grok subscription.
After connecting, choose models, reasoning effort and other review settings per workspace or repository in the dashboard. Gateway credentials are kept in protected server custody; see the security model for the difference.
What stays where
- Code runs in your CI
- Checkout and tools run in GitHub Actions. ReviewRouter stores results and operational metadata, not raw source files.
- Direct mode keeps secrets in CI
- With direct provider setup, credentials live in GitHub Actions secrets that you set from your own machine. Gateway connections use protected server custody instead.
- Forks are skipped
- Secret-backed review does not run on fork pull requests, so provider secrets are not exposed to them.
- The provider sees review context
- The AI provider you choose receives the review context for the pull request it reviews.
Supported code hosts
ReviewRouter works with GitHub today. GitLab support is in development and is not available yet.
Troubleshooting
Ready means the workflow on your default branch is current and the provider is confirmed. A running self-hosted server alone is not proof of a completed review.
Create the setup PR again from the dashboard and merge the new one before you connect the provider again.
Fork pull requests are skipped because provider secrets are not exposed to them. Otherwise check that the setup PR is merged and that the provider shows as confirmed for the repository.
Ready to review your first pull request?
