How do I use the Codex Client without ChatGPT sign-in?
If you cannot create a ChatGPT account or already have a DeepSeek, OpenRouter, or relay API, connect it with CC Switch. Pick your system and follow the interface—no config-file hunting.
Have an API key but don't know where it goes?
CC Switch is an open-source app with a visual interface. It writes the Codex configuration for you; prepare only the Base URL, API key, and model name.
- 01
Open CC Switch and click Codex at the top
Claude, Codex, and Gemini store separate configurations, so choose the correct tab.
- 02
Click + and add your API
Enter the provider's Base URL, API key, and model. Turn on local routing if it only offers a Chat endpoint.
- 03
Click Enable, then reopen Codex
Wait until it shows active. A running Codex Client does not reload the new configuration automatically.
When it shows active, reopen Codex
No ChatGPT sign-in · Model requests go to your API
●Codex asks me to sign in
Use a third-party API instead of creating another account.
●I cannot create a ChatGPT account
Local Codex use does not have to depend on ChatGPT sign-in.
●I have a key but nowhere to put it
CC Switch visually manages the URL, key, and model.
●My old model is still active
Fully quit the Client or start a new CLI after Enable.
No API key? Request a free GPT-compatible API
The access email includes the key, Base URL, models, free quota, and exactly what to enter in every CC Switch field.
Leave one email — we send everything when ready
No install, API key, or advance config reading required today.
Quick diagnose
CC Switch is configured, but Codex still does not work?
I added a key, but Codex still asks me to sign in
Check that CC Switch is on Codex and Enable was clicked, then fully restart the Client.
ERR_02The request returns 404 or an unsupported protocol error
Your provider may only offer Chat Completions. Turn on CC Switch local routing to translate to Responses.
ERR_03CLI works, but the Client still uses my old API
The Client may still be running, or the two surfaces may be reading different CODEX_HOME values.
Here, “no sign-in” means no ChatGPT/OpenAI account sign-in. You still need a third-party API key. Cloud tasks and account sync may be unavailable; local projects, file editing, and commands continue to work.