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)
  1. Install

    npm install -g @anthropic-ai/claude-code
    npm install -g @anthropic-ai/claude-code
    # Add sudo if you see EACCES

    If claude --version prints a version, it's installed.

  2. Write the config

    Open the config file above (create it if missing), paste the following and replace sk-your-key with 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
    VariableExampleNotes
    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-5
    ANTHROPIC_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 use claude-haiku-5-5 to save
    CLAUDE_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
  3. Start

    cd your-project
    claude

    Run /status; if the endpoint shows Yuzu, you're set. Use /model to switch models. Restart Claude Code after changing the config.