背景
所有 claude 模型此前走公益站代理,不稳定且慢。断连、限流、认证失效轮番上演。需要一个直连官方的独立通道,不跟别人挤。
操作步骤
- 准备 API Key — Anthropic 官方后台获取,一个完整字符串,不要拆不要改
- 执行注册脚本 —
./manage.sh register自动完成 provider 注册 + 认证写入 + 白名单添加 + Gateway 重启 - 验证 —
openclaw status --json确认 provider 出现,openclaw models list --json确认模型可用
# 一键注册 foxcode provider
./manage.sh register
# 验证
openclaw status --json
openclaw models list --json
踩坑记录
最终 Fallback 链
- Primary —
foxcode/claude-sonnet-4-5-thinking(直连官方,独立 rate limit) - Fallback 1 —
hybgzs/claude-sonnet-4.5-think - Fallback 2 —
zai/glm-4.7 - Fallback 3 —
anyrouter/claude-opus-4-6(注意远端 IP 限流) - 终极兜底 —
openai-codex/gpt-5.3-codex