Prerequisites
- Download and install CC Switch from GitHub Releases.
- The command-line tools you want to use (Claude Code / Codex / Gemini CLI) are installed.
- You have created an API Key on the API Keys page of the DreamTo console.
CC Switch’s UI text changes between versions, and the field names below follow common versions. If you can’t find a field, just fill in the three essentials: request URL, API Key and model.
Add DreamTo as a provider
At the top of CC Switch, select the app to configure, click Add Provider (+), and choose Custom. Set the name toDreamTo and the website to https://www.dreamto.ai.
- Claude Code
- Codex
- Gemini CLI
You can also switch to JSON editing and merge the following directly (same as on the Claude Code page):
Local routing (optional)
Newer versions of CC Switch offer a Local routing / proxy feature that converts Claude Code’s Anthropic-format requests into OpenAI Chat Completions format, so you can use GPT, DeepSeek and other Chat Completions models in Claude Code.- In Settings → Routing, turn on the main routing switch, confirm the status is running, and turn on routing for the relevant app (Claude / Codex).
- In the provider config, set the API format to OpenAI Chat Completions, the request URL to
https://api.dreamto.ai/v1, and the model to a Chat Completions model ID (such asdeepseek-v4.1-flash-1017). - Keep CC Switch running while you use it.
Verify and troubleshoot
- After enabling, open a new terminal, run
claude/codex/gemini, and send a message to test. In Claude Code,/statusshows the current address. - Still using the old config: confirm DreamTo is the active entry and that you restarted the tool. Check whether an environment variable of the same name in your shell (such as
ANTHROPIC_API_KEY) is overriding the config file. - 401: the key is wrong or contains spaces.
- 404 / model not found: check that the request URL includes or omits
/v1as shown in the tables above, and that the model ID matches the Model Marketplace. - Routing is on but requests bypass the proxy: make sure both the main routing switch and the app’s routing switch are on.

