iTokenINDIA
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

  1. Open https://itokenai.in and choose Get API Key. Sign in with your email or Google account — no card is asked at signup.
  2. Top up from ₹49 with any UPI app (Razorpay checkout; UPI processing fees extra). Credits arrive the moment the payment confirms.
  3. 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

  1. Install Codex from https://openai.com/codex/.
  2. Install CC-Switch from https://github.com/farion1231/cc-switch/releases.

3 Add iToken as a custom provider

  1. Open CC-Switch and select Codex in the top toolbar.
  2. Click the + (add config) button and choose custom config.
  3. Provider name: iToken · Notes: iToken
  4. Website: https://itokenai.in/
  5. API key: your sk-itk-… key from the Dashboard.
  6. API request URL: https://itokenai.in/v1
  7. 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).
  8. Click fetch models next to model mapping to load iToken's catalogue.
  9. Click add model and pick models that support the Responses API — the model list filters them under API format → OpenAI Responses.
  10. Click Save to store the config.
  11. 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.