Codex CLI reads its model provider from ~/.codex/config.toml, so it can talk to any endpoint that speaks the OpenAI Responses API. That helps when the job is routine (tests, small fixes, boilerplate) and you don't want to spend a frontier-model budget on it.
Setup
npm i -g @openai/codex
export TADLY_API_KEY=<your key>
Then put this in ~/.codex/config.toml:
model = "qwen3.5"
model_provider = "tadly"
[model_providers.tadly]
name = "Tadly"
base_url = "https://api.tadly.dev/v1"
env_key = "TADLY_API_KEY"
wire_api = "responses"
and run codex.
What changes: the model. Codex, your repo and your workflow stay the same.
What gets worse: hard multi-file reasoning. Keep your usual model for that; comment out the two top lines to switch back.
Things to check with any provider: that it supports wire_api = "responses", that tool calls come back intact, and what it returns when you hit a limit.
Disclosure: I build Tadly, the endpoint in the example. The same block works with any Responses-compatible provider; change base_url, env_key and model. Full setup notes: https://tadly.dev/docs/codex
Top comments (0)