Codex with your own API key
OpenAI’s Codex can use a third party provider defined in config.toml. With a KLINCH key it runs without a ChatGPT plan, and the model field takes Claude or DeepSeek as well as GPT.
In short. GPT-6.2 Sol: $0.26 / $1 per 1M tokens, input / output, official $2 / $10; GPT-6.2 Astra: $0.8 / $4 per 1M tokens, input / output, official $8 / $40. To connect: base URL https://api.klinch.cloud/v1 and a kl_live_… key, delivered in the FunPay chat right after payment. Pay as you go, no subscription. Prices as of 25.11.2026.
The ~/.codex/config.toml file
Create the file in the .codex folder of your home directory (Windows: C:\Users\name\.codex\config.toml). Make sure it is not saved as config.toml.txt.
# ~/.codex/config.toml
model = "gpt-6.1-sol"
model_provider = "klinch"
[model_providers.klinch]
name = "Klinch"
base_url = "https://api.klinch.cloud/v1"
env_key = "KLINCH_API_KEY"
wire_api = "responses"Key and start (macOS and Linux)
export KLINCH_API_KEY="kl_live_…"
codexWindows (PowerShell)
To keep the key for good, run setx KLINCH_API_KEY "kl_live_…" once and open a new terminal window.
$env:KLINCH_API_KEY="kl_live_…"
codexCommon errors
model_provider = "klinch" line. Check the path and the file name./v1.Prices per 1M tokens
| Model | Official | KLINCH |
|---|---|---|
| GPT-6.2 Sol | $2 / $10 | $0.26 / $1 |
| GPT-6.2 Astra | $8 / $40 | $0.8 / $4 |
| Claude Fable 5.2 | $8 / $40 | $0.8 / $4 |
| Claude Opus 5.5 | $4 / $20 | $0.4 / $2 |
Price per 1 million tokens: input / output. You pay only for what you use, no subscription. Token packs are sold on FunPay. All models and prices
How to start
- 1Step 1Install Codex:
npm install -g @openai/codex. - 2Step 2Create
~/.codex/config.tomlwith the klinch provider as above. - 3Step 3Put the key in KLINCH_API_KEY and run
codexin your project folder.
FAQ
Do I need ChatGPT Plus for Codex?
No. With a provider in config.toml Codex runs on an API key and you pay only for tokens.
Does it work in the Codex VS Code extension and the Codex app?
Yes, they read the same config.toml. The cabinet’s Connect section has a guide for each.
Can Codex use Claude models?
Yes, KLINCH accepts any listed model over the Responses API. Set, for example, model = "claude-sonnet-5-5".
Are my requests used to train models?
No. We do not train models on your requests. Texts are kept for no more than 30 days and only the account owner can see them.
One key and one balance for Claude, GPT, Gemini and more
Claude, GPT, Gemini, DeepSeek and Grok at a tenth of the official price. No subscription, pay as you go.