Codex CLI Manual Setup
Use this page when you want to connect Codex CLI to Codebyby manually instead of through CC Switch.
Prepare
Make sure you have:
- Registered and logged in to the Codebyby console
- Bought quota or a plan
- Created an API key
- Copied the Base URL and model name
Environment variables
bash
export OPENAI_API_KEY="your Codebyby API key"
export OPENAI_BASE_URL="Base URL shown in the console"PowerShell:
powershell
$env:OPENAI_API_KEY="your Codebyby API key"
$env:OPENAI_BASE_URL="Base URL shown in the console"Codex config
If you use ~/.codex/config.toml, add a Codebyby provider. Field support may vary by Codex version.
toml
model = "model name available in the console"
model_provider = "codebyby"
[model_providers.codebyby]
name = "Codebyby"
base_url = "Base URL shown in the console"
env_key = "OPENAI_API_KEY"
wire_api = "responses"Test
bash
codex "Reply in one sentence whether the current connection works"If it fails, check Base URL, API key, model name, proxy, and network settings.