Gateway
Run Codex on Conifer Gateway
One provider table in Codex’s config sends it through the gateway, on the Responses wire.
Codex takes a custom provider in its config file. Add Conifer Gateway as one, and Codex runs on the catalog’s models through OpenAI’s Responses format.
Set it up
Get a key
Create one on the console’s API keys page, as the quickstart shows, and keep it in the variable Codex will read.
terminalexport CONIFER_API_KEY="sk-cg-…"Add the provider
In
~/.codex/config.toml, name the provider and give it a table:~/.codex/config.tomlmodel_provider = "gateway" web_search = "disabled" [model_providers.gateway] name = "Conifer Gateway" base_url = "https://gateway-api.conifer.build/v1" env_key = "CONIFER_API_KEY" wire_api = "responses"base_urlends in/v1, as an OpenAI client’s does.env_keynames the variable that holds the key, not the key itself.wire_api = "responses"sends Codex’s requests to/v1/responses.Start Codex on a model
terminalcodex --model claude-haiku-5-5
Turn web search off on other makers’ models
Codex offers OpenAI’s hosted web search on its own, and only OpenAI’s hosts run it. On a model that isn’t OpenAI’s, such as claude-haiku-5-5, keep web_search = "disabled" at the top of the config. On an OpenAI model you may leave that line out.
What to check
- A 401 means Codex didn’t find the key: check that the variable
env_keynames is set in the shell you started it from. - A 404
model_not_foundmeans the id isn’t in the catalog: check it in the console’s Models section, or in the catalog. - The errors page has every other code.