Clients
Claude Code setup
Anthropic's official coding assistant for the terminal. Install it, edit one config file, and it runs on Yuzu.
- Groups
- Any Claude group ("Claude Max (CC only)" works with Claude Code only)
- Config file
~/.claude/settings.json(Windows:%USERPROFILE%\.claude\settings.json)- Endpoint
https://api.yuzuapi.com(no /v1)
Install
npm install -g @anthropic-ai/claude-code
npm install -g @anthropic-ai/claude-code # Add sudo if you see EACCES
If
claude --versionprints a version, it's installed.Write the config
Open the config file above (create it if missing), paste the following and replace
sk-your-keywith your key:{ "env": { "ANTHROPIC_BASE_URL": "https://api.yuzuapi.com", "ANTHROPIC_AUTH_TOKEN": "sk-your-key", "ANTHROPIC_MODEL": "claude-sonnet-5-5", "ANTHROPIC_DEFAULT_HAIKU_MODEL": "claude-sonnet-5-5", "CLAUDE_CODE_DISABLE_NONESSENTIAL_TRAFFIC": "1" } }What each setting meansWorks as is; read this to change models
Variable Example Notes ANTHROPIC_BASE_URLhttps://api.yuzuapi.comYuzu endpoint, no /v1 ANTHROPIC_AUTH_TOKENsk-your-keyYour Yuzu API key ANTHROPIC_MODELclaude-sonnet-5-5Default model, e.g. claude-opus-5-5ANTHROPIC_DEFAULT_HAIKU_MODELclaude-sonnet-5-5Model for background tasks (session titles, etc.). Claude Plus has no haiku; if unset, haiku requests are served and billed as claude-sonnet-5-5. Other groups can useclaude-haiku-5-5to saveCLAUDE_CODE_DISABLE_NONESSENTIAL_TRAFFIC1Turns off non-essential telemetry; keep it Rather not edit the config file?Use environment variables for the current terminal only
$env:ANTHROPIC_BASE_URL = "https://api.yuzuapi.com" $env:ANTHROPIC_AUTH_TOKEN = "sk-your-key" $env:ANTHROPIC_MODEL = "claude-sonnet-5-5" $env:ANTHROPIC_DEFAULT_HAIKU_MODEL = "claude-sonnet-5-5" claude
export ANTHROPIC_BASE_URL="https://api.yuzuapi.com" export ANTHROPIC_AUTH_TOKEN="sk-your-key" export ANTHROPIC_MODEL="claude-sonnet-5-5" export ANTHROPIC_DEFAULT_HAIKU_MODEL="claude-sonnet-5-5" claude
Start
cd your-project claude
Run
/status; if the endpoint shows Yuzu, you're set. Use/modelto switch models. Restart Claude Code after changing the config.