Integration guide
Claude Code Integration Guide
Set your ZHUAN API key and base URL in Claude Code, then start your first session with claude-fable-5-2.
Install Claude Code and prepare your key
After installing Claude Code, open a terminal and follow the quickstart to set ZHUAN_API_KEY. Run the commands for your operating system and start Claude Code from that same terminal.
Windows PowerShell
$env:ANTHROPIC_BASE_URL = "https://key.zhuan.xyz/v1"
$env:ANTHROPIC_AUTH_TOKEN = $env:ZHUAN_API_KEY
claude --model claude-fable-5-2
macOS or Linux
export ANTHROPIC_BASE_URL="https://key.zhuan.xyz/v1"
export ANTHROPIC_AUTH_TOKEN="$ZHUAN_API_KEY"
claude --model claude-fable-5-2
Verify the connection and usage
Run /status in Claude Code and check that the endpoint points to key.zhuan.xyz. Send a short message, then check the model and charge under Usage in the ZHUAN console.
If credentials conflict, check your terminal and Claude Code settings for another key or endpoint. Set the variables again the next time you start from a new terminal.