Install the GitHub App
Install ReviewRouter on selected repositories or request organization approval. The App syncs installation metadata, selected repos, setup PR state, and health signals.
The current setup path is four steps: install the GitHub App, merge the generated setup PR, seed provider access into GitHub Actions secrets, then open a pull request.
ReviewRouter creates and monitors setup, but checkout, PR diff analysis, provider calls, prompts, and model output happen inside GitHub Actions.
Control plane, setup, policy
Setup PR and caller workflows
Code checkout and review runtime
Called from customer runtime
.github/workflows/reviewrouter.yml
.github/workflows/reviewrouter-interaction.yml
.github/workflows/reviewrouter-codex.yml # Codex OAuth rotating repos
branch: reviewrouter/setup
runtime: 777genius/review-router reusable workflowsInstall ReviewRouter on selected repositories or request organization approval. The App syncs installation metadata, selected repos, setup PR state, and health signals.
From the dashboard, create the setup PR. It uses the reviewrouter/setup branch and adds compact caller workflows, not a hosted code execution path.
Merge the PR so the default branch owns the workflow. Dashboard progress advances from setup PR open to provider setup after GitHub metadata catches up.
Seed provider access from your machine into GitHub Actions secrets. ReviewRouter records only setup confirmation and safe provider status metadata.
The repo receives small caller workflows. The versioned runtime stays in the ReviewRouter repo.
Current workflow shape
| File | Triggers | Job | Boundary |
|---|---|---|---|
| reviewrouter.yml | pull_request, merge_group, workflow_dispatch | Runs the AI review gate through ReviewRouter reusable runtime. | Top-level permissions are empty, job-level permissions are explicit. |
| reviewrouter-interaction.yml | review comments, issue comments, workflow_dispatch | Handles /rr style interactions and discussion routing. | Uses GitHub OIDC for runtime config and passes only required secrets. |
Default review avoids the dangerous hosted-secret pattern.
Secret-backed provider execution is skipped for fork PRs.
Runtime config is fetched through GitHub OIDC when available.
Pick one auth mode first. You can adjust model, reasoning, fast mode, and provider config later in the dashboard.
Copy the dashboard-generated command. It writes encrypted GitHub secret payloads directly to GitHub and refreshes in GitHub-hosted Actions.
Run claude setup-token, then store only the printed token.
Store the OpenRouter key in GitHub Actions secrets.
Run these from your own machine. Secret values go directly to GitHub Actions.
Use the dashboard-generated command for the selected repository. Generic Codex commands are intentionally disabled.
# Copy the full repo-scoped command from Dashboard -> Enable review -> Codex.
# It uses https://reviewrouter.site/install/codex, a short-lived setup nonce, and REVIEWROUTER_CODEX_AUTH_JSON.
curl -fsSL https://reviewrouter.site/install/codex | REVIEW_ROUTER_CODEX_ROTATING_SETUP_URL="..." REVIEW_ROUTER_CODEX_ROTATING_SETUP_NONCE="..." REVIEW_ROUTER_CODEX_ROTATING_PROVIDER_INSTANCE_ID="..." bash -s -- --confirm-writeStore only the printed setup token. Do not paste local Claude config files.
claude setup-token
gh secret set CLAUDE_CODE_OAUTH_TOKEN --repo owner/repo --app actionsUse normal provider billing when you do not want subscription OAuth.
gh secret set OPENROUTER_API_KEY --repo owner/repo --app actionsUse this as the mental model before enabling review on sensitive repositories.
GitHub Actions runner. ReviewRouter cloud skips code by default.
GitHub Actions secrets. Seeded from your machine with gh.
GitHub OIDC plus static fallback. The workflow asks for metadata, not secret values.
Secret-backed review skipped. Default workflow avoids exposing provider secrets to forks.
If a setup PR was closed or its branch was deleted, recreate it from the dashboard and merge the new PR before reseeding secrets.