Back to catalog

claude-code-hub

by ding113

Pending

A modern Claude Code & Codex API proxy service that provides intelligent load balancing, user management and usage statistics.

1,250stars
160forks
TypeScript
Added 2/3/2026
API Integrationclaude-apiclaude-code
Installation
# Add to your Claude Code skills
git clone https://github.com/ding113/claude-code-hub
README.md
<p align="right"> <a href="./README.en.md" aria-label="Switch to English version of this README">English</a> | <strong>中文</strong> </p> <div align="center">

Claude Code Hub

🚀 智能 AI API 代理中转服务平台|面向团队的多供应商统一接入、弹性调度与精细化运营中心

Container Image License GitHub Stars Telegram Group Ask DeepWiki

Claude Code Hub 通过 Next.js 15 + Hono + PostgreSQL + Redis 组合,实现 Claude/OpenAI 兼容 API 代理、智能负载均衡、实时监控、价格管理与自动化文档,帮助团队安全、可观测地管理多家 AI 服务商。

💬 加入讨论:有部署、功能或技术问题?欢迎加入 Telegram 交流群 与社区一起讨论!

</div>
<table> <tr> <td width="200"> <a href="https://cubence.com/signup?code=SCE7Y3QR&source=cch"> <img src="public/readme/cubence.jpg" alt="Cubence Logo" width="180"/> </a> </td> <td> <b>💎 特别优惠</b>:<a href="https://cubence.com/signup?code=SCE7Y3QR&source=cch">Cubence</a> 一家稳定高效的AI服务中转平台,为 Claude Code、Codex、Gemini 等AI工具提供中转服务,有着不错的稳定性和性价比。<br/> Cubence 为 CCH 的使用用户提供了特别的优惠折扣:在购买时使用优惠券 <code>DING113CCH</code>,可享受 <b>10% 优惠折扣</b> → <a href="https://cubence.com/signup?code=SCE7Y3QR&source=cch">立即访问</a> </td> </tr> </table> <table> <tr> <td width="200"> <a href="https://www.packyapi.com/register?aff=withcch"> <img src="public/readme/packycode.png" alt="PackyCode Logo" width="180"/> </a> </td> <td> <b>💎 特别优惠</b>:感谢 <a href="https://www.packyapi.com/register?aff=withcch">PackyCode</a> 赞助本项目!PackyCode 是一家稳定、高效的 API 中转服务商,提供 Claude Code、Codex、Gemini 等多种中转服务。<br/> PackyCode 为本软件的用户提供了特别优惠,使用此链接注册并在充值时填写优惠码 <code>WITHCCH</code>,可享受 <b>9 折优惠</b> → <a href="https://www.packyapi.com/register?aff=withcch">立即访问</a> </td> </tr> </table> <table> <tr> <td width="200"> <a href="https://co.yes.vg/register?ref=ygxz"> <img src="public/readme/yescode.png" alt="YesCode Logo" width="180"/> </a> </td> <td> <b>💎 特别优惠</b>:<a href="https://co.yes.vg/register?ref=ygxz">YesCode</a> 是一家低调务实的 AI API 中转服务商,专注于为开发者提供稳定可靠的 Claude、Codex、Gemini 等模型接入服务,以扎实的技术底蕴和持续稳定的服务质量赢得用户信赖。<br/> 通过此链接注册即可体验 → <a href="https://co.yes.vg/register?ref=ygxz">立即访问</a> </td> </tr> </table>

✨ 核心功能 Highlights

  • 🤖 智能负载均衡:权重 + 优先级 + 分组调度,内置熔断保护与最多 3 次故障转移,保障请求稳定。
  • 🧩 多供应商管理:同时接入 Claude、Codex、Gemini CLI、OpenAI Compatible,自定义模型重定向与 HTTP/HTTPS/SOCKS 代理。
  • 🛡️ 限流与并发控制:RPM、金额(5 小时/周/月)、并发 Session 多维限制,Redis Lua 脚本确保原子性与 Fail-Open 降级。
  • 📘 自动化 OpenAPI 文档:39 个 REST 端点由 Server Actions 自动生成 OpenAPI 3.1.0,Swagger + Scalar UI 双界面即刻试用。
  • 📊 实时监控与统计:仪表盘、活跃 Session、消耗排行榜、决策链记录、代理状态追踪,秒级掌控运行态势。
  • 💰 价格表管理:分页查询 + SQL 优化,支持搜索防抖、LiteLLM 同步,千级模型也能快速检索...