Unified API access
Compatible with the official Codex and Claude Code protocols. One key for multiple model families.
Codex CLI · VS Code · Cursor · Monthly plans
One API key for Codex CLI / the VS Code extension / Cursor / Windsurf / Claude Code
Pick your client, write the config, and make your first call. Fixed-term plans come with clear weekly allowances and request rate limits, plus unified API access, call auditing, and cost analytics.
Applying is free and usually approved instantlyService boundaries & data use
01 — 06
Keep your coding habits and just change the endpoint. Routing, billing, auditing, and security happen in one place.
Compatible with the official Codex and Claude Code protocols. One key for multiple model families.
Routes requests to the matching service channel by model and tier. The model actually called is shown in console records.
Every call records its request time, model, latency, and tokens, with filters by date and model plus CSV export.
Token usage and cost for every call, summarized in usage charts.
Separate API keys and team member management, with quota and permissions per person.
HTTPS in transit, minimal necessary log retention, and no active use of customer data for general model training.
High-risk data notice
Do not submit state secrets, work secrets, core data, important data without required procedures, unauthorized personal information, sensitive personal information, minors' personal information, medical or financial data, passwords, API keys, private keys, unredacted customer lists, or data that cannot lawfully be processed by third-party model services.
Quick start
The official extension and CLI work as usual. You only write two config files.
Sign in with an email code—no separate signup—and submit the compliance check (usually approved instantly).
Start with a Daily Pass trial or a weekly-reset Monthly plan, or redeem an activation code to generate your API key.
Run the Mac/Windows setup script, import into CC-Switch, or write the config files manually to start coding.
~/.codex/config.toml
model_provider = "codexzh"
model = "gpt-6.1-sol"
model_reasoning_effort = "high"
[model_providers.codexzh]
name = "codexzh"
base_url = "https://api.codexzh.com/v1"
wire_api = "responses"
requires_openai_auth = true
web_search = "live"~/.codex/auth.json
{
"OPENAI_API_KEY": "sk-RTK0y...K8X"
}~/.claude/settings.json
{
"env": {
"ANTHROPIC_BASE_URL": "https://api.codexzh.com",
"ANTHROPIC_AUTH_TOKEN": "sk-your-api-key",
"ANTHROPIC_MODEL": "cc-grok-4.6",
"ANTHROPIC_DEFAULT_OPUS_MODEL": "cc-grok-4.6",
"ANTHROPIC_DEFAULT_SONNET_MODEL": "cc-grok-4.6",
"ANTHROPIC_DEFAULT_HAIKU_MODEL": "cc-grok-4.6"
}
}Video tutorial · Bilibili
Learn CodexZH's core features and best practices from the ground up.