CC Switch
Import an EasyRouteAPI key into Codex or Claude Code without editing files manually.
Install and prepare
Use CC Switch 4.0.10 or later for the confirmation and switch controls described below. Older versions may switch the active provider immediately because this site’s import link enables it. Back up your client configuration and upgrade before importing.
Install CC Switch from its official project and back up your existing client configuration. Also install the Codex or Claude Code CLI you plan to use. The import configures a provider; it does not install the CLI or make an incompatible model compatible.
Import from API Keys
Sign in to EasyRouteAPI and open API Keys. Open the key’s actions menu, choose CC Switch, select the application and an available primary model, then choose Open CC Switch. For Claude Code with a third-party model, also set Haiku, Sonnet and Opus to tested models.
Review and confirm in CC Switch
Allow the browser to open CC Switch. Check the application, endpoint, masked key and model before importing. Codex uses https://easyrouteapi.com/v1; Claude Code uses https://easyrouteapi.com. Review whether to switch providers after import, then start a fresh CLI session.
Import links contain your API key. Use only your signed-in key actions; do not paste the link into chat, screenshots, public pages or third-party link generators. The public documentation intentionally contains no usable import link.
If the import does not open
Open CC Switch once, verify it is installed, and retry from the key menu. If the browser blocks the app link, allow that request explicitly. Alternatively add a custom provider inside CC Switch using the same endpoint, key and model, or follow the manual Codex and Claude Code guides.
- 401: check the active key, its expiry and the credential source.
- Model unavailable: check the model ID, key group and model restrictions.
- Unsupported parameter or protocol: check model capabilities and client versions before changing settings.
- Successful text, failing tools: verify streaming and tool-call compatibility; import success does not prove it.