Robin

Free AI Code Review with OpenRouter (BYOK)

Get genuinely free AI PR reviews by pairing Robin (MIT, open-source GitHub Action) with OpenRouter's free models. Real setup steps, no credit card.

You can get free AI code review on private repos today without a SaaS subscription. The path is straightforward: use Robin, a free MIT-licensed GitHub Action, and point it at a free model on OpenRouter. Your diff goes only to the model endpoint you configure — Robin runs inside your GitHub Actions and adds no review service of its own (more on exactly where your code travels below). No per-seat fee, no credit card wall. Setup takes under ten minutes and requires three GitHub Actions secrets. The catch is real but manageable: free models have rate limits and vary in review depth. This post walks through the full setup and helps you decide whether free is enough for your team.

Key Takeaways

  • “Free” on most AI review SaaS means free for public repos only. Private repos usually require a paid plan.
  • BYOK (bring your own key) with a free OpenRouter model is the only path to genuinely $0 AI review on private repos.
  • Robin is MIT-licensed, runs inside your GitHub Actions environment, and routes your diff only to the LLM endpoint you choose.
  • Free models on OpenRouter have rate limits. For high-volume teams, upgrading the model is a single secret change.

The demand for a free, no-strings path is real. In Stack Overflow’s 2025 Developer Survey, 84% of developers said they use or plan to use AI tools — yet only 33% trust the accuracy of AI output. And cost is increasingly the deciding factor in tooling: Perforce’s 2025 State of Open Source report found the share of organizations naming cost savings as their top reason for choosing open source jumped from 37% in 2024 to 53% in 2025. A free, open-source reviewer you can audit and run yourself sits right at that intersection.

Why “Free AI Code Review” Usually Has an Asterisk

Most AI code review tools advertise a free tier, but the asterisk is almost always the same: free applies to public and open-source repositories only. Private repos sit behind a paid plan. That’s a standard SaaS trade-off — the vendor has to cover inference costs somewhere. For solo developers and small teams with private codebases, those paid plans can feel hard to justify, especially early in a project.

There’s a second asterisk worth knowing. Even on free tiers, your code typically passes through the vendor’s hosted service. That’s fine for many teams. For teams with security policies or data-residency requirements, it’s a genuine constraint that a SaaS free tier can’t solve regardless of price.

BYOK changes the equation. When you supply your own API key and run the reviewer inside your own infrastructure, the vendor has no infrastructure costs to recover from your usage. That’s what makes $0 actually reachable.

How BYOK + Free Models Actually Reach $0

OpenRouter is a unified API gateway that routes requests to many underlying models. Some of those models are available at no cost on OpenRouter’s free tier. When you bring your own OpenRouter key (sk-or-...) and point Robin at a free model, the per-review cost is zero. You’re not on anyone’s SaaS free tier with a private-repo limit. The model runs, the review posts to your PR, and your bill is $0.

The OpenRouter free model list changes over time. As of this writing, it includes several capable open-weight models. Quality ranges from solid to excellent depending on the model. The honest tradeoff: free models may be slower to respond, and some have stricter rate limits per minute or per day. For a team opening a few PRs per day, this is rarely a problem. For a team merging dozens of PRs daily, you’ll hit ceilings.

Upgrading later is simple. Robin’s model is controlled by a single repository secret. Switching from a free model to a paid model like GPT-4o or Claude is a one-line secret update in GitHub, no code changes needed.

Step-by-Step: Setting Up Robin with OpenRouter

1. Install Robin

Run the installer from your terminal in the root of your repository:

npx robin-review

No npm? Install with curl instead:

curl -fsSL https://robinreview.dev/install.sh | bash

Both commands configure the Git repository you are currently in. The workflow and secrets are per repository; the companion agent skill is installed globally once per machine.

This creates the GitHub Actions workflow file in your repo. Commit and push it.

Prefer to read before you run? Download the script first — curl -fsSL -o robin-install.sh https://robinreview.dev/install.sh — inspect it, then run bash robin-install.sh.

2. Get an OpenRouter API Key

Create a free account at openrouter.ai. Generate an API key. It will look like sk-or-v1-.... No payment method is required to access free models.

3. Add Three Repository Secrets

In your GitHub repository, go to Settings, then Secrets and variables, then Actions. Add these three secrets:

Secret nameValue
LLM_API_KEYYour OpenRouter key (sk-or-v1-...)
LLM_BASE_URLhttps://openrouter.ai/api/v1
LLM_MODELA free model slug from OpenRouter (check the current free list at openrouter.ai)

4. Open a PR

That’s it. Open a pull request and Robin posts an AI review as a PR comment automatically. You don’t need to trigger anything manually.

