guide

Codex

Official Codex CLI and the VS Code plugin. Since February 2026 it only speaks /v1/responses — a custom provider goes in ~/.codex/config.toml.

Three fields. Copy, don’t type

url https://cheapai.lol/v1
model claude-opus-4.8
terminal
model = "claude-opus-4.8"
model_provider = "cheapai"

[model_providers.cheapai]
name = "cheapai"
base_url = "https://cheapai.lol/v1"
env_key = "CHEAPAI_API_KEY"
wire_api = "responses"
requires_openai_auth = false

Do it in order. Don’t skip

  1. Install Codex: npm install -g @openai/codex — or from the OpenAI site, link in the header. The VS Code / Cursor plugin reads the same config file.

  2. User-level config only: ~/.codex/config.toml. On Windows: C:\Users\YourName\.codex\config.toml. The folder may be missing: mkdir -p ~/.codex, or in PowerShell mkdir "$env:USERPROFILE\.codex" -Force

  3. Do not put this in a repo-local .codex/config.toml. Codex ignores model_provider, model_providers and openai_base_url there — the key will not attach.

  4. Paste the block from the card. Do not name the provider openai, ollama or lmstudio — those IDs are reserved and will not take a custom address.

  5. base_url is https://cheapai.lol/v1, with the /v1 tail and no trailing slash. Codex appends /responses itself.

  6. wire_api = "responses" is required. chat has been a hard startup error since February 2026; switching it to chat/completions will not help.

  7. Do not put the key in the file. Set the variable in the same window you launch Codex from. Mac/Linux: export CHEAPAI_API_KEY="sk-…". Windows PowerShell: $env:CHEAPAI_API_KEY="sk-…"

  8. A lone openai_base_url on the built-in openai provider still expects an OpenAI login. You need a separate [model_providers.cheapai] table and model_provider = "cheapai".

  9. Run: codex. Type “hi”. In the plugin pick claude-opus-4.8 — the name from the card, not gpt-5-codex from OpenAI’s site.

Check

codex replies to “hi” with model claude-opus-4.8. The plugin uses the same ~/.codex/config.toml.

If it didn’t start

all apps

tg support / collab

stall

Packs and prices

PlayerOK or crypto in Telegram. Tokens never expire.

tokens

They don’t expire. PlayerOK or crypto in TG.

2M 2M raw tokens $1.35 PlayerOK crypto · TG
5M 5M raw tokens $1.35 PlayerOK crypto · TG
15M 15M raw tokens $1.35 PlayerOK crypto · TG
35M 35M raw tokens $1.93 PlayerOK crypto · TG
60M 60M raw tokens $3.13 PlayerOK crypto · TG
100M 100M raw tokens $4.94 PlayerOK crypto · TG
200M 200M raw tokens $9.00 PlayerOK crypto · TG
300M 300M raw tokens $12.86 PlayerOK crypto · TG
400M 400M raw tokens $16.23 PlayerOK crypto · TG
500M 500M raw tokens $19.64 PlayerOK crypto · TG
600M 600M raw tokens $22.55 PlayerOK crypto · TG
700M 700M raw tokens $25.72 PlayerOK crypto · TG
800M 800M raw tokens $28.43 PlayerOK crypto · TG
900M 900M raw tokens $31.14 PlayerOK crypto · TG
1000M 1000M raw tokens $33.40 PlayerOK crypto · TG

unlimited

While the clock is running you can spend as much as you want on any model on the key. No token cap: Opus, GPT, Gemini, whoever. The timer starts on the first request, not at purchase.

  • no token cap
  • any model on the key
  • clock starts on first request
∞ 1 hour $1.35 PlayerOK crypto · TG
∞ 3 hours $2.67 PlayerOK crypto · TG
∞ 6 hours $4.48 PlayerOK crypto · TG
∞ 24 hours $12.41 PlayerOK crypto · TG
∞ 3 days $29.13 PlayerOK crypto · TG
∞ 7 days $56.24 PlayerOK crypto · TG
∞ 30 days $135.31 PlayerOK crypto · TG