Bridge by Wekoya / Docs / Coding agents
Codex
Updated
OpenAI's Codex CLI runs on Bridge with Claude, GPT, Gemini, DeepSeek or any model with tool calling, paid from your naira balance. Codex only speaks OpenAI's Responses API, which Bridge answers at POST /v1/responses, so you add Bridge as a provider in Codex's config file and start it as usual.
1. Install Codex if you have not: npm install -g @openai/codex, or brew install --cask codex.
2. Add Bridge to Codex's own config file, ~/.codex/config.toml (on Windows, %USERPROFILE%\.codex\config.toml). Codex ignores providers in a project's own .codex/config.toml, so it has to be this one.
# ~/.codex/config.toml
model = "claude-sonnet-5-5"
model_provider = "bridge"
[model_providers.bridge]
name = "Bridge by Wekoya"
base_url = "https://wekoya-api.wekoya.tech/v1"
env_key = "WEKOYA_API_KEY"
wire_api = "responses"3. Put your key where the config says, then run Codex. Unlike Claude Code, Codex wants the address with /v1 on the end.
export WEKOYA_API_KEY=wk_live_...
codexWindows (PowerShell).
$env:WEKOYA_API_KEY = "wk_live_..."
codexChoosing the model
- Set
modelin the file:claude-sonnet-5-5orgpt-5.6-terrafor everyday work,deepseek-v4.1-flashto spend the least. For one run,codex -m deepseek-v4.1-flash. - Any model with tool calling works: Codex edits files and runs commands through tools.
What works, and what does not
- Reading and editing files, running commands, pictures, thinking and streaming.
- Codex's built-in web search runs on OpenAI's servers and is not available through Bridge; Codex works without it.
- Codex cloud tasks need a ChatGPT sign-in; the CLI on your computer does not.
wire_apimust be"responses": current Codex releases accept nothing else for a custom provider. More about the endpoint: Responses API.
If something goes wrong
- Missing environment variable WEKOYA_API_KEY: set it in the same terminal before running
codex, or usesetxon Windows and open a new terminal. - 404 or not found: check
base_urlends in/v1andwire_api = "responses". - 401 or 402: the key is wrong, or the balance needs a top-up. See every agent's errors.
More: Codex CLI with Bridge, the ways to pay for Codex in Nigeria and Claude Code vs Codex.