KRouter is a third-party intermediary that relays AI model API requests through rotating proxies, manages quota distribution, and provides a unified OpenAI-compatible endpoint. Build in hours, not weeks.










A complete third-party relay layer with proxy rotation, quota management, and unified API surface for all your coding tools.
KRouter sits between your client tools and upstream AI providers. It is not the official endpoint of OpenAI, Anthropic, Google, or GitHub.
Requests can be relayed through rotating proxy pools, multiple accounts, and fallback routes so quota is spread more evenly and sessions are less fragile.
Most supported tools only need one base URL, one API key, and one chosen model path to begin working with KRouter.
Expose a single OpenAI-compatible entry such as `https://api.krouter.net/v1` to clients that support custom providers.
The service is positioned around usage control, quota balancing, and keeping sessions alive when one route becomes unstable.
The landing makes it clear that KRouter is a third-party intermediary and that upstream provider policies still matter.
A dedicated Docs page collects the setup instructions for Claude Code, Codex, OpenCode, Open Claw, Cursor, Cline, Continue, and more.
For tools like Antigravity, Copilot, and Kiro, the docs explain the MITM-oriented flow instead of pretending every tool works the same way.
Core positioning and setup content are written in English and Vietnamese so the product can onboard a wider local audience cleanly.
Use the public KRouter endpoint for OpenAI-compatible tools, or use MITM-based setup for tools that do not natively support custom local providers.
Each CLI guide mirrors the current dashboard setup flow: base URL, API key, model selection, and where to place the configuration file.
KRouter then acts as an intermediary layer for model APIs, rotating paths and helping manage quota pressure across multiple upstream channels.
All tools share the same base URL and API key. Pick your tool below for step-by-step config.
https://api.krouter.net/v1Install Claude Code CLI, then point `ANTHROPIC_BASE_URL` to KRouter and set model aliases in `~/.claude/settings.json`.
~/.claude/settings.jsonInstall Claude Code and run `claude` once to verify the CLI is available.
Set `ANTHROPIC_BASE_URL` to `https://api.krouter.net/v1` and `ANTHROPIC_AUTH_TOKEN` to your KRouter API key.
Optionally map the default opus, sonnet, and haiku model variables to your chosen KRouter model paths.
{
"hasCompletedOnboarding": true,
"env": {
"ANTHROPIC_BASE_URL": "https://api.krouter.net/v1",
"ANTHROPIC_AUTH_TOKEN": "<Your Key>",
"ANTHROPIC_DEFAULT_OPUS_MODEL": "<Model-ID>",
"ANTHROPIC_DEFAULT_SONNET_MODEL": "<Model-ID>",
"ANTHROPIC_DEFAULT_HAIKU_MODEL": "<Model-ID>"
}
}npm install -g @anthropic-ai/claude-codeEnter your KRouter API key to view quota, limits, and daily usage stats.
Important notice for all users
KRouter is a third-party intermediary service, not an official AI model vendor.
Although KRouter is not an official provider, all models are called through legitimate OAuth credentials and rotating API keys sourced directly from the original providers — ensuring every response is authentic and unmodified from the upstream source.
Proxy rotation, account rotation, and fallback behavior are used to help distribute quota and reduce interruption risk.
Users are still responsible for complying with upstream provider terms, local law, and their own operational security requirements.