The admin panel (/admin) controls which repositories are reviewed, sets per-repository review settings, and keeps an audit log. Admins sign in through your identity provider using OpenID Connect.
- PostgreSQL 13+ (
database.url). The schema is created and migrated automatically at startup. - A public HTTPS URL for the server (
admin.base_url). - An OIDC client registered with your identity provider.
Create a web application client with:
| Setting | Value |
|---|---|
| Redirect / callback URI | https://<base_url>/admin/callback |
| Grant type | Authorization code (PKCE is used automatically) |
| Scopes | openid email profile (plus groups if your provider needs it) |
Provider notes:
| Provider | issuer |
Notes |
|---|---|---|
| Google Workspace | https://accounts.google.com |
Google Cloud console → APIs & Services → Credentials → OAuth client (Web). Use allowed_domains for your Workspace domain. Google doesn't send groups. |
| Okta | https://<org>.okta.com or https://<org>.okta.com/oauth2/default |
Add a groups claim to the ID token to use allowed_groups. |
| Keycloak | https://<host>/realms/<realm> |
Add a Group Membership mapper (claim groups, full path off) to use groups. |
| Microsoft Entra ID | https://login.microsoftonline.com/<tenant-id>/v2.0 |
Enable groups claim in Token configuration. Group values are object IDs unless you configure names. |
| AWS IAM Identity Center | via a customer-managed OIDC app, or front it with Keycloak/Cognito | Identity Center is a SAML IdP for most apps. |
| GitLab (as IdP) | https://gitlab.example.com |
Applications → new app with openid email profile. Groups appear in the groups_direct claim: set CODEREVIEW_CONSOLE_OIDC_GROUPS_CLAIM=groups_direct. |
With environment variables (no config file needed):
DATABASE_URL=postgres://... # required, with CODEREVIEW_CONSOLE_SECRET_KEY
CODEREVIEW_CONSOLE_BASE_URL=https://review.example.com
CODEREVIEW_CONSOLE_OIDC_ISSUER=https://example.okta.com
CODEREVIEW_CONSOLE_OIDC_CLIENT_ID=...
CODEREVIEW_CONSOLE_OIDC_CLIENT_SECRET=...
CODEREVIEW_CONSOLE_OIDC_SCOPES=openid,email,profile,groups
CODEREVIEW_CONSOLE_OIDC_ALLOWED_GROUPS=code-review-admins
# CODEREVIEW_CONSOLE_OIDC_ALLOWED_DOMAINS=example.com
# CODEREVIEW_CONSOLE_OIDC_ALLOWED_EMAILS=lead@example.com
# CODEREVIEW_CONSOLE_SESSION_TTL=12hThe admin panel turns on once an issuer is set. The same settings can go in an optional config file:
admin:
base_url: https://review.example.com
session_ttl: 12h
oidc:
issuer: https://example.okta.com
client_id: ${OIDC_CLIENT_ID}
client_secret: ${OIDC_CLIENT_SECRET}
scopes: [openid, email, profile, groups]
allowed_groups: [code-review-admins]Any one matching rule grants admin access. Email and domain rules only match when the provider doesn't mark the email unverified.
allowed_domainsandallowed_groupsneed a license. They are a paid feature (sso_rules). On the free core, or with a key that doesn't includesso_rules, onlyallowed_emailsgrants access, and the console logs a warning at startup when domain or group rules are configured. List at least one admin inallowed_emailsso you can sign in and paste a key under License; domain and group rules start working as soon as a key withsso_rulesis saved, with no restart.
When you run several instances behind a load balancer, also set CODEREVIEW_CONSOLE_COOKIE_SECRET (admin.cookie_secret, 32+ random characters) so a sign-in started on one instance can finish on another.
Everyone who matches allowed_emails, allowed_domains or allowed_groups is an admin, as
before. With a license that has sso_rules, two more roles can sign in:
| Role | Can | Set with |
|---|---|---|
| Admin | everything; approves operators' changes | allowed_emails, allowed_domains, allowed_groups |
| Operator | see every page; change repositories, rules and learnings, run Review now and re-runs, test hosts. Changes to code hosts, webhooks, settings, models, the executor and the license are sent to an admin for approval | CODEREVIEW_CONSOLE_OIDC_OPERATOR_EMAILS, ..._OPERATOR_GROUPS (operator_emails, operator_groups) |
| Viewer | see every page, the audit log and its export; change nothing | CODEREVIEW_CONSOLE_OIDC_VIEWER_EMAILS, ..._VIEWER_GROUPS (viewer_emails, viewer_groups) |
Someone in several lists gets the strongest role. The role is worked out on every request from the current rules, so moving someone between lists applies at once (after the restart that applies the change; group membership comes from the identity provider at sign-in).
Change requests. An operator's sensitive change doesn't apply: the console stores the request,
encrypted with CODEREVIEW_CONSOLE_SECRET_KEY, and lists it under Change requests (called
Approvals before 0.14; /admin/approvals redirects there) with secret values
masked. An admin approves it, which runs the change as the operator through the same checks, or
rejects it with a reason; the operator can cancel their own. The audit log records the request, the
decision and the change itself as operator@example.com (approved by admin@example.com). Requests
expire after 7 days. When an approved change creates a webhook or a new secret, the secret is shown
once to the approving admin.
- Open
https://<base_url>/adminand sign in. Until reviews can run, the console opens Setup: a checklist (license, code host, webhook, a verified delivery, model, an enabled repository, the first review) that is checked against what is configured right now, says what to do next, and shows why a step isn't done (for example the reason the last delivery was rejected). - Repositories show up (disabled) when they send their first webhook, or click Add repository.
- Toggle Enabled to start reviewing. Settings sets the review profile, comment limit, minimum severity, model profile, auto review, drafts and extra instructions. These override the repository's
.codereview.yaml. - Models holds the model profiles: provider, model and the name of the console's environment variable that holds the API key. The console never stores keys; it reads the variable and hands the key to each review job, and the page shows whether the variable is set. Choose the Default model and the fallbacks tried in order when it fails. Profiles from an older config file's
models:are copied here once on start (see deploy.md). A new environment variable needs a console restart before it is seen. The variable must be a provider's own key variable (OPENAI_API_KEY,ANTHROPIC_API_KEY,GEMINI_API_KEY, …) or one namedCODEREVIEW_MODEL_KEY_<NAME>, since its value goes to every review job and on to the profile's endpoint: no other secret of the console (the OIDC client secret, AWS or database settings) can be sent as a model key. A profile saved earlier with another name gets no key: the page marks it not passed on, the console logs a warning at start, and renaming the variable and updating the profile fixes it. When a profile sends its key to a host that isn't the provider's own (an openai-compatible endpoint, a proxy), the page says where, and so does an operator's change request. - Executor shows where reviews run (from the config file, read-only) and manages the review image's version, resources and, for Kubernetes, scheduling, pod labels and annotations, the CA bundle and the job TTL. Changes apply to the next review. See deploy.md.
- Settings → Admin sessions → Sign out after inactivity ends a session that has made no request for that long (60 minutes by default, 0 for never; the panel's own refreshes don't count), recorded as
session.endedwith reasonidle. Settings → Signed-in admins lists every admin session. Sign one out, or Sign out everyone else (after offboarding someone, or if a session may be compromised). Every request is also checked against the current sign-in rules and license, so an admin removed fromallowed_emails,allowed_domainsorallowed_groups(after the restart that applies the change) is signed out at once. Group membership comes from the identity provider at sign-in: a group removed there applies when the session ends (session_ttl) or when you sign the session out here. - Review scores. Every review the CLI scores (quality, security, maintainability, 1 to 100) keeps its scores, whether or not score labels are on. Reviews shows them per review, banded like the labels (80 and up, 50 to 79, below 50), filters by them ("security below 60" searches all reviews) and sorts the loaded reviews by them. With the metrics feature, it also shows the period's average scores and a trend chart; Repositories shows each repository's latest scores with a 30-day sparkline, and a repository's Settings panel charts its scores over 30 days, 12 months or all its history. Reviews stored before the upgrade get their scores from the stored result. The filters, sort, chart period and the open review are kept in the address (for example
/admin/reviews?score_kind=security&score_below=60&sort=security, with the same names as/admin/api/reviews), so a reload or Back keeps the view and a filtered view can be bookmarked or shared. A review that approved the merge request on the code host is marked ✓ approved on Reviews and on the status dashboard (or approval withdrawn / approval failed), and Reviews filters by it (approval=approved); this is the bot approving merge requests, set under Settings, not operator change requests. - Approve merge requests (Settings) has the bot approve a merge request whose review passes, as its token's user (or the GitHub App). Choose which findings block approval (critical; major or critical, the default; minor or above; any finding; or none, to approve whatever it found), an optional lowest score for all three scores, and whether a later review that doesn't pass withdraws the bot's approval (on by default) or leaves it. New findings, ones beyond the comment limit and ones still open from an earlier review count; questions don't. A review that can't decide (partial, too large) of a new commit also withdraws the bot's approval when withdrawing is on (code-review-bot 0.6 or later), so an approval never carries over to code that wasn't fully reviewed; a re-review of the same commit leaves it. The console always tells the CLI which you chose. Rules turn approval on or off for a host, group or pattern (Approve MRs), and Repositories shows where it applies. A review's details show what happened ("approved", "withdrawn", "not approved"…), and a refusal from the code host shows on the review as "could not approve". It needs code-review-bot 0.5 or later (the CLI version on Executor). On GitLab the bot's user must be allowed to approve and can't approve its own merge requests; on GitHub, withdrawing dismisses the bot's review, which branch protection can restrict. A partial or too-large review leaves the approval as it is.
- Impact shows what the console has done for this installation, from its own database only (nothing leaves it): merge requests reviewed and review runs, findings raised by severity, security findings, the median time to first review (from the webhook to the first review's comments, including the wait after a push), active repositories, comments posted and average scores. Questions aren't counted as findings. The last 30 days are free; with the metrics feature, choose 90 days, 12 months or all history, see the trends, findings by category, the top repositories by reviews and by findings, and Export CSV or Export JSON for reports (exports are audited as
impact.export). Periods are whole UTC days or months. The numbers come from rollups kept for good, like the review charts; on upgrade they are filled in from the reviews still stored. Approvals by the bot counts merge requests the bot approved on the code host (a review that approved; one already approved isn't counted again), and is in the exports asapprovals_by_the_bot. The numbers link to Reviews with the matching filters and period: merge requests reviewed, findings raised (severity=any), security findings (category=security), each severity and category, and each top repository. Reviews can also be filtered by finding severity and category directly;/admin/api/reviewstakesseverity(orany) andcategory, counted the way Impact counts them (questions aren't findings). How many findings were acted on (fixed, resolved or dismissed) isn't tracked yet and isn't shown. Periods are whole UTC days or months; the label ends on the last day (or month) included, and the API and exports give that day asthroughnext to the exclusive end (to,to_exclusivein the CSV). - Webhooks shows every delivery. A delivery whose body was already received (a retry, an event arriving through two GitLab hooks, a replay) shows as a duplicate and is not processed again, for 7 days. Redelivering an old webhook from the code host therefore does nothing; use Review now on the Repositories page instead. The project and outcome filters are kept in the address.
- Audit log lists sign-ins, denied sign-ins, sign-outs and every change, newest first, with who made it and from which address and browser. Each change shows only the fields that changed (old → new), with the raw entry one click away; secret changes are named without their values (
token:changed,signing_tokens:+1). Filter by who, action (host.*matches every host action), target, a text search and dates; Older entries pages back through everything, and Export CSV or Export JSON Lines downloads the filtered view (up to 100,000 entries; exports are audited too). Times are shown as23 Nov 2026, 09:33:38 ISTin your browser's time zone, with UTC on hover. The applied filter is kept in the address (/admin/audit?action=host.*). - Unsaved changes. On Settings, edited cards are marked Unsaved, and a bar at the bottom of the window lists what isn't saved yet (the settings, the default review settings, the queue and review settings) with Save and Discard. Leaving the page or following a link asks first. If the session ended before you save, the changes stay on the page: sign in again in the new tab it offers, come back and save.
With the allowlist on (Settings), webhooks and @codereview commands from disabled repositories are ignored. If the database is unreachable, reviews are refused rather than run unchecked.