Setup guide
Use Codex with open models
Updated
To run Codex on open-weight models, point it at https://api.tadly.dev with a Tadly API key and choose Qwen-3.5 as the model.
How do I set up Codex?
- Create a key in the dashboard and run
export TADLY_API_KEY=<your key>. - Install:
npm i -g @openai/codex - Paste the block: into ~/.codex/config.toml
- Run:
codex
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"Which model should Codex use?
| Row label | Model id | Context | Pay-per-use rate |
|---|---|---|---|
| Qwen-3.5 | qwen3.5 | 128K tokens | $0.15 / 1M tokens |
Agents read and resend your code, so a long session can reach the context limit. Start with Qwen-3.5, then check it on a real task in your own repository.
What does Codex cost on Tadly?
You keep using Codex as it is and pay Tadly for the model. Buy a one-time 30-day plan, or pay per request from a prepaid wallet. See pricing.
| Row label | Price | Period | Usage |
|---|---|---|---|
| StarterFor side projects | $1 or ₹99 | 30 days | Base usage |
| ProFor daily coding | $11 or ₹999 | 30 days | 5× base usage |
| UltraFor heavy agents | $102 or ₹8,999 | 30 days | 100× base usage |
Why did my first request return a 503?
A model that has been idle needs time to start. Until it is ready, the API answers 503 with the code model_warming. Starting can take several minutes, so retry until it answers. Every status is listed in the API errors reference.
Common questions
Do I have to change how I use Codex?
No. You keep using Codex as it is and pay Tadly for the model. Only its endpoint, its key and the model it calls change.
Which model should I use with Codex?
Start with Qwen-3.5, then check it on a real task in your own repository. Agents read and resend your code, so compare context windows if your sessions run long.
How do I pay for Codex on Tadly?
Buy a one-time 30-day plan, or pay per request from a prepaid US-dollar wallet. In India, plans are charged in rupees and can be paid by UPI.
Does a Tadly plan renew automatically?
No. A plan is a one-time payment for 30 days. No card is stored for later charges, so nothing renews and there is nothing to cancel.