Guide
Use Codex with OpenKodo
Codex talks to the OpenAI Responses API. OpenKodo implements it, including streaming, tool calls and usage reporting, so the only change is the provider block in your Codex config.
- 1
Create an API key
Go to Console → API keys and copy the key. - 2
Export the key
shellexport OPENKODO_API_KEY="ok_live_..." - 3
Add the provider to ~/.codex/config.toml
shellmodel = "gpt-6.2-astra" model_provider = "openkodo" [model_providers.openkodo] name = "OpenKodo" base_url = "https://api.openkodo.dev/v1" env_key = "OPENKODO_API_KEY" wire_api = "responses"Swap model for any ID in the catalog. deepseek-v4.1-flash-1017 is the cheapest for long agent loops; gpt-6.2-astra is the strongest for hard reviews.
- 4
Run it
shellcodex
Why wire_api = "responses" matters
Codex uses the Responses event stream, including function-call items and reasoning items. Pointing it at a Chat Completions-only gateway is the usual cause of tools silently not running. OpenKodo bridges the two formats and preserves tool calls, reasoning and usage.