ChatGPT(Codex)
ChatGPT Codex + GPT Proto
OpenAI’s Codex CLI reads custom providers from ~/.codex/config.toml and the key from ~/.codex/auth.json. One relay, multiple models.
Install Codex CLI
Requires the Bun runtime:
bash
# Bun runtime
curl -fsSL https://bun.sh/install | bash
# Codex CLI
bun install -g @openai/codexAppend providers to ~/.codex/config.toml
Add your provider block at the end of the file:
~/.codex/config.toml
# Default provider — OpenAI Responses protocol (GPT models)
[model_providers.gptproto]
name = "gptproto"
base_url = "https://gptproto.com/v1"
wire_api = "responses"
requires_openai_auth = trueKeep the /v1. Codex’s base_url must end in /v1 — no exceptions.
Write your key to ~/.codex/auth.json
~/.codex/auth.json
{
"OPENAI_API_KEY": "<YOUR_API_KEY>"
}Codex reads the key via requires_openai_auth from auth.json. If you previously logged in with an official account, this file takes precedence.
Use it
Set the default model at the top of config.toml, or pick per-invocation:
toml
# At the top of config.toml:
model = "gpt-5.6-luna"
model_provider = "gptproto"
# Or per command:
codex --model gptproto/gpt-5.6-luna "your question"Desktop / IDE plugin: Shares ~/.codex/ with the CLI — no extra install. Fully quit the process after changing config (closing the window is not enough).