# Codex CLI · Quanteex

## Codex CLI

Use Quanteex Responses from the command line.

### Prepare your API key

Paste your Quanteex project key in place of YOUR_QUANTEEX_KEY. Use the app’s private key field or your personal configuration file. Do not put a real key in a shared project.

### Connection settings

Open this personal config file and merge the settings below with your existing entries. Replace the placeholder, save and restart the client. The default model is only the initial selection.

~/.codex/config.toml (Windows: %USERPROFILE%\.codex\config.toml)

```
model = "gpt-6-astra"
model_provider = "quanteex"

[model_providers.quanteex]
name = "Quanteex"
base_url = "https://api.quanteex.com/v1"
experimental_bearer_token = "YOUR_QUANTEEX_KEY"
wire_api = "responses"
http_headers = { "X-Quanteex-Output-Policy" = "provider_maximum" }
```

### Switch models

Start a new session with either command. To use another Responses model, put its exact ID from the Quanteex dashboard after --model.

```
codex --model gpt-6-astra
codex --model gpt-6.2-sol
```

### Check compatibility

Use a model that supports the selected API and the features your client sends. A successful connection setup does not enable unsupported tools, images or reasoning settings.

### Troubleshooting

For 401, check the key. For 402, check the available project balance and budget. For 400, check the model, API format and extra parameters. Start with the Quickstart request to separate an API problem from a client configuration problem.

### Client documentation

The linked client documentation covers installation and version-specific settings.

Make your first request with Quanteex.

Retry only when the outcome is safe to repeat.

