Skip to main content
rio v0.3
OPEN-SOURCE · APACHE-2.0 · SELF-HOSTED BYOK

Own your AI code review pipeline.

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 →
rio review --base origin/main --profile rio/openrouter · ratatui 120×40
exit 1 · 2 fail TUI controls →
Rio Code Review terminal UI displaying code review findings, static_proven evidence tier, diff context, and blind quorum verification.

Start local. Add AI, PRs and browser QA later.

Each layer is optional. Local checks need no account. Self-hosted AI review runs on your own Cloudflare endpoint with your keys.

DEFAULT · ZERO CLOUD

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.

OPTIONAL · YOUR CLOUDFLARE

Hosted AI & PR 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.

OPTIONAL · DOCKER RUNNER

Browser QA

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
Browser QA guide →

Seven steps. The first three never leave your machine.

  1. 01 LOCAL

    Prepare

    Diff working tree, staged index, branch, or PR.

  2. 02 LOCAL

    Checks

    Run repo-local typecheck, lint, tests, coverage, secrets.

  3. 03 LOCAL

    Graph

    Map bounded callers, imports, and affected tests.

  4. 04 CLOUD

    Triage

    Route high-risk hunks to specialist AI agents.

  5. 05 CLOUD

    Agents

    Correctness, security, performance, tests, contracts.

  6. 06 CLOUD

    Verify

    Independent blind quorum votes before surfacing.

  7. 07 LOCAL

    Report

    Interactive TUI, SARIF, JSON, Markdown, or PR comment.

Built-in language & repository adapters

Uses the tools already installed in your repo. Run rio doctor to check.

TypeScript logo
TypeScript

tsc · ESLint · Vitest / Jest (changed-line coverage)

Python logo
Python

Pyright / mypy · Ruff · pytest + coverage.py

Rust logo
Rust

cargo · Clippy · rustfmt · cargo-llvm-cov

All repos logo
All repos

Secret scanning · dependency audit · bounded impact graph

A finding needs evidence before you see it.

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.

reproduced

Execution proof

Backed by a failing test, reproduction trace, or runtime check.

static_proven

Compiler / static proof

Proven directly by tsc, Clippy, Pyright, Ruff, or AST analysis.

plausible

Verified hypothesis

Cross-checked by blind AI verifiers; requires human judgment.

refuted

Disproved & filtered

Rejected by independent voters and kept out of your PR.

Blind quorum

Verifiers vote on each AI finding without seeing each other's answers. Findings nobody can back up are dropped.

Read about Council →

Dismissals carry over

--since-last tracks findings across rounds. rio feedback dismisses intentional patterns, and repeated dismissals become suppression proposals for the team.

Feedback & suppressions →

Exit codes CI can trust

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.

Results & exit codes →

See the blast radius, not just the diff.

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.

  • Runs locally in milliseconds for TS, Python and Rust
  • Gives the AI real callers, not the whole repo
  • Highlights uncovered changed lines and broken downstream contracts
Explore TUI & Impact Graph →
rio review · impact graph (g) LOCAL · 0 TOKENS
Rio Code Review terminal UI impact graph showing callers, imports, and affected tests around changed symbols.
rio qa --full · viewport × theme matrix NEW IN v0.3
Rio Browser QA live matrix running user journeys across mobile and desktop viewports in light and dark themes.

Real user journeys, verified in isolated browsers.

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
Explore Browser QA guide →

Runs on your Cloudflare account, with your keys and your models.

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.

  • Connect a team endpoint with rio init --endpoint URL --token-stdin
  • Install GitHub App with rio init --github-app for automatic PR reviews
  • Trigger /rio review or /rio dismiss <id> directly from PR comments
rio init · Cloudflare stack deployed PREVIEW: rio deploy --dry-run
Terminal output from rio init showing deployed Cloudflare Worker, Workflows, D1, R2, Queue, and AI Gateway.

Built for pipelines, scripts, and coding agents.

Export SARIF for code scanning, enforce required checks via YAML profiles, and let coding agents query version-matched docs offline.

Profiles & CI / SARIF

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"

Offline docs for coding agents

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

Questions about Rio Code Review.

Does Rio Code Review require a cloud account or API keys to run local checks?

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.

How does self-hosted AI code review and BYOK work in Rio?

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.

How does Rio prevent AI code review false positives?

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.

Can I run Rio as an AI code review step before push?

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.

How much does it cost to self-host Rio compared to per-seat SaaS reviewers?

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.

How do coding agents like Claude Code, Codex, or Cursor read Rio documentation?

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.

Review your next change before you push it.

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