> ## Documentation Index
> Fetch the complete documentation index at: https://bianxieai.mintlify.site/llms.txt
> Use this file to discover all available pages before exploring further.

# Codex

> Add a custom Responses provider to Codex CLI

## Configure

Add this to `~/.codex/config.toml`:

```toml theme={null}
model = "your-model"
model_provider = "bianxieai"

[model_providers.bianxieai]
name = "Bianxie AI"
base_url = "https://api.bianxie.ai/v1"
env_key = "BIANXIE_API_KEY"
wire_api = "responses"
```

Set `BIANXIE_API_KEY=API_KEY`, then start Codex. Use `/status` to verify the provider and model before asking it to inspect a directory without changes.

If the key is missing, ensure `env_key` exactly matches the environment variable. For `404`, retain `/v1`. For request-shape errors, keep `wire_api = "responses"`. The model must support Responses tools.
