Codex CLI with an isolated Bro profile
Run official Codex CLI through Brocoding using an isolated CODEX_HOME and base_url https://brocod.ing/v1 without changing your normal ~/.codex profile.
Setup steps
1. Create an isolated CODEX_HOME and config.toml
Create ~/.codex-bro and save config.toml pointing to https://brocod.ing/v1 with wire_api = "responses".
mkdir -p "$HOME/.codex-bro" cat <<'TOML' > "$HOME/.codex-bro/config.toml" model_provider = "brocoding" model = "gpt-6.1-sol" [model_providers.brocoding] name = "Brocoding" base_url = "https://brocod.ing/v1" env_key = "BROCODING_API_KEY" wire_api = "responses" TOML2. Start Codex with BROCODING_API_KEY
Export BROCODING_API_KEY (your Brocoding Default key) and launch Codex with CODEX_HOME set to ~/.codex-bro.
export BROCODING_API_KEY="<your-brocoding-default-key>" CODEX_HOME="$HOME/.codex-bro" codex3. Verify and rollback
Test a prompt and tool call. Unset CODEX_HOME and BROCODING_API_KEY anytime to return to your standard Codex setup.
unset CODEX_HOME BROCODING_API_KEY
Why use Brocoding
- Claude Opus 5.5 below official API pricing — check live rates on the models page.
- One API key for all models: Claude, GPT, Gemini, and Grok in one account.
- No foreign card required — pay with crypto, Alipay, WeChat, or SBP.