Skip to main content
rio v0.3
SELF-HOSTED AI CODE REVIEW · BYOK · ZERO PER-SEAT FEES

Self-host AI code review on your Cloudflare account. Pay only raw infrastructure and tokens.

Commercial AI reviewers lock self-hosting behind enterprise minimums and charge $24 to $72+ per seat every month. Rio Code Review is Apache-2.0 open source: deterministic local checks cost $0 forever, and hosted AI review deploys into your own Cloudflare account with bring-your-own-key (BYOK) routing and zero markup.

TRANSPARENT PRICING MODEL

What it actually costs to run Rio.

Because Rio has no vendor SaaS layer, your total monthly bill is just three transparent pieces. Most teams stay inside Cloudflare's included $5/month paid allowances and pay only for the LLM tokens their PRs consume.

LAYER 1 · LOCAL CLI

$0 / forever

Local deterministic checks

Type checks, lint, changed-line test coverage, secret scanning, dependency audit, SARIF export, and bounded blast-radius impact graph run on your machine with zero cloud account.

rio review --offline
LAYER 2 · CLOUDFLARE STACK

$5 / month base

Workers Paid account (unlimited seats)

Flat account baseline covering Workers, Workflows, D1, R2, Queues, AI Gateway, and included Containers allowances. Add 5 or 50 developers without per-seat fees.

rio deploy --dry-run
LAYER 3 · BYOK MODELS

At cost / 0% markup

Direct model provider tokens

Connect OpenRouter, Anthropic, OpenAI, or any compatible endpoint. Bounded impact-graph slices keep typical PR reviews to tens of thousands of tokens instead of full-repo dumps.

Read Budgets & Token Limits docs →

ESTIMATE MONTHLY SPEND

Self-hosted BYOK vs per-seat SaaS estimator.

Adjust team size, pull request volume, and review preset below. Token estimates are illustrative mid-range model rates; actual spend varies by diff size, prompt cache hit rate, and chosen model routes.

10
4
Default AI review depth
ESTIMATED MONTHLY PRs 173 PRs/mo
RIO SELF-HOSTED (CLOUDFLARE + BYOK)

~$26 / mo

$5 Cloudflare base + ~$21 estimated tokens

TYPICAL PER-SEAT SAAS ($24-$48 / DEV / MO)

$240 - $480 / mo

Illustrative estimate only. Large diffs, Browser QA vision screenshots, or frontier reasoning models increase token usage. Inspect real measured cost inside every Rio report.

CLOUDFLARE WORKERS STACK

Every resource provisioned by rio init.

Rio embeds its Worker bundle inside the CLI binary, so there is no Node.js build step or Wrangler repo checkout required. Preview all changes offline with rio deploy --dry-run.

Cloudflare Service Role in Rio Code Review Published Pricing Baseline
Cloudflare Workers + Workflows API endpoint, GitHub App webhook receiver, and stateful review pipeline orchestration Included in $5/mo Workers Paid (10M requests, 30M CPU ms/mo)
Cloudflare D1 Stores finding lineage, dismissals, suppression proposals, and PR review history Included in $5/mo Workers Paid (25B reads, 50M writes, 5 GB storage)
Cloudflare R2 Stores evidence bundles, diff artifacts, and Browser QA screenshots/traces $0.015/GB-mo ($0 egress; 1M Class A + 10M Class B free ops/mo)
Cloudflare Queues + AI Gateway Async job buffering, provider routing, rate limits, and model usage telemetry Queues $0.40/M ops after included tier; AI Gateway free core routing
Cloudflare Sandbox or Linux Docker runner Isolated execution container for untrusted repo analysis and verification Containers included allowance (375 vCPU-min/mo) or your own Docker VM

COST GUARDRAILS IN YAML

Enforce per-review token and time ceilings.

Commit budget limits inside .rio/profiles/default.yaml. If a review hits its ceiling, Rio cancels remaining stages cleanly and reports incomplete work with exit code 4 instead of hiding it.

.rio/profiles/default.yaml
version: 1
name: team-bounded
extends: rio/openrouter
budget:
  fast:
    wall_time: 5m
    tokens: 100000
    verify_tokens: 20000
    agents_max: 3

DEPLOY IN FOUR COMMANDS

Provision your endpoint with BYOK routing.

Authenticate Cloudflare, supply your OpenRouter, Anthropic, or OpenAI-compatible API key through your private environment, and run rio init.

Deploy your own Cloudflare endpoint
$ cf auth login
# Export OPENROUTER_API_KEY or ANTHROPIC_API_KEY in your private shell
$ rio init
$ rio review --profile rio/openrouter --preset standard

SELF-HOSTED & BYOK FAQ

Questions about hosting, privacy, and cost.

Do I pay any per-seat fee or token markup to run Rio Code Review?

No. Rio is licensed under Apache-2.0 with $0 platform fees and $0 token markup. You pay Cloudflare directly for your Workers Paid account ($5/month base) and pay your chosen model provider (OpenRouter, Anthropic, OpenAI, or compatible endpoints) at list rates.

Can I use Rio completely free with no Cloudflare account at all?

Yes. Local review mode (typecheck, lint, tests, changed-line coverage, secret scanning, dependency audit, and the bounded impact graph) runs entirely on your machine with zero cloud account and zero API keys.

How does Rio cap AI code review cost per PR?

Profiles enforce hard ceilings on wall_time, review-wide tokens, per-voter verify_tokens, and agents_max. Every review report records measured token usage, cache reads/writes, and price provenance so you can audit actual spend per PR.

Do I need to check out the Rio repository or install Wrangler to deploy?

No. The rio binary embeds the Cloudflare Worker bundle. Running rio init authenticates via Cloudflare cf CLI (or CLOUDFLARE_API_TOKEN) and provisions Workers, Workflows, D1, R2, Queues, and AI Gateway directly. Use rio deploy --dry-run to inspect the plan first.

Where do my API keys and repository data live?

Provider keys stay in your OS keychain locally (or explicit private files on headless hosts) and as encrypted Worker secrets in your own Cloudflare account. Code and findings never pass through a Pixel Infinito SaaS server.

Can we run analysis containers on our own Linux server instead of Cloudflare Containers?

Yes. Pass --runner self-hosted during rio init and run the paired rio-runner process on a dedicated Linux Docker host. That keeps container execution inside your private VPC while Cloudflare coordinates PR webhooks and storage.