Generate a ready-to-paste config in 5 seconds
Pick your client, OS, and model — then click below to sign up and auto-fill this exact snippet with a scoped Starter API Key.
# %USERPROFILE%\.codex\config.toml
# Recommended key cap: $2 (2,000 credits)
model = "gpt-6.2-sol"
model_provider = "modelseed"
[model_providers.modelseed]
name = "Modelseed"
base_url = "https://api.modelseed.dev/v1"
wire_api = "responses"
env_key = "MODELSEED_API_KEY"
requires_openai_auth = false
# PowerShell:
$env:MODELSEED_API_KEY = "sk-YOUR_MODELSEED_KEY"
codexWhy Codex CLI requires wire_api = "responses"
Modern OpenAI Codex CLI and Codex Desktop rely on the OpenAI Responses API (/v1/responses) rather than legacy /v1/chat/completions. Pointing Codex at a gateway that only implements Chat Completions leads to HTTP 404 or broken tool-call streams.
Modelseed supports native Responses API routes across GPT-6.2 Sol, GPT-6.2 Astra, GPT-6.1 Sol, GPT-6 Sol, and GPT-6 Astra with transparent pay-as-you-go USD token billing and no ChatGPT Plus/Pro subscription lock-in.
| Model ID | Protocol | Input (No Cache) | Output | Cache Read |
|---|---|---|---|---|
| gpt-6.2-sol | Responses API | $0.064 | $0.321 | $0.0032 |
| gpt-6.2-astra | Responses API | $0.257 | $1.283 | $0.0128 |
| gpt-6.1-terra | Chat Completions | $0.032 | $0.160 | $0.0015 |
Ready-to-paste ~/.codex/config.toml configuration
Add a custom model_provider block in ~/.codex/config.toml (on Windows: %USERPROFILE%\.codex\config.toml) and store your Modelseed API key in the MODELSEED_API_KEY environment variable.
model_provider = "modelseed"
model = "gpt-6.2-sol"
[model_providers.modelseed]
name = "Modelseed"
base_url = "https://api.modelseed.dev/v1"
env_key = "MODELSEED_API_KEY"
wire_api = "responses"Verify your Codex provider before launching large refactors
Run a tiny one-shot prompt first and check that tokens appear cleanly in your Modelseed Usage Logs.
- Export MODELSEED_API_KEY in your terminal profile (never hardcode the key inside a committed repository).
- Run codex "explain the entry point of this repo in 3 sentences" to verify /v1/responses streaming.
- Switch between gpt-6.2-sol (fast, low cost) and gpt-6.2-astra (deeper reasoning) via --model whenever task complexity changes.
Frequently asked questions
Why did Codex return 404 when I tested another base_url?
Most 404s happen because either wire_api = "responses" is missing, the base_url includes an extra /responses suffix, or the gateway does not implement /v1/responses.
Can I use DeepSeek inside Codex CLI through Modelseed?
Check our dedicated DeepSeek in Codex CLI & Claude Code guide to confirm protocol alignment (Responses vs. Chat Completions) before pointing Codex at a non-GPT model.
Do I need a ChatGPT subscription to run Codex CLI via Modelseed?
No. Codex authenticates purely with your Modelseed API key and spends pay-as-you-go USD credits (starting with your $1–$2 free welcome bonus).
Is there an automatic installer for Windows?
Yes — Modelseed Installer configures Codex CLI and Desktop on Windows automatically with a dedicated device key.