Comparison · AgentRouter checked 2026-11-21

AgentRouter vs CodeRouter: a free coding relay or a pay-as-you-go router

AgentRouter (agentrouter.org) is a free, community-run relay for AI coding tools such as Claude Code and Codex: you sign up, collect free credit and point your tool at its base URL. CodeRouter is a paid router for coding agents: one base URL, it picks the model for each request or serves the exact model you name, and bills a prepaid balance at model list price. Both speak the Anthropic and OpenAI APIs, so switching between them is a change of base URL, key and model name.

Disclosure: CodeRouter is our product. The AgentRouter facts below come from its own pages — agentrouter.org, its docs, its terms of use and the notices and FAQ its site publishes — as checked 2026-11-21, without signing up. Quotes from Chinese-language notices are our translation. Anything we couldn't confirm on those pages is left out.

Short answer: if you want to spend nothing, AgentRouter is the better choice: its credit is free, with no card and no purchase (you can't buy credit there at all). CodeRouter's free trial is $1 of usage for 7 days with no card, $5 once you add one, and then it's pay as you go.

For paid or team work — no daily batches or per-account quotas, fallback when a provider fails, payment by card, the cost of every request, budgets per developer — use a paid service. CodeRouter bills each request at the model's list price with no markup, plus a 5.5% payment fee when you buy credit; Team is $19 per developer a month plus usage.

What AgentRouter is · Side by side · Which to choose · Switching · FAQ

What AgentRouter is, as checked 2026-11-21

  • A free relay for AI coding. Its docs call it an “AI Coding 公益站” — a free, community-run site for AI coding — that gives developers free credit, and its terms say it aims to provide “a sustainable, free API service for genuine developers”. The site runs on the open-source New API / One API gateway (its footer credits both).
  • Sign-up: the sign-up page offers a GitHub or a LinuxDO account; existing accounts can also sign in with an email or username.
  • Credit: buying credit isn't supported. Its FAQ lists the ways to get it: a daily check-in ($25 of credit), invitations ($50 per invite), occasional draws for accounts that link an email, and promotions.
  • Base URL and key (its Claude Code and Codex guides): Claude Code uses https://agentrouter.org with no /v1, and OpenAI-compatible tools such as Codex use https://agentrouter.org/v1; the key is a token you create in its console. A 2026-07-28 notice adds a backup domain, ps.air-outer.com, for users in mainland China who can't reach the main one.
  • Models change often. Its setup guides list gpt-5.6-sol, gpt-6-astra, claude-opus-5, claude-opus-4-8, glm-5.3 and deepseek-v4-flash, and say the list changes with the resources it has (the console shows the current one); a wrong or offline model name returns 503. On 2026-11-21 the site's notice said gpt-6-astra is offline and gpt-6.1-sol and gpt-5.6-sol remain available; a 2026-10-24 notice says claude-opus-5.5 is temporarily unavailable. Its pricing page needs a sign-in.
  • Daily quotas: its FAQ says Claude and GPT models are released in daily batches (02:00 and 11:00 UTC). When a batch is used up, requests fail with 402 Budget pool quota has been exhausted until the next one, and the FAQ suggests switching to DeepSeek or GLM meanwhile. Later notices set terms per model: a 2026-10-24 notice says gpt-6.1-sol is available without limits at a low rate multiplier.
  • Clients and languages: it lists the coding clients it supports — Claude Code, Codex, OpenClaw, OpenCode, Kilo Code, Roo Code, Cline, Qwen Code, Cursor, GitHub Copilot, Trae and others. A 2026-09-18 notice says accounts used for non-coding work or from unsupported clients move to a “probation” group at double the rate multiplier. Its FAQ says 400 content blocked usually means the request is in a language it doesn't support — only Chinese, English, French, German and Russian are allowed — and that a sensitive-word check can stop a session (start a new one).
  • Rules: the terms forbid distillation, bulk sign-ups, reward farming, and reselling or sharing accounts and credit; they restrict heavy non-coding use such as role-play chat, encyclopedia-style Q&A and bulk content; and quotas, model availability and rate limits are adjusted per account by criteria it doesn't publish. They also say individual developers using it for real development or work aren't affected.
  • In its own words: a 2025-10-18 notice, still among the notices the site publishes, says its goal is to serve developers “rather than to provide a stable LLM API service”, and points anyone who needs that to OpenRouter or the model providers.
  • Not stated on the pages we read: who operates it, where its model capacity comes from, and what it stores about requests (we found no privacy policy).

AgentRouter vs CodeRouter, side by side

AgentRouter (agentrouter.org)CodeRouter
What it isFree, community-run relay for AI coding toolsPaid router built for coding agents
What you payNothing: free credit from a daily check-in, invitations, draws and promotions; buying credit isn't supportedPay as you go: each request at the model's list price, no markup, from a prepaid balance; a 5.5% payment fee when you buy credit (from $20: $20 of credit costs $21.10); no monthly fee. Team: $19 per developer a month plus usage at list price
Free to startYes, with no payment detailsOne free trial per email inbox: $1 of usage for 7 days with no card, $5 once you add a card (it isn't charged); it covers the models smart routing uses other than Claude Opus
Sign-upGitHub or LinuxDO accountGoogle account or an email sign-in link
Base URLhttps://agentrouter.org (Claude Code) · https://agentrouter.org/v1 (OpenAI-compatible)https://www.coderouter.io (Claude Code) · https://www.coderouter.io/api/v1 (OpenAI-compatible, including the Responses API for Codex)
Choosing a modelYou name one of the models it has that daySmart routing (the default): set the model to auto and CodeRouter picks one per request — Claude Haiku 5.5, Kimi K2.6, Claude Sonnet 5.5 or Claude Opus 5.5, with DeepSeek V4.1 Flash as an alternate. Direct mode (switch in the dashboard): the exact model you name, from the model list
When a model is used up, down or rate-limited402 until the next daily batch; 503 for an offline model name; you switch models yourselfIn smart routing a rate limit, an overload, a provider error or a timeout moves the request to another model (on a streamed reply, only before the first token); in Direct mode you get the error
ClientsA listed set of coding clients; non-coding use or other clients move the account to “probation”Tools that take a custom Anthropic or OpenAI base URL; setup guides for Claude Code, Codex, Cursor, Aider, Cline, Continue.dev and OpenClaw
Prompt languageChinese, English, French, German or Russian, per its FAQ (other languages: 400 content blocked)No language rule of its own
Cost per requestNot checked (needs an account)In the response headers (x-coderouter-model, x-coderouter-cost) and the dashboard
Team controlsNone in its docsTeam: one key per engineer; budgets per member, project and company; email at 80%; downgrade to cheaper models or pause at 100% (Team)
DataNot stated on the pages we readStores a trimmed excerpt of each request for up to 180 days to improve routing; Team admins can turn that off; never sold (privacy policy)
Who runs itNot named on its site, docs or terms; contact through QQ groups, Discord, X and an email addressTeampulse Solutions LLC, a Delaware company (terms); payments through Stripe

AgentRouter column as checked 2026-11-21 on its own pages (sources below).

Which one to choose

When AgentRouter is the better choice

  • You want to spend nothing. Its credit needs no card or purchase, and the daily check-in adds more. CodeRouter's trial is $1 for 7 days ($5 with a card), then pay as you go.
  • Trying tools and side projects, where a quota that runs out until the next batch, or a model that goes offline for a while, costs you nothing but time.
  • You work in one of its supported clients and write prompts in one of its five languages.

When CodeRouter is the better choice

  • Paid or team work, where daily batches and per-account quotas get in the way.
  • You'd rather not pick the model yourself: smart routing chooses one per request, moves to a stronger model when tests or errors show a failure, and falls back to another model on rate limits and provider errors.
  • You need to account for spend: payment by card, the cost of each request in its response headers, and on Team budgets per developer and project.
  • Your prompts are in another language — Portuguese, Indonesian, Vietnamese, Hindi, Urdu, Bengali and so on.
  • You need a written data policy and a named operator: our privacy policy lists what is stored and who receives it.

For other paid options — OpenRouter, LiteLLM, Portkey — see AgentRouter alternatives compared.

Switching from AgentRouter to CodeRouter

Create a CodeRouter key (it starts with cr_) after signing in, then change three things: the base URL, the key and the model. These are the settings from AgentRouter's guides and from our setup page.

Claude Code (~/.claude/settings.json)

Before — AgentRouter, from its Claude Code guide:

{ "env": { "ANTHROPIC_BASE_URL": "https://agentrouter.org", "ANTHROPIC_AUTH_TOKEN": "YOUR_AGENTROUTER_KEY", "ANTHROPIC_MODEL": "claude-opus-5" }, "model": "claude-opus-5" }

After — CodeRouter, from /setup:

{ "env": { "ANTHROPIC_BASE_URL": "https://www.coderouter.io", "ANTHROPIC_AUTH_TOKEN": "cr_YOUR_KEY_HERE", "ANTHROPIC_MODEL": "auto", "ANTHROPIC_DEFAULT_OPUS_MODEL": "auto", "ANTHROPIC_DEFAULT_SONNET_MODEL": "auto", "ANTHROPIC_DEFAULT_HAIKU_MODEL": "auto", "CLAUDE_CODE_DISABLE_EXPERIMENTAL_BETAS": "1" } }

Remove the top-level "model" line from AgentRouter's example if you copied it. Use ANTHROPIC_AUTH_TOKEN for the cr_ key. Pointed at CodeRouter, Claude Code bills your CodeRouter balance, not a Claude Pro or Max plan.

Codex CLI (~/.codex/config.toml)

Before — AgentRouter, from its Codex guide:

model = "gpt-5.6-sol" model_provider = "AgentRouter" [model_providers.AgentRouter] base_url = "https://agentrouter.org/v1" env_key = "CODEX_GATEWAY_API_KEY" name = "AgentRouter" wire_api = "responses"

After — CodeRouter, from the integration docs:

model = "auto" model_provider = "coderouter" [model_providers.coderouter] name = "CodeRouter" base_url = "https://www.coderouter.io/api/v1" env_key = "CODEROUTER_API_KEY" wire_api = "responses" # then, in your shell: # export CODEROUTER_API_KEY=cr_YOUR_KEY_HERE

OpenAI SDK and other OpenAI-compatible tools

Swap https://agentrouter.org/v1 for https://www.coderouter.io/api/v1 and use auto as the model:

from openai import OpenAI client = OpenAI( base_url="https://www.coderouter.io/api/v1", api_key="cr_YOUR_KEY_HERE", ) resp = client.chat.completions.create( model="auto", messages=[{"role": "user", "content": "Refactor this function..."}], )

Model names: in smart routing the model is auto. In Direct mode you name a CodeRouter model ID from the model list: claude-opus-5, gpt-6.1-sol and glm-5.3 are spelled the same as on AgentRouter, and Claude Opus 4.8 is claude-opus-4.8 (with a dot; AgentRouter writes claude-opus-4-8). gpt-5.6-sol isn't on CodeRouter. Team keys always use smart routing.

FAQ

What is AgentRouter?

AgentRouter (agentrouter.org) is a free, community-run relay for AI coding tools. You sign up with a GitHub or LinuxDO account, collect free credit and point Claude Code, Codex or another supported client at its base URL. Its terms describe it as “a sustainable, free API service for genuine developers”, and the models on offer change with the resources it has (checked 2026-11-21). CodeRouter, which publishes this page, is a separate, paid router.

Is AgentRouter free?

Yes. You can't buy credit there; its FAQ lists a daily check-in ($25 of credit), invitations ($50 per invite), occasional draws and promotions. The FAQ also says Claude and GPT models come in daily batches: when a batch is used up, requests return “402 Budget pool quota has been exhausted” until the next one (later notices set some models' terms separately).

What is the AgentRouter API base URL and key?

According to its docs, Claude Code uses https://agentrouter.org (no /v1) and OpenAI-compatible tools such as Codex use https://agentrouter.org/v1; the key is a token you create in its console. A backup domain, ps.air-outer.com, is for users in mainland China. CodeRouter's base URLs are https://www.coderouter.io for Claude Code and https://www.coderouter.io/api/v1 for OpenAI-compatible tools, with a key that starts with cr_.

Which models does AgentRouter have?

It changes often. On 2026-11-21 its setup guides listed gpt-5.6-sol, gpt-6-astra, claude-opus-5, claude-opus-4-8, glm-5.3 and deepseek-v4-flash; the site's notice said gpt-6-astra was offline and gpt-6.1-sol and gpt-5.6-sol remained available; and a 2026-10-24 notice says claude-opus-5.5 is temporarily unavailable. The console shows the current list.

Why does AgentRouter return 402, 503 or 400 content blocked?

Per its FAQ and docs: 402 “Budget pool quota has been exhausted” means the day's batch for that model is used up; 503 (no available channel) means the model name is wrong or offline; 400 content blocked usually means the prompt is in a language it doesn't support (it allows Chinese, English, French, German and Russian).

Is there a free trial on CodeRouter?

Yes, one per email inbox: $1 of usage for 7 days with no card, raised to $5 when you add a card (it isn't charged; one trial per card). It covers the models smart routing uses other than Claude Opus. After that it's pay as you go: top up from $20, plus the 5.5% payment fee, with no monthly fee.

What happens on CodeRouter when a model is rate-limited or down?

In smart routing, a rate limit (429), an overload or another provider error, or a timeout moves the request to the next model in CodeRouter's fallback chain; on a streamed reply that works only before the first token. In Direct mode, where you name the model, you get the provider's error.

What should I check before using AgentRouter for work code?

The pages we read don't say who operates it, where its model capacity comes from or what it stores about requests, and its terms let it adjust quotas, models and rate limits per account by criteria it doesn't publish. Whether that is acceptable depends on your code and your employer's rules. Our agent router safety checklist covers the questions to ask any router, including CodeRouter.

More: agent router safety checklist · CodeRouter pricing

Sources

CodeRouter is not affiliated with, endorsed by, or sponsored by AgentRouter (agentrouter.org). AgentRouter and all other product names and trademarks are the property of their respective owners.