Codex CLI · VS Code · Cursor · Monthly plans

CodexZH
Bring Codex into your dev workflow

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

Works with leading coding models and developer tools

gpt-6.2-solgpt-6.2-astracc-gpt-6.2-solcc-gpt-6.2-astragpt-6.1-terracodex-auto-reviewgpt-image-2gpt-image-2.5gpt-6-astragpt-6.1-solgpt-6-solgpt-5.6-solgpt-5.6-terragrok-4.6grok-4.7cc-gpt-6-astracc-gpt-6.1-solcc-gpt-6-solcc-gpt-5.6-solcc-grok-4.6cc-grok-4.7
Codex CLIVS Code extensionCursorWindsurfClaude CodemacOSWindowsLinuxWSL

01 — 06

Route calls through the gateway. Six jobs, one layer.

Keep your coding habits and just change the endpoint. Routing, billing, auditing, and security happen in one place.

01

Unified API access

Compatible with the official Codex and Claude Code protocols. One key for multiple model families.

02

Model routing

Routes requests to the matching service channel by model and tier. The model actually called is shown in console records.

03

Usage logs

Every call records its request time, model, latency, and tokens, with filters by date and model plus CSV export.

04

Cost analytics

Token usage and cost for every call, summarized in usage charts.

05

Access management

Separate API keys and team member management, with quota and permissions per person.

06

Security controls

HTTPS in transit, minimal necessary log retention, and no active use of customer data for general model training.

Service boundaries

  • No active use of customer inputs, outputs, code, or business data for general model training, fine-tuning, or distillation
  • No selling, renting, or trading of customer data
  • No active use of customer data for advertising, profiling, or public case studies
  • Model identifiers, tokens, and costs follow the console usage log
  • Necessary call logs, cost analytics, security audit, and anomaly review capabilities
  • Third-party model, overseas model, or overseas node calls follow console display and provider rules

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

Three steps, then keep using the tools you know

The official extension and CLI work as usual. You only write two config files.

  1. 1

    Sign in & confirm access

    Sign in with an email code—no separate signup—and submit the compliance check (usually approved instantly).

  2. 2

    Choose a plan or redeem a code

    Start with a Daily Pass trial or a weekly-reset Monthly plan, or redeem an activation code to generate your API key.

  3. 3

    Configure in one click

    Run the Mac/Windows setup script, import into CC-Switch, or write the config files manually to start coding.

Read the full setup guide

~/.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

CodexZH Feature demo

Learn CodexZH's core features and best practices from the ground up.

  • 10-minute quick start
  • Real-world coding demos
  • Complete feature tour