Bring all those keys to one endpointGom mọi key về một endpoint把所有 Key 汇到一个端点
Paste your Google AI Studio, OpenRouter, Groq and other keys once. Then use one AnyRouter key from Claude Code, Codex, Cursor, opencode, Hermes, the AI SDK or curl, with fallback when a free tier runs out. $0 markup.Dán key Google AI Studio, OpenRouter, Groq và các key khác một lần. Rồi dùng một key AnyRouter từ Claude Code, Codex, Cursor, opencode, Hermes, AI SDK hay curl, tự chuyển key khi một gói free hết lượt. Không cộng phí.把 Google AI Studio、OpenRouter、Groq 等 Key 粘贴一次。然后在 Claude Code、Codex、Cursor、opencode、Hermes、AI SDK 或 curl 中只用一个 AnyRouter Key,免费额度用完时自动回退。零加价。
108 providers. A dot marks a free tier. Pick one to add its key.108 provider. Dấu chấm là có gói free. Chọn một để thêm key.108 个供应商,圆点表示有免费档。点选即可添加 Key。
1Paste each provider key once in the dashboard. AnyRouter checks it with the provider.Dán mỗi key provider một lần trong dashboard. AnyRouter kiểm tra key với provider.在控制台粘贴每个供应商 Key 一次,AnyRouter 会向供应商校验。
2Create one AnyRouter key (sk-ar-…). That is the only key your tools see.Tạo một key AnyRouter (sk-ar-…). Công cụ của bạn chỉ thấy key này.创建一个 AnyRouter Key(sk-ar-…),你的工具只看到这一个。
3Point any tool at one base URL and use anyrouter/byok. Your keys serve the request; when one hits its limit, the next one does.Trỏ mọi công cụ tới một base URL và dùng anyrouter/byok. Key của bạn phục vụ request; key nào chạm giới hạn thì key kế tiếp làm thay.把任何工具指向一个 base URL 并使用 anyrouter/byok。由你的 Key 处理请求;某个触顶时换下一个。
Set up your toolCài cho công cụ của bạn配置你的工具
OpenAI-compatible base URLBase URL tương thích OpenAIOpenAI 兼容 base URLhttps://anyrouter.dev/api/v1 · Anthropic-compatibleTương thích AnthropicAnthropic 兼容https://anyrouter.dev/api · modelmodel模型anyrouter/byok
model: anyrouter/byok
Claude Code
# with the anyr CLIcurl -fsSL https://anyrouter.dev/cli.sh | bashanyr claude --model anyrouter/coding# or by handexport ANTHROPIC_BASE_URL="https://anyrouter.dev/api"export ANTHROPIC_API_KEY="sk-ar-your-anyrouter-key"claude --model anyrouter/coding
Hermes Agent works too, through its AnyRouter plugin.Hermes Agent cũng dùng được, qua plugin AnyRouter.Hermes Agent 也可以,通过其 AnyRouter 插件。Hermes guide →Hướng dẫn Hermes →Hermes 指南 →
What you getBạn nhận được gì你会得到
Fallback across your keysTự chuyển giữa các key在你的 Key 之间回退anyrouter/byok tries your keys in turn. A 429 or 5xx on one moves the request to the next, with no code change.anyrouter/byok thử lần lượt các key. Một key trả 429 hay 5xx thì request sang key kế tiếp, không cần đổi code.anyrouter/byok 会依次尝试你的 Key。其中一个返回 429 或 5xx 时,请求会转到下一个,无需改代码。
One log, one usage viewMột log, một trang usage一份日志,一个用量视图Every request from every tool lands in one request log with model, tokens, latency and which key served it.Mọi request từ mọi công cụ nằm trong một request log, có model, token, độ trễ và key nào đã phục vụ.每个工具的每个请求都会进入同一份请求日志,包含模型、token、延迟以及由哪个 Key 处理。
Keep prompts out of trainingKhông để prompt bị dùng để train不让提示词被用于训练Some free tiers train on your prompts. Turn on Always enforce ZDR and AnyRouter routes only to providers that guarantee zero data retention, skipping the rest.Một số gói free dùng prompt của bạn để train. Bật Always enforce ZDR thì AnyRouter chỉ định tuyến tới provider cam kết không lưu dữ liệu, bỏ qua phần còn lại.部分免费档会用你的提示词做训练。开启 Always enforce ZDR 后,AnyRouter 只路由到承诺零数据留存的供应商,跳过其余。Privacy controls →Quyền riêng tư →隐私控制 →
Keep your provider deals and add fallback; BYOK calls never spend credits.Giữ ưu đãi với provider và thêm fallback; lệnh gọi BYOK không bao giờ trừ credit.保留你和供应商的价格,再加上回退;BYOK 调用从不消耗额度。How it works →Cách hoạt động →了解做法 →
Docs and guidesTài liệu và hướng dẫn文档与指南
FAQCâu hỏi thường gặp常见问题
Does AnyRouter charge for requests on my keys?AnyRouter có thu phí request chạy bằng key của tôi không?AnyRouter 会对走我自己 Key 的请求收费吗?
No. Requests on your own keys are billed by the provider at its list price. AnyRouter adds no markup and does not take them from your credits.Không. Request chạy bằng key của bạn do provider tính theo giá niêm yết. AnyRouter không cộng phí và không trừ credits.不会。走你自己 Key 的请求由供应商按其标价计费。AnyRouter 不加价,也不会从你的 credits 中扣除。
What are each provider's free limits?Giới hạn free của từng provider là bao nhiêu?各供应商的免费额度是多少?
Each provider sets its own free limits and changes them often. Check the provider's own page; the table above links each one. When a key hits its limit, anyrouter/byok moves on to your next key.Mỗi provider tự đặt và hay đổi giới hạn free. Xem trang của chính provider; bảng ở trên có link từng trang. Khi một key chạm giới hạn, anyrouter/byok chuyển sang key kế tiếp.每个供应商自行设定免费额度,并且经常调整。请查看供应商自己的页面,上方表格链接了每一个。某个 Key 触顶时,anyrouter/byok 会换用你的下一个 Key。
Can a request fall through to paid credits?Request có thể rơi sang credits trả phí không?请求会回落到付费 credits 吗?
Not with anyrouter/byok, anyrouter/coding or anyrouter/agent: those use only your keys, and return a clear error when no key can serve. A named model id (for example openai/gpt-5.4-mini) tries your keys first, then AnyRouter capacity, which uses credits.Không, nếu dùng anyrouter/byok, anyrouter/coding hoặc anyrouter/agent: chúng chỉ dùng key của bạn và trả lỗi rõ ràng khi không key nào phục vụ được. Một model id cụ thể (ví dụ openai/gpt-5.4-mini) thử key của bạn trước, rồi tới capacity của AnyRouter, phần này dùng credits.不会,使用 anyrouter/byok、anyrouter/coding 或 anyrouter/agent 时:它们只使用你的 Key,没有 Key 能处理时返回明确的错误。指定具体模型 id(例如 openai/gpt-5.4-mini)时,先尝试你的 Key,再使用 AnyRouter 的容量,这部分会消耗 credits。
How are my keys stored?Key của tôi được lưu thế nào?我的 Key 是如何存储的?
Encrypted at rest with a per-row salt, write-only in the dashboard, stripped from logs, and only ever sent to the provider the key belongs to. AnyRouter checks each key with its provider when you save it.Mã hoá khi lưu với salt riêng từng dòng, chỉ ghi trong dashboard, bị loại khỏi log, và chỉ gửi tới đúng provider của key. AnyRouter kiểm tra key với provider khi bạn lưu.静态加密并为每行使用独立 salt,在控制台中只写不读,不会出现在日志里,并且只会发送给该 Key 所属的供应商。保存时,AnyRouter 会向供应商校验每个 Key。
Can I add local models, like Ollama on my laptop?Tôi có thêm được model local, như Ollama trên laptop không?我可以添加本地模型吗,比如笔记本上的 Ollama?
Yes, with the anyr CLI: anyr relay start --target http://localhost:11434/v1 connects your local OpenAI-compatible server to your account over an outbound connection, no open ports. The Ollama Cloud tile above is a different thing: an ollama.com API key.Có, bằng anyr CLI: anyr relay start --target http://localhost:11434/v1 nối server OpenAI-compatible trên máy bạn vào tài khoản qua kết nối đi ra, không mở cổng. Ô Ollama Cloud ở trên là thứ khác: một API key của ollama.com.可以,使用 anyr CLI:anyr relay start --target http://localhost:11434/v1 通过出站连接把你本地的 OpenAI 兼容服务接入账户,无需开放端口。上方的 Ollama Cloud 卡片是另一回事:它是 ollama.com 的 API Key。
Can I share a key I don't use?Tôi có chia sẻ được key không dùng tới không?我可以分享不用的 Key 吗?
Yes. Turn on Donate to pool for that key and get Go plus free Pool access. Check your provider's terms first.Có. Bật Donate to pool cho key đó để nhận Go và dùng Pool miễn phí. Hãy xem điều khoản của provider trước.可以。为该 Key 开启 Donate to pool,即可获得 Go 并免费使用池子。请先查看供应商的条款。
Add your first keyThêm key đầu tiên添加第一把 Key
Free to use on every plan. AnyRouter adds no markup to requests on your keys.Miễn phí trên mọi gói. AnyRouter không cộng phí vào request chạy bằng key của bạn.所有套餐均可免费使用。你的 Key 上的请求 AnyRouter 不加价。