Connect OpenAI Codex CLI to Brioi:
config.toml Generator

Generate a ready-to-use ~/.codex/config.toml pointing OpenAI Codex CLI at Brioi’s Responses API endpoint for GPT-6.2 Sol and Astra.

AI Coding CLIOpenAI ResponsesView all model rates →
Sign up free

OpenAI Codex CLI Interactive Config Generator

Pick your default model (optional local-only API key substitution, never sent over the network) and copy into ~/.codex/config.toml.

Config Options

~/.codex/config.toml
model = "gpt-6.2-sol"
model_provider = "brioi"

[model_providers.brioi]
name = "Brioi"
base_url = "https://vip.brioi.com/v1"
env_key = "BRIOI_API_KEY"
wire_api = "responses"

Setup Steps

  • Step 1 · Export BRIOI_API_KEYAdd export BRIOI_API_KEY="sk-your-brioi-key" to your shell profile.
  • Step 2 · Write ~/.codex/config.tomlCopy the generated TOML config below using wire_api = "responses".
  • Step 3 · Run codex in your workspaceLaunch codex to start coding against GPT-6.2 through Brioi.

Production Tips

  • Keep wire_api = "responses" for full Codex tool-calling compatibility

FAQ

Can Codex CLI run purely on API key billing without ChatGPT login?

Yes—configuring a custom model_provider with BRIOI_API_KEY runs fully on pay-as-you-go API credits.

More Integrations