CC Switch Setup: Import LumeCoder in One Click for Claude Code and Codex
CC Switch is an open-source desktop app that manages API providers for command-line tools such as Claude Code and Codex, so you do not edit config files by hand when you switch. This guide covers adding LumeCoder to it: the one-click import from the dashboard, the manual setup, and troubleshooting.
1. Before you start
- Download CC Switch from the Releases page of its GitHub project (farion1231/cc-switch). Use a recent version, because the one-click import relies on its ccswitch:// link support.
- Install the command-line tool you want to use, such as Claude Code or Codex.
- Create an API key in the LumeCoder dashboard.
2. Method 1: one-click import from the dashboard (recommended)
On the API Keys page of the LumeCoder dashboard, each key has an “Import to CC Switch” button. It builds an import link with the endpoint, your key, and the API format for the tool and model you pick, then hands it to CC Switch to create the provider.
Open the import dialog
Go to API Keys in the dashboard and click “Import to CC Switch” next to the key you want.
Pick the target tool
Available tools are Claude Code, Codex, OpenCode, OpenClaw, Hermes Agent, and Pi. Gemini CLI is listed too, but it has no available models right now and shows as unavailable.
Pick a default model
Claude Code can skip this and keep the tool's own model name; the other tools need one. The choices depend on the models this key is allowed to use.
Confirm the import
Your browser asks to open CC Switch. CC Switch shows what it is about to add once more, and nothing is saved until you confirm.
3. Method 2: add the provider by hand
If you would rather not use the import button, select the tool in CC Switch, add a custom provider, and fill it in from the table below. Use the full API key from the dashboard (it starts with sk-).
| Tool | Endpoint | API format |
|---|---|---|
| Claude Code | https://api.lumecoder.com | Anthropic Messages |
| Codex | https://api.lumecoder.com/v1 | OpenAI Responses |
| OpenCode (Claude models) | https://api.lumecoder.com/v1 | Anthropic |
| OpenCode / OpenClaw / Hermes Agent / Pi (GPT models) | https://api.lumecoder.com/v1 | OpenAI Chat Completions |
| OpenClaw / Hermes Agent / Pi (Claude models) | https://api.lumecoder.com | Anthropic |
Claude model endpoints have no /v1; GPT model endpoints do. Use model names LumeCoder supports; the dashboard and the models page list them.
4. Check that it works
Enable the new provider in CC Switch, open a new terminal window (sessions that are already open keep the old config), and run:
claude -p "Reply with OK"
If you get a normal reply, the request went through LumeCoder. In Claude Code you can also run /status to see the current Base URL.
5. Troubleshooting
Nothing happens when I click “Import to CC Switch”
Check that CC Switch is installed and recent. Your browser asks once whether to open an external app, and you need to allow it. The link contains your key and is only generated when you click, so it is not in the page source.
I ended up with duplicate providers
Importing the same tool again creates another entry. Delete the extras in CC Switch and import each tool once.
I get a 401 or an authentication error
Check that the key was copied completely (it starts with sk-, with no extra spaces) and that it is not disabled or restricted to other models.
Requests are rejected or I am told I am out of points
Check your point balance in the dashboard and confirm the model is allowed for this key.
My terminal still uses the old provider after switching
Open a new terminal window so the tool reads the config again.
Why can't I pick Gemini CLI?
The model catalog has no Google models for Gemini CLI right now, so the import dialog shows it as unavailable.