Slash Commands That Come Built-In

Two slash commands work out of the box in any PR comment:

  • /robin — re-runs the review, useful after pushing new commits
  • /summary — posts a short plain-language overview of the changes

Both run inside your existing GitHub Actions environment with no additional configuration.

What to Expect from Free Models

Free models on OpenRouter are genuinely useful for code review. They catch obvious issues, flag potential bugs, and comment on style. What they do less reliably than frontier models is multi-file reasoning — when a change in one file creates a subtle implication elsewhere, a smaller free model may not connect the dots.

For a solo developer or a small team working on focused PRs, that tradeoff is acceptable. The reviews are useful, the cost is zero, and the workflow is exactly what you’d want from any AI reviewer.

For teams where review depth matters for security-sensitive code or complex architectural changes, the answer isn’t to give up on Robin. It’s to change LLM_MODEL to a more capable model and pay only for the inference you use. Because you control the key and the endpoint, the upgrade is immediate and reversible.

In our experience maintaining Robin, the teams that start on a free OpenRouter model and upgrade only when they hit a real ceiling get the best outcome: they confirm the workflow actually fits their PR habits before paying for a single token, and most never need to leave the free tier.

Rate limits on free models vary by provider. Some cap requests per minute, others per day. If a review fails silently or takes unusually long, check OpenRouter’s dashboard for your key’s usage. The /robin slash command lets you re-trigger the review once you’re past a limit window.

When Free Is Enough (and When It Isn’t)

Free is enough when:

  • You open fewer than a handful of PRs per day
  • Your PRs are reasonably scoped (not 2,000-line diffs covering ten subsystems)
  • You want review quality similar to a junior developer’s pass: catches obvious issues, flags inconsistencies, notes style problems
  • You’re evaluating whether AI code review fits your workflow before committing to any cost

Free is not enough when:

  • You need deep architectural reasoning across many files simultaneously
  • Your security review process requires high-confidence issue detection
  • You’re running a CI pipeline with many PRs per hour and can’t tolerate rate-limit delays
  • You need a specific frontier model for compliance or internal policy reasons

In those cases, the setup is identical. You change one secret. Robin works with any OpenAI-compatible endpoint, including direct OpenAI, Anthropic via a compatible proxy, or other paid models on OpenRouter. You pay only for the inference, with no Robin subscription on top.

Is Your Code Actually Private?

This is worth being direct about. When Robin processes a PR, it sends the diff to the LLM endpoint you configure. With OpenRouter, that means your diff reaches OpenRouter’s API and then the underlying model provider. It does not reach Robin’s maintainer or any Robin infrastructure. There is no Robin cloud service.

If your security policy requires that code stay entirely within your own infrastructure, the right path is a self-hosted model behind a compatible API endpoint, not OpenRouter. Robin supports that configuration by changing LLM_BASE_URL to point at your internal endpoint. See the Robin docs for how to configure custom endpoints.

For most private repos without strict data-residency requirements, OpenRouter is a reasonable choice. Read OpenRouter’s data handling policy before sending production code through any external service.

FAQ

Do I need a credit card to use OpenRouter’s free models?

No. OpenRouter allows you to create an account and generate an API key without a payment method. You can access free-tier models immediately. Adding a payment method unlocks paid models when you’re ready to upgrade.

Can I use Robin with a paid model later without reinstalling?

Yes. Update the LLM_MODEL repository secret to the slug of any model available on OpenRouter or another compatible endpoint. The change takes effect on the next PR or the next /robin trigger. No workflow file changes needed.

What happens if I hit a free model’s rate limit mid-review?

The GitHub Actions step will fail or time out. The review won’t post. Use the /robin slash command once you’re past the rate-limit window to re-trigger the review. OpenRouter’s dashboard shows your usage and any limit status.

Does Robin support repositories other than GitHub?

Robin is currently a GitHub Action and works with GitHub’s pull request workflow. If you’re on GitLab or Bitbucket, check the Robin docs for the current status on additional platform support.

How is this different from just using an AI assistant in my IDE?

In-IDE AI assistance is reactive — you ask it questions while you’re writing code. Robin is automatic and PR-scoped. It reviews the complete diff when you open a PR, posts structured comments tied to specific lines, and runs without anyone having to remember to ask. The two tools complement each other rather than compete.

Where to Go From Here

If you want to get started, the Robin documentation covers the full setup including edge cases, custom prompt configuration, and endpoint options beyond OpenRouter. If you’re comparing Robin to other tools before committing, the tools overview and the Robin vs CodeRabbit comparison give you the full picture.

The setup genuinely takes ten minutes. If it takes longer, the docs have a troubleshooting section covering the most common issues with Actions secrets and workflow permissions.