Guides · Codex
How to use Codex CLI with iToken in India
Pay with UPI from ₹49 — no international credit card needed.
30-second answer: Add iToken as a custom provider in CC-Switch with request URL
https://itokenai.in/v1 and your sk-itk- key, then pick a Responses-compatible model — Codex speaks the Responses API, which iToken supports natively.1 Get an iToken API key
- Open
https://itokenai.inand choose Get API Key. Sign in with your email or Google account — no card is asked at signup. - Top up from ₹49 with any UPI app (Razorpay checkout; UPI processing fees extra). Credits arrive the moment the payment confirms.
- In the Dashboard, click Create API Key and name it after this tool. Copy the key — it starts with
sk-itk-.
Keep the key private. You can delete it anytime on the Dashboard's API Keys page (View / Edit / Delete). Full reference: API docs.
2 Install Codex and CC-Switch
- Install Codex from
https://openai.com/codex/. - Install CC-Switch from
https://github.com/farion1231/cc-switch/releases.
3 Add iToken as a custom provider
- Open CC-Switch and select Codex in the top toolbar.
- Click the + (add config) button and choose custom config.
- Provider name:
iToken· Notes:iToken - Website:
https://itokenai.in/ - API key: your
sk-itk-…key from the Dashboard. - API request URL:
https://itokenai.in/v1 - Open Advanced Options and set Upstream format to Responses (native) — Codex only speaks the Responses wire API (CC-Switch writes
wire_api = "responses"into~/.codex/config.toml). - Click fetch models next to model mapping to load iToken's catalogue.
- Click add model and pick models that support the Responses API — the model list filters them under API format → OpenAI Responses.
- Click Save to store the config.
- Turn the route on for Codex and restart the app so the model list refreshes — it now uses your iToken balance.
What it costs in rupees
Live prices: model price list · Updated daily.
Note: Can't see custom models in the Codex model picker? That's Codex's own upstream gating (it filters the picker by official login state), not a config problem. Keep the official login and the custom route active, or select the model in CC-Switch directly.