Codex CLI in India
Codex CLI in India, paid in rupees without a ChatGPT plan
You can run OpenAI’s Codex CLI in India without a ChatGPT plan or a US-dollar card. Buy a ScaleMax key in rupees with UPI, Indian cards or net banking, run npx scalemax@latest to point Codex at it, and pay for GPT usage from prepaid credit, an OpenAI token pack, or an unlimited plan on one GPT model.
- Pay with
- UPI · GPay · PhonePe · cards (PayU, ₹)
- Pay as you go base URL
https://api.scalemax.pro/v1- Token-pack base URL
https://api.scalemax.pro/token/v1- Codex wire API
responses
Codex CLI without a ChatGPT plan
Codex can use a custom model provider and an API key instead of a ChatGPT sign-in. Point that provider at ScaleMax and log in with your ScaleMax key: Codex then sends its Responses API requests to ScaleMax, and each one is deducted from the prepaid key you bought in rupees.
Checkout takes international cards in US$ (Stripe), UPI, PayU or Cashfree (UPI, cards, net banking) or Cryptomus (crypto), with no payment fee and no subscription. Pay per token from credit or an OpenAI token pack, or pay a flat rupee price for a day, week or month on one GPT model.
For comparison, as of October 14, 2026 OpenAI’s API platform sells prepaid credit in US dollars by card, with no UPI. See the full comparison. ScaleMax is independent and not affiliated with OpenAI.
GPT models for Codex, in rupees
The models Codex is set up for, with each model’s published rate per 1M tokens at the fixed checkout rate, from the live catalogue.
- Input / 1M
- ₹200
- Output / 1M
- ₹1,000
- Context
- 1.05M-token
- Input / 1M
- ₹200
- Output / 1M
- ₹1,000
- Context
- 1.05M-token
- Input / 1M
- ₹10
- Output / 1M
- ₹50
- Context
- 1.05M-token
- Input / 1M
- ₹1,500
- Output / 1M
- ₹6,000
- Context
- 1.05M-token
- Input / 1M
- ₹200
- Output / 1M
- ₹1,200
- Context
- 1.05M-token
- Input / 1M
- ₹500
- Output / 1M
- ₹3,000
- Context
- 1.05M-token
- Input / 1M
- ₹52.2
- Output / 1M
- ₹313.2
- Context
- 1.05M-token
Every GPT model and its other request APIs are on the GPT API in India page.
What one Codex turn costs in rupees
A Codex turn re-sends the conversation and the files in context, much of it from cache. A typical coding-agent turn is 47,000 input tokens, 70% of them cached reads, and 1,200 output tokens. ScaleMax’s own billing formulas give, at the current rates:
- Pay as you go credit per turn
- $0.047 of credit
- Token-pack tokens per turn
- 23,525 tokens
- Lowest you pay per turn
- ₹0.43 on the Scale credit pack
- Pay as you go credit per turn
- $0.076 of credit
- Token-pack tokens per turn
- 23,525 tokens
- Lowest you pay per turn
- ₹0.44 on the 1B OpenAI tokens
- Pay as you go credit per turn
- $0.013 of credit
- Token-pack tokens per turn
- 23,525 tokens
- Lowest you pay per turn
- ₹0.12 on the Scale credit pack
“Lowest you pay” is the cheapest pack’s rupee price divided by the turns it covers. On an OpenAI token pack a cached read counts as 25% of a token.
How many Codex turns each pack covers
- GPT-6 Sol
- ≈ 530 turns
- GPT-5.6 Terra
- ≈ 330 turns
- GPT-5.6 Luna
- ≈ 1,900 turns
- GPT-6 Sol
- ≈ 2,200 turns
- GPT-5.6 Terra
- ≈ 1,400 turns
- GPT-5.6 Luna
- ≈ 8,200 turns
- GPT-6 Sol
- ≈ 11,000 turns
- GPT-5.6 Terra
- ≈ 7,100 turns
- GPT-5.6 Luna
- ≈ 42,000 turns
- GPT-6 Sol
- ≈ 24,000 turns
- GPT-5.6 Terra
- ≈ 15,000 turns
- GPT-5.6 Luna
- ≈ 86,000 turns
- GPT-6 Sol
- ≈ 430 turns
- GPT-5.6 Terra
- ≈ 430 turns
- GPT-5.6 Luna
- ≈ 430 turns
- GPT-6 Sol
- ≈ 4,300 turns
- GPT-5.6 Terra
- ≈ 4,300 turns
- GPT-5.6 Luna
- ≈ 4,300 turns
- GPT-6 Sol
- ≈ 43,000 turns
- GPT-5.6 Terra
- ≈ 43,000 turns
- GPT-5.6 Luna
- ≈ 43,000 turns
Rounded to two figures; your own turns will differ. Every request’s real charge is in the dashboard.
Unlimited GPT plans for Codex, by the day, week or month
One GPT model with no token meter until the plan ends, priced in rupees. Every plan includes 3 requests at once and 30 a minute. Each extra request at once adds 10 a minute and costs a third of the plan price, up to 12 at once. Raise limits at checkout or later from your dashboard. A request over the at-once limit waits up to 30 s for a free slot.
Unlimited plans come on a new key; images, video and voice are not included. All models and the limit maths are on unlimited AI API plans in India.
Set up Codex CLI with a ScaleMax key
- Buy a key with GPT models on the pricing page, paid in rupees: Pay as you go credit, an OpenAI token pack, or an unlimited GPT plan.
- Run the installer, choose Codex, and sign in with the key. It backs up your Codex config, writes the ScaleMax provider with the base URL for your key type, and logs Codex in.
- Check the connection before a long task. This sends one small billable request.
npx scalemax@latestnpx scalemax@latest doctorOr write the Codex config yourself
Put this in ~/.codex/config.toml (Windows: %USERPROFILE%\.codex\config.toml). For a token-pack key, change only base_url to https://api.scalemax.pro/token/v1.
model = "gpt-6.1-sol"
model_provider = "scalemax"
[model_providers.scalemax]
name = "ScaleMax"
base_url = "https://api.scalemax.pro/v1"
wire_api = "responses"
requires_openai_auth = trueThen log Codex in without the key landing in your shell history:
printf "ScaleMax API key: "
IFS= read -r -s SCALEMAX_API_KEY
printf "\n"
printf "%s" "$SCALEMAX_API_KEY" | codex login --with-api-key
unset SCALEMAX_API_KEY- Codex base_url
https://api.scalemax.pro/v1
- Codex base_url
https://api.scalemax.pro/token/v1
- Codex base_url
https://api.scalemax.pro/v1(the token URL works too)
Keep wire_api = "responses", and never put the key in config.toml or a project’s .codex folder. The full guide is in the Codex docs.
Codex CLI in India: questions
Can I use Codex CLI without a ChatGPT subscription?
Yes, on a ScaleMax key. Codex talks to a custom OpenAI-compatible provider over the Responses API, so it signs in with your ScaleMax API key instead of a ChatGPT account. You pay ScaleMax in rupees; no ChatGPT plan is involved.
Which base URL does Codex use?
https://api.scalemax.pro/v1 for a Pay as you go key, or https://api.scalemax.pro/token/v1 for a token-pack key, with wire_api = "responses". npx scalemax@latest reads the key type and writes the matching settings.
Which models does Codex run on?
GPT models only: Codex sends Responses API requests, and on ScaleMax those run on the GPT models. The table on this page lists them with their live rates; your own key’s list is at GET /v1/models.
Can I pay for Codex by the day instead of per token?
Yes, where a GPT model has an unlimited plan. You pay a fixed rupee price for a day, a week or a month on one model and requests are limited per minute and at once instead of by tokens. The plans and their live prices are on this page.
Is ScaleMax affiliated with OpenAI?
No. ScaleMax is an independent, prepaid API provider and is not affiliated with OpenAI. It is not the developer of Codex; it serves GPT models through the OpenAI-compatible Responses API Codex uses.
Related
Run Codex on a key you paid for in rupees
Pay with UPI in a minute, run npx scalemax@latest, choose Codex and start. New users can try $2 of credit first, no card needed.