Skip to main content

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?

  1. Create a key in the dashboard and run export TADLY_API_KEY=<your key>.
  2. Install: npm i -g @openai/codex
  3. Paste the block: into ~/.codex/config.toml
  4. Run: codex
~/.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"

Which model should Codex use?

Chat models on Tadly
Row labelModel idContextPay-per-use rate
Qwen-3.5qwen3.5128K 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.

Plan prices You are charged in rupees in India and US dollars elsewhere.
Row labelPricePeriodUsage
StarterFor side projects$1 or ₹9930 daysBase usage
ProFor daily coding$11 or ₹99930 days5× base usage
UltraFor heavy agents$102 or ₹8,99930 days100× 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.