INTEGRATIONS · CODING AGENTS & APPS

Codex

The Codex CLI speaks the OpenAI-compatible API. You will need to export the standard OpenAI API key environment variable and register Hoonify as a model provider in ~/.codex/config.toml.

Get an API key

You need a key first. Create one on the Subscriptions page — keys are revealed once at creation, so copy it before closing the dialog.
shell
export HOONIFY_API_KEY="hooni_…"
export OPENAI_API_KEY=$HOONIFY_API_KEY

# Edit ~/.codex/config.toml with the provider definition

codex --local-provider hoonify

Edit ~/.codex/config.toml and add the config.toml lines above. Then export your key as OPENAI_API_KEY (the env_key above) and run codex --local-provider hoonify — it will route through Hoonify by passing the OPENAI_API_KEY to the Hoonify provider configured in config.toml.

Related: OpenAI compatibility · Models