BRUCEAI
Codex setup
To avoid touching your existing Codex or ChatGPT login, put the BRUCEAI test config in a separate folder and isolate it with CODEX_HOME.
This keeps your personal ~/.codex unchanged. Testing BRUCEAI will not affect your normal codex command.
Copy these model IDs into config files, API request bodies, or any OpenAI-compatible client that asks for a model name.
Prepare your API key
After signing in, open the API key page to create or copy an API key. It looks like sk-or-v1-xxxxxxxxxxxx. Treat it like a password.
Create API keyCodex uses the OpenAI-compatible interface, so this Base URL must include /v1.
Do not share your API key with anyone, and do not commit it to GitHub, GitLab, or any public repository.
The commands below will switch to the system you choose.
Install Codex CLI
Run this only if Codex CLI is not installed yet.
npm install -g @openai/codexCreate an isolated config folder
mkdir -p ~/.codex-bruceaiWrite config.toml
Open config.toml with the command below. If the file does not exist, the editor will create it.
nano ~/.codex-bruceai/config.tomlPaste config.toml contents
Paste the full content below into config.toml. In nano on macOS / Linux: press Ctrl+O, press Enter to save, then press Ctrl+X to exit. In Windows Notepad, press Ctrl+S and close the window.
model_provider = "OpenAI"
model = "gpt-5.6-terra"
model_reasoning_effort = "high"
disable_response_storage = true
[model_providers.OpenAI]
name = "OpenAI"
base_url = "https://api.bruceai.net/v1"
wire_api = "responses"
requires_openai_auth = trueCreate auth.json
Open auth.json with the command below, then prepare to paste your BRUCEAI API key.
nano ~/.codex-bruceai/auth.jsonPaste auth.json contents
Replace sk-or-v1-your-key with the key you created on the API key page. In nano on macOS / Linux: press Ctrl+O, press Enter to save, then press Ctrl+X to exit. In Windows Notepad, press Ctrl+S and close the window.
{ "OPENAI_API_KEY": "sk-or-v1-your-key" }Start Codex
CODEX_HOME="$HOME/.codex-bruceai" codexSwitch models inside Codex
After Codex starts, type /model to switch between gpt-5.6-sol, gpt-5.6-terra, gpt-5.6-luna, gpt-5.5, gpt-5.4, and gpt-5.4-mini.
/modelIf you select an unsupported model, the BRUCEAI backend will return the current supported model list.
Optional: create an alias
If you do not want to type CODEX_HOME every time, create a bcodex command. In Windows Notepad, paste the function at the end of the file, press Ctrl+S, then close the window.
echo 'alias bcodex="CODEX_HOME=\"$HOME/.codex-bruceai\" codex"' >> ~/.zshrc
source ~/.zshrcAfter that, run bcodex for BRUCEAI testing. Your original codex command still uses your personal ChatGPT / Codex settings.