Local review
Type checks, lint, changed-line coverage, secret scanning, dependency audit and an impact graph, using the tools already in your repo.
Needs: Only the rio binary and your project's installed tools.
rio review Rio is an open-source, self-hosted AI code review CLI and TUI. Review changes before you push with local deterministic checks, then add bring-your-own-key (BYOK) AI reviewers, GitHub PR comments, and Browser QA on your own Cloudflare account.
curl -fsSL https://getrio.dev/install.sh | sh Linux · macOS · Windows (x64 & arm64) · SHA-256 verified
Install guide →
Each layer is optional. Local checks need no account. Self-hosted AI review runs on your own Cloudflare endpoint with your keys.
Type checks, lint, changed-line coverage, secret scanning, dependency audit and an impact graph, using the tools already in your repo.
Needs: Only the rio binary and your project's installed tools.
rio review AI reviewers, blind multi-voter verification, security catalogs, automated GitHub PR comments, and finding memory across rounds.
Needs: A Cloudflare endpoint (yours or team's) + model provider keys.
rio init Scripted journeys in an isolated browser, on mobile and desktop, light and dark. You get screenshots, DOM snapshots, traces and UX findings.
Needs: Linux Docker host, paired QA image, model access, and .rio/qa.yaml.
rio qa --full Diff working tree, staged index, branch, or PR.
Run repo-local typecheck, lint, tests, coverage, secrets.
Map bounded callers, imports, and affected tests.
Route high-risk hunks to specialist AI agents.
Correctness, security, performance, tests, contracts.
Independent blind quorum votes before surfacing.
Interactive TUI, SARIF, JSON, Markdown, or PR comment.
Uses the tools already installed in your repo. Run rio doctor to check.
tsc · ESLint · Vitest / Jest (changed-line coverage)
Pyright / mypy · Ruff · pytest + coverage.py
cargo · Clippy · rustfmt · cargo-llvm-cov
Secret scanning · dependency audit · bounded impact graph
No findings plus skipped checks means the review is incomplete, not clean. Every finding carries an evidence tier, and AI findings are checked by blind voters first.
Backed by a failing test, reproduction trace, or runtime check.
Proven directly by tsc, Clippy, Pyright, Ruff, or AST analysis.
Cross-checked by blind AI verifiers; requires human judgment.
Rejected by independent voters and kept out of your PR.
Verifiers vote on each AI finding without seeing each other's answers. Findings nobody can back up are dropped.
--since-last tracks findings across rounds. rio feedback dismisses intentional patterns, and repeated dismissals become suppression proposals for the team.
0 passes policy, 1 fails it, 4 means a required check was skipped or the run was incomplete, 5 means PR publishing failed. A skipped check is never a green build.
Before any token goes to a model, Rio maps callers, imports and affected tests around each changed symbol. Press g in the TUI to see it.
Run isolated browser journeys across mobile and desktop viewports in light and dark themes. Capture masked screenshots, DOM snapshots, traces, accessibility checks, and UX recommendations.
$ rio qa validate # check .rio/qa.yaml & journeys
$ rio qa seed build # build synthetic test data
$ rio qa --full # run viewport × theme matrix rio init sets up the Worker, Workflows, D1, R2, Queue, AI Gateway and a Cloudflare Sandbox or Docker runner. No Wrangler, no source checkout. Works with OpenRouter, Anthropic or any OpenAI- or Anthropic-compatible endpoint.
Export SARIF for code scanning, enforce required checks via YAML profiles, and let coding agents query version-matched docs offline.
Define repo policy in .rio/profiles/default.yaml inheriting from rio/base, rio/openrouter, rio/security, or rio/critical. In CI, TUI disables automatically and exports SARIF, JSON, or Markdown.
status=0
rio review --base origin/main --format sarif > rio.sarif || status=$?
# Upload rio.sarif to GitHub Code Scanning, then fail on policy:
exit "$status" Claude Code, Codex or Cursor can read docs that match your rio version straight from the binary. Offline, with bounded output.
$ rio docs # list embedded topics
$ rio docs search "profiles" # search sections
$ rio docs profiles --section inheritance # read focused section
$ rio docs review --format json # structured JSON FAQ · OPEN-SOURCE & SELF-HOSTED
No. Local checks run directly on your machine using the Apache-2.0 rio binary and the tools already installed in your repository, including type checks, linting, changed-line coverage, secret scanning, dependency audits, and the bounded impact graph.
AI review and GitHub PR automation are opt-in and deploy directly to your own Cloudflare account (Workers, Workflows, D1, R2, Queue, AI Gateway, and a Cloudflare Sandbox or Docker runner) using your own model provider keys (OpenRouter, Anthropic, or any OpenAI- or Anthropic-compatible endpoint) with zero token markup.
Every finding carries an explicit evidence tier (reproduced, static_proven, plausible, or refuted). AI proposals go through an independent blind multi-voter quorum that filters unsupported claims, and dismissed findings carry over across rounds via --since-last.
Yes. Run rio review on your working tree, rio review --staged on staged files, or rio review --base origin/main inside a Git pre-push hook to catch type errors, uncovered lines, secrets, and regressions before opening a pull request.
Local reviews cost $0 forever. Self-hosted AI review runs on Cloudflare Workers Paid ($5/month base) plus your direct LLM provider token spend, with hard per-review token and wall-time budgets configured in YAML.
Rio embeds version-matched documentation inside the rio binary. Agents run rio docs, rio docs search, or rio docs review --format json offline with bounded token output.
Rio Code Review is pre-1.0, Apache-2.0, and developed in the open. Run it on a real change and tell us what it got wrong.
curl -fsSL https://getrio.dev/install.sh | sh