Codex integration

Your models.
Inside Codex.

Connect Codex Desktop or the Codex CLI to KitKart with one provider config and your existing API key.

Start setup About 2 minutes
config.tomlready
model = "gpt-5.6-sol"
model_provider = "kitkart"

[model_providers.kitkart]
base_url = "api.kitkart.pro/v1"
wire_api = "responses"
env_key = "KITKART_API_KEY"
THE SHORT VERSION

Set a key. Add a provider. Start Codex.

01

Provider config

Give Codex a home for KitKart.

Both Codex Desktop and the CLI read the same user-level file. Add this once, then use either surface.

~/.codex/config.tomlTOML
model = "gpt-5.6-sol"
model_provider = "kitkart"

[model_providers.kitkart]
name = "KitKart API"
base_url = "https://api.kitkart.pro/v1"
wire_api = "responses"
env_key = "KITKART_API_KEY"
↳

The model is an example. Choose any model currently listed on the usage dashboard.

02

Codex CLI

Start in your terminal.

Keep the key in your shell environment. Never paste it into config.toml or a project file.

macOS · Linux · WSL
TerminalShell
$ export KITKART_API_KEY="sk-your-kitkart-key"
$ codex

For a quick connection check:

$ codex exec "Reply with exactly: KitKart is connected"
03

Codex Desktop

Same config. A quieter workflow.

Open Codex Settings → Open config.toml, add the provider block, save, and restart the app.

macOS

Launch with your key

export KITKART_API_KEY="sk-your-kitkart-key"
              
Windows

Set a user variable

Add KITKART_API_KEY to Windows user environment variables, fully quit Codex, and reopen it.

04

Verify

Make one request.

Start a new Codex session and ask a simple question. Or check the endpoint directly:

TerminalShell
$ curl https://api.kitkart.pro/v1/models \
  -H "Authorization: Bearer $KITKART_API_KEY"
05

Troubleshooting

When something feels off.

Provider is unknown

Make sure model_provider = "kitkart" matches [model_providers.kitkart] exactly.

Authentication fails

Check that KITKART_API_KEY is available to the process running Codex. Restart Desktop after changing it.

Model is unavailable

Choose a model currently listed on the usage dashboard. Availability can change without a config update.