Claude Code download & setup
This guide connects the Claude Code terminal client to Xuo. Claude Code and Codex are different tools with different model and endpoint requirements.
1. Official installation
Open the official Claude Code installation guide →
Choose the official method for your operating system. The recommended native installation commands below install the client on your computer; they do not create a Xuo account.
macOS / Linux / WSL:
curl -fsSL https://claude.ai/install.sh | bashWindows PowerShell:
irm https://claude.ai/install.ps1 | iexOpen a new terminal after installation and check:
claude --version2. Prepare a Xuo key and model
Create an API key. Confirm that your group has credit and an available Claude model supporting Anthropic Messages and tool calling.
| Setting | Value |
|---|---|
| Service URL / ANTHROPIC_BASE_URL | https://api.xuo.cc |
| ANTHROPIC_AUTH_TOKEN | Your full Xuo API key |
| ANTHROPIC_MODEL | An available full Claude model ID for your group |
Do not append /v1 here. Do not enter your Xuo key on another provider's website.
3. Choose one configuration method
CC Switch
For a graphical provider manager, follow CC Switch for Claude Code. Reopen Claude Code after enabling the provider.
Terminal environment variables
Replace the placeholders with your key and an available Claude model ID.
macOS / Linux:
export ANTHROPIC_BASE_URL='https://api.xuo.cc'
export ANTHROPIC_AUTH_TOKEN='YOUR_XUO_API_KEY'
export ANTHROPIC_MODEL='YOUR_AVAILABLE_CLAUDE_MODEL_ID'
claudeWindows PowerShell:
$env:ANTHROPIC_BASE_URL = 'https://api.xuo.cc'
$env:ANTHROPIC_AUTH_TOKEN = 'YOUR_XUO_API_KEY'
$env:ANTHROPIC_MODEL = 'YOUR_AVAILABLE_CLAUDE_MODEL_ID'
claudeThese variables apply only to the current terminal and programs launched from it. Avoid configuring multiple providers at once, as existing settings may override these values. After successful verification, use CC Switch for persistence or consult the official settings-file guide. Merge changes into existing settings instead of overwriting them.
4. Verify the connection and cost
Run /status in Claude Code and check the base URL, credential source and model. Send a short message, then check the model, group and consumption in Xuo Usage Logs.
Calls made with your Xuo key use Xuo credit and billing rules, not Claude website subscription entitlements. Live calls cannot be verified through the production domain until the server is deployed.
For 401, 429, unavailable models or tool-call errors, see troubleshooting and submit a redacted ticket if needed.
Official references
Installation · Gateway connection
This guide does not treat Claude desktop or web subscription sign-in as Xuo API configuration. Those surfaces have their own official requirements.
