Skip to content

cfrs2005/awesome-claude-code-relay

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 

Repository files navigation

awesome-claude-code-relay

实时监控 中转站数量 最后更新 License

🚀 Claude Code / Claude API 中转站导航 | 实时可用性监控 | 省钱省心

在线监控面板:👉 https://www.80aj.com/llm-monitor/


📊 中转站推荐榜

推荐 服务商 类型 注册 官网
⭐⭐⭐⭐⭐ 智谱 BigModel 商业 注册 https://bigmodel.cn/
⭐⭐⭐⭐⭐ Duckcoding 商业 注册 https://duckcoding.com
⭐⭐⭐⭐ Cubence 商业 注册 https://cubence.com
⭐⭐⭐⭐ FoxCode 商业 注册 https://foxcode.rjj.cc
⭐⭐⭐⭐ CodeCli 商业 注册 https://www.code-cli.cn/
⭐⭐⭐ EasyChat 商业 注册 https://wwww.easychat.site
⭐⭐⭐ Anyrouter 公益 注册 https://anyrouter.top
⭐⭐⭐ Ikuncode 商业 官网 https://www.ikuncode.cc
⭐⭐⭐ GalaxyCode 商业 官网 https://nf.video
⭐⭐⭐ SSSAiCode 商业 官网 https://www.sssaicode.com
⭐⭐⭐ MikuCode 商业 官网 https://mikucode.xyz
⭐⭐⭐ JikeAI 商业 官网 https://magic666.top
⭐⭐ AICodeMirror 商业 官网 https://www.aicodemirror.com
⭐⭐ Privnode 商业 官网 https://privnode.com
⭐⭐ Uucode 商业 官网 https://www.uucode.org
⭐⭐ AIMZ 商业 官网 https://mzlone.top
⭐⭐ 88code 商业 官网 https://www.88code.org
⭐⭐ Xyai 商业 官网 https://new.xychatai.com
⭐⭐ PackyCode 商业 官网 https://www.packyapi.com
⭐⭐ Runanytime 商业 官网 https://runanytime.hxi.me
⭐⭐ YesCode 商业 官网 https://co.yes.vg
⭐⭐ Elysiver 商业 官网 https://elysiver.h-e.top

💡 推荐指数基于:可用性、延迟、稳定性、用户反馈综合评估


🔧 Claude Code 配置

环境变量

# 设置中转站地址
export ANTHROPIC_BASE_URL="https://jp.duckcoding.com"

# 设置 API Key(从中转站获取)
export ANTHROPIC_API_KEY="sk-your-api-key"

# 启动 Claude Code
claude

永久配置

# 写入 ~/.zshrc 或 ~/.bashrc
echo 'export ANTHROPIC_BASE_URL="https://jp.duckcoding.com"' >> ~/.zshrc
echo 'export ANTHROPIC_API_KEY="sk-your-api-key"' >> ~/.zshrc
source ~/.zshrc

支持的模型

模型 Model ID 特点
Claude Opus 4 claude-opus-4-20250514 最强推理能力
Claude Sonnet 4 claude-sonnet-4-20250514 平衡性能与成本
Claude Haiku 4.5 claude-haiku-4-5-20251001 快速响应低成本

常用命令

命令 说明
claude 启动交互式会话
claude "prompt" 单次提问
claude -p "prompt" 管道模式
claude --model sonnet 指定模型
claude --continue 继续上次会话
claude config 配置设置

🐍 Python SDK

import anthropic

client = anthropic.Anthropic(
    api_key="sk-your-api-key",
    base_url="https://jp.duckcoding.com"
)

message = client.messages.create(
    model="claude-sonnet-4-20250514",
    max_tokens=1024,
    messages=[{"role": "user", "content": "Hello!"}]
)
print(message.content[0].text)

🧪 连通性测试

curl https://jp.duckcoding.com/v1/messages \
  -H "Authorization: Bearer sk-your-api-key" \
  -H "anthropic-version: 2023-06-01" \
  -H "content-type: application/json" \
  -d '{"model":"claude-haiku-4-5-20251001","max_tokens":10,"messages":[{"role":"user","content":"hi"}]}'

💰 价格对比

对比项 官方直连 中转站
Haiku 输入 $0.25/M ¥0.5-2/M
Haiku 输出 $1.25/M ¥2-5/M
Sonnet 输入 $3/M ¥5-15/M
Sonnet 输出 $15/M ¥20-50/M
支付方式 外币卡 支付宝/微信
网络 需魔法 国内直连

❓ FAQ

Q: 中转站安全吗?
  • 不传输敏感信息(密码、密钥)
  • 生产环境优先选择智谱等官方合作方
  • 定期更换 API Key
Q: Claude Code 报错 401/403?
echo $ANTHROPIC_BASE_URL  # 检查地址
echo $ANTHROPIC_API_KEY   # 检查密钥
# Base URL 不要带 /v1/messages 后缀
Q: 如何切换中转站?
export ANTHROPIC_BASE_URL="https://api.cubence.com"

📈 实时监控

👉 https://www.80aj.com/llm-monitor/

  • ✅ 实时可用性状态
  • ⏱️ API 响应延迟
  • 📊 历史可用率趋势

🤝 贡献

欢迎 PR 补充更多中转站!


⚠️ 免责声明

本项目仅做信息汇总,不对任何中转站的服务质量、安全性、合规性负责。


⭐ Star History

Star History Chart


关键词:Claude Code, Claude API, API 中转站, Claude 代理, Anthropic API, Claude Sonnet, Claude Haiku, Claude Opus, AI 编程助手, 大模型 API, LLM API, Claude Code 配置, Claude Code 教程, Claude Code 中转, Claude API 国内, Claude API 代理, Claude API 便宜, Claude Code 省钱, awesome claude code

About

Claude Code, Claude API, API 中转站, Claude 代理, Anthropic API, Claude Sonnet, Claude Haiku, Claude Opus, AI 编程助手, 大模型 API, LLM API, Claude Code 配置, Claude Code 教程, Claude Code 中转, Claude API 国内, Claude API 代理, Claude API 便宜, Claude Code 省钱, awesome claude code

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors