# ding113/claude-code-hub

一个现代化的 Claude Code & Codex API 代理服务，提供智能负载均衡、用户管理和使用统计功能。

Repository: https://github.com/ding113/claude-code-hub
Canonical: https://ross.abutalabs.com/products/claude-code-hub
Homepage: https://cch-plus.com
Language: TypeScript
License: MIT
License Family: permissive
Topics: claude-api, claude-code
Last push: 2026-08-26T07:53:06+00:00

## Health v2 (maintenance only)
Score: 84/100 (v2, computed 2026-09-02T17:46:02.011165+00:00)
- activity 99, release rhythm 99, longevity 22
- inputs: {"age_days": 317, "days_push": 7, "days_rel": 11, "gap_med": 3.0, "n_releases_24m": 49}
- flags: none
- formula: round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10)

## Adoption (not part of the score)
Stars 3333, forks 387 (observed 2026-08-28T04:07:56.668826+00:00)

## What it is
CC Hub is a self-hosted AI API proxy and gateway service for Claude Code, Codex, and other OpenAI/Claude-compatible APIs, built with Next.js, Hono, PostgreSQL, and Redis. It provides intelligent load balancing across multiple AI providers, user management, real-time monitoring, and usage statistics for teams.

## Use cases
- proxy Claude Code API requests through my own gateway
- load balance multiple AI API providers with fallback
- manage team users and API keys for LLM access
- track usage and spending per user and model
- self-host an OpenAI-compatible API relay
- monitor error rates and latency of AI provider requests

## When to choose
- you need a self-hosted gateway to aggregate multiple Claude/OpenAI-compatible providers
- you want per-user key management, quotas, and usage analytics for a team
- you need intelligent routing, fallback, and observability for LLM traffic

## When to avoid
- you only need a single provider's API without routing or user management
- you need a fully commercial-grade gateway now and cannot tolerate an actively-refactoring codebase
- you require format conversion, billing, or privacy filtering features planned only for the upcoming CC Hub Plus rewrite

## Facets
- artifact type: service
- maturity: active
- function: api-gateway, proxy, load-testing, monitoring, auth, analytics, middleware
- domain: large-language-models, apis, self-hosted, developer-tools, backend
- platform: self-hosted
- tags: claude-api, claude-code, llm-gateway, api-proxy, load-balancing, usage-statistics, multi-provider, nextjs, hono, postgresql, redis, nodejs, docker, web-server

## Member repositories
- ding113/claude-code-hub (main) score 84

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:07:56.668826+00:00.
- Health v2: computed from the inputs above; adoption is never an input.
- Inferred fields (summary, facets, guidance): AI-extracted, prompt v1, taxonomy v1, on 2026-08-29T18:41:28.172115+00:00, confidence not recorded.
  - readme: https://github.com/ding113/claude-code-hub (fetched 2026-08-28T04:07:56.668826+00:00, sha 3cd479360c97)
  - homepage: https://cch-plus.com (fetched 2026-08-29T09:34:49.521740+00:00, sha cf006bf7937b)
  - site_page: https://cch-plus.com/docs/data-sources (fetched 2026-08-29T09:34:49.532936+00:00, sha 2699a5f1f98f)
  - site_page: https://cch-plus.com/docs/cla (fetched 2026-08-29T09:34:49.534670+00:00, sha 0047c034d415)
  - site_page: https://live-demo.cch-plus.com/app (fetched 2026-08-29T09:34:49.531136+00:00, sha dbcdbf860d89)
- Data as of 2026-08-30T08:39:29.467469+00:00.
