Codex with Veil API
Codex talks to Veil API in the OpenAI Responses format. Change two settings and every Veil model is available.
Setup
- Create a Veil API key. Open the console
- Add this to ~/.codex/config.toml.
- Restart Codex and choose the Veil provider.
[model_providers.veil]
name = "Veil API"
base_url = "https://api.veil.ir/v1"
env_key = "VEIL_API_KEY"
wire_api = "responses"
# then
codex -c model_provider=veil -m anthropic/claude-haiku-5-5Which model
Any model id from the models page works. Veil routes it and bills it at its list price.