想法本身,不配简报
我懒得每换一个值得试的模型就接一套新 SDK。每家供应商一把 key、一种 429、一种拒绝方式。你要么把 key 当棒球卡攒,要么押一家供应商,盼着它别挂。
AnyRouter 是那个无聊的修法:一个兼容 OpenAI 和 Anthropic 的 URL。把 Claude Code、Cursor、AI SDK 或裸 curl 指到 anyrouter.dev,选一个 model id。失败切换是网关的事。你不该看见那些跳。
这些只是入场条件。有意思的是 URL 后面坐着什么。
闲着的 key
很多人已经在付供应商的账——Gemini、Z.ai 的编程订阅、Moonshot、NVIDIA NIM 试用——配额却几乎不用。额度到期作废。另一边有人卡在 429。
共享池就是这场交换。你在 BYOK 里加上 key,打开 Donate to pool,确认一次别人的请求可能打到这把 key。网关挑一把捐来的 key,把调用打到上游,流量给你记 pending 额度——每把 key 每个 UTC 日上限 $1。这个 $1 是捐赠上限,不是套餐价。
逐步说明:把闲置供应商 key 捐进池,捐赠页 anyrouter.dev/donate。
用户拿到的:免费 token 池
请求实际怎么走
一个约定进去。按序尝试上游。第一把 key 429 或 401,就换下一把。客户端只看见一个响应。
flowchart LR C["Your client"] -->|"one base URL"| GW["AnyRouter"] GW --> P["Shared key pool"] P --> D1["Donated key A"] P --> D2["Donated key B"] D1 --> T["Tokens back to the pool"] D2 --> T T --> C
这篇不编什么
- 没有编造的 MAU、token 或可用性数字。定价页、捐赠页、控制台上看不到的数字,这里也不该出现。
- 结账只走 Polar 卡。没有支付宝,也没有微信。
- 捐 key 不等于上游 ToS 允许你分享。那部分你自己负责。
想试的话
三条老实路:
- 到 anyrouter.dev 登录,拿一把 key。
- 在 anyrouter.dev/donate 捐一把闲置供应商 key——这也是不绑卡开通 Go 的办法。流程:捐一把 key 换 Go。
- 或者直接在 定价 付费,花额度。
curl -fsSL https://anyrouter.dev/setup.sh | bash
anyr login
anyr claude
curl https://anyrouter.dev/api/v1/chat/completions \
-H "Authorization: Bearer $ANYROUTER_API_KEY" \
-H "Content-Type: application/json" \
-d '{"model":"google/gemini-3.5-flash","messages":[{"role":"user","content":"Hi"}]}'相关文章
Donate an idle provider key, earn credits back: a walkthrough
Hold a provider key with headroom to spare? Donate it to the shared pool in two clicks. Every token the pool serves through your key earns pending credits — up to 8% of its notional cost, tiered by plan — claim them anytime or turn on auto-claim. Here's the step-by-step.
Donate a key for Go — no card
Two ways to Go: pay $2/mo (card charged $2.63, $4 credits) or donate one eligible BYOK key (DeepSeek, Z.ai GLM, Moonshot Kimi). No Alipay or WeChat. Donor cut 5%/8%, capped at $1 per key per UTC day — that $1 is the donor cap, not the Go price.
AnyRouter pricing: Free vs Go (the $1 posts are wrong)
Older pages still say $1 Go — wrong. Free has no monthly credits; anyrouter/free is 10 req/day. Go is $2/mo ($2.63 charged) → $4. Pro $10 ($11.05) → $20; Pro+ $45 ($47.89) → $100; Max $100 ($105.79) → $300.
