Skip to content
API gateway for Claude Code and Codex

Change one endpoint. Claude Code keeps working.

One API endpoint with usage-based billing, per-key limits and call auditing. Set ANTHROPIC_BASE_URL and your API key, then use the public model channels of your key's group.

Read the quick start
~/.claude/settings.json
"apiKeyHelper": "echo 'sk-····'",
"env": {
  "ANTHROPIC_BASE_URL": "https://api.ccodezh.com",
  "ANTHROPIC_AUTH_TOKEN": "sk-····"
}
$ claude→ Request sent to api.ccodezh.com
ccodezh gatewayCheck keyRoute by groupMeter & bill
Usage logSample dataBalance$19.7743
ModelTokensTimeCredits
  • claude-sonnet-5-543.8K10.1s$0.0532
  • claude-haiku-5-56.0K4.7s$0.0016
  • claude-fable-5-170.9K6.3s$0.1710
Listed price × main-channel multiplier, for illustrationΣ $0.2257
Model channels
6
Models
24
Top-up rate
¥0.8 = $1
Minimum top-up
$2
Service statusLive availability and latency per channel

Service boundaries

  • We do not use your inputs, outputs or code to train, fine-tune or distill general models
  • Customer data is never sold, rented or resold
  • Routing follows the groups shown in the console; we do not silently switch your channel
  • Essential call logs are kept for billing, troubleshooting and security audits
Read the data security notice
Do not send passwords, private keys, unauthorized personal information or other high-risk data.Full list
  • State secrets, confidential work information, core data or regulated important data
  • Personal information without authorization, sensitive personal information, or data about minors
  • Health records, financial account data, passwords, API keys or private keys
  • Un-anonymized customer lists, unauthorized code repositories, or data that may not be processed by third-party model services
  • If your team must process sensitive data, complete authorization, de-identification and compliance review first
Three steps

From sign-up to your first call in three steps

Keep your workflow. Only the endpoint changes.

  1. 1

    Sign in and top up

    Email code or Google sign-in. Top-ups start at $2 via Alipay or WeChat Pay.

  2. 2

    Copy your API key

    The console creates a key for you. Add keys per group or rotate them any time.

  3. 3

    Configure and run

    Put the endpoint and key into Claude Code's settings, then run claude.

~/.claude/settings.json
{
  "apiKeyHelper": "echo 'sk-····'",
  "env": {
    "ANTHROPIC_BASE_URL": "https://api.ccodezh.com",
    "ANTHROPIC_AUTH_TOKEN": "sk-····"
  }
}
Why ccodezh

What you get

One API key for several model channels, with usage, permissions and audit logs visible in the console.

One endpoint

Manage Claude, Codex / GPT and other channels with one set of API keys, and split credits and model access per project.

Call auditing

Essential call metadata is kept for usage statistics, troubleshooting, security auditing and anomaly review.

Security controls

Credit limits, model allowlists, IP allowlists and high-risk data warnings reduce the impact of a leaked key.

Model routing

Requests follow the group of your API key to the matching channel; we never silently switch the channel you selected.

Usage statistics

See calls, tokens and charges per model and per day; balance and usage update live in the console.

Key management

Create several independent API keys and rotate them at any time, so projects never affect each other.

Billing, payment and support

What you pay
Top-ups are paid in Chinese yuan (CNY) through WeChat Pay or Alipay, depending on which methods are currently enabled in the top-up dialog. The amount charged is shown before you pay.
What you receive
Each top-up adds account credits denominated in USD. Credits are not cash and are only used for calls on this platform.
What a call costs
Each call deducts the model's listed token price (input, output, cache write and cache read counted separately) multiplied by the channel multiplier. Final charges are shown in the console.
Account and support
Sign in with an email verification code, or with Google where it is enabled. The console is currently in Chinese. For help, email [email protected].

Video walkthrough

A short walkthrough of configuring and using ccodezh (narrated in Chinese).