Clients
CC Switch setup
CC Switch is a desktop app that manages providers for Claude Code, Codex and similar tools. Add Yuzu as a provider once, then switch with one click instead of editing config files.
- Groups
- Claude Code: any Claude group. Codex: any Codex / GPT group
- Where
- Sidebar → Claude Code or Codex → + (Add provider) at the top right → Custom config
- Endpoint URL
- Claude Code:
https://api.yuzuapi.com(no /v1). Codex:https://api.yuzuapi.com/v1
CC Switch only writes the config, so install Claude Code or Codex first: see the Claude Code and Codex guides. Written for CC Switch v4.0; some button labels may differ in your version.
Create a key
In Console → API keys, create a key. For Claude Code pick a Claude group (e.g. Claude Max (Integration Edition)); for Codex pick a Codex group (e.g. Codex Pro (Integration Edition)). Using both? Create one key for each.
Add the provider
Download CC Switch from GitHub Releases. Select Claude Code or Codex in the sidebar, click + (Add provider) at the top right, choose Custom config, name it
Yuzu, then fill in:Field Value Endpoint URL https://api.yuzuapi.com(no /v1)API Key Your Claude group key (starts with sk-)Or write it straight into the config editor, replacing
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" } }The Codex editor has two parts. Put your key in auth.json:
{ "OPENAI_API_KEY": "sk-your-key" }Set config.toml like this;
base_urlmust include/v1:model_provider = "yuzu" model = "gpt-6.2-sol" model_reasoning_effort = "high" [model_providers.yuzu] name = "Yuzu" base_url = "https://api.yuzuapi.com/v1" wire_api = "responses" requires_openai_auth = true
Leave the Full URL switch next to the endpoint off and stop the URL at the level shown above. Click Add at the bottom to save.
Enable it
Find Yuzu in the provider list and click Enable (or switch from the system tray menu). Claude Code picks it up without a restart; for Codex, close and reopen the terminal.
Test in the terminal
cd your-project claude # or codex
Send "hello". You're connected once it replies. In Claude Code,
/statusshould show Yuzu as the endpoint.
Can't connect?
| Problem | Fix |
|---|---|
404 | Wrong endpoint URL. Claude Code: https://api.yuzuapi.com; Codex: https://api.yuzuapi.com/v1. Don't add /chat/completions or /messages, and don't type /v1 twice, or the path gets doubled. Keep Full URL off |
401 | The key is incomplete, has spaces, or was deleted |
| Models load, but messages fail | Fetching the model list only checks the key and URL; it doesn't call a model. Look up the error message in Troubleshooting. Most often the key is from the wrong group, e.g. a Claude key used in Codex |
| Still using the old provider | Codex needs a terminal restart. Close the terminal, open a new one and run codex again |