Codex CLI & Desktop Custom Base URL Setup (config.toml)

Configure OpenAI Codex CLI and Desktop with a custom model_provider, Responses API base_url, and Modelseed API key — manually or via Modelseed Installer.

Modelseed ·
INTERACTIVE CONFIG WIZARD

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"
codex

Enable the built-in Russian interface in Codex on Windows

Quick setup: Modelseed Installer

Install official Codex, then Modelseed Installer for Windows. Authorize the device through your browser, select a compatible model and launch Codex with the Modelseed shortcut. The installer creates a separate device key and connection configuration.

Download installer & instructions

Manual provider setup

For GPT, check that the catalog lists Responses for your model and enter its exact ID in the configuration. GPT models and protocols

Back up your user-level ~/.codex/config.toml and merge these settings. On Windows, use the .codex folder in your user profile. Put top-level settings before TOML tables. Provider settings belong in user-level, rather than project-level, configuration.

model = "MODEL_ID"
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

Replace MODEL_ID with an available text model that supports Responses API and agent features. Chat Completions alone does not establish compatibility. The key comes from MODELSEED_API_KEY rather than ChatGPT authentication.

Provide the key and launch

Windows / PowerShell
$env:MODELSEED_API_KEY = [System.Net.NetworkCredential]::new('', (Read-Host 'Modelseed API key' -AsSecureString)).Password
codex
macOS / zsh · bash
printf 'Modelseed API key: '
read -r -s MODELSEED_API_KEY
printf '\n'
export MODELSEED_API_KEY
codex

The variable applies to this terminal session; launch Codex here. If connection fails, check the ID, key permissions and /v1/responses support. A protocol error cannot be fixed by renaming the model alone.

Official Codex provider documentation

BUILD WITH MODELSEED

From an idea to your first request.

One key and a familiar API. New verified accounts receive a random $1–$2 welcome bonus (1,000–2,000 credits) to test requests before topping up.

Get API key + bonus