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

# Codex CLI

> 把 Codex CLI 配置为使用 OmniaKey 的 OpenAI 兼容 Responses 入口。

Codex 使用 OpenAI-compatible Responses 流量。把 OmniaKey 配成自定义 provider，然后在启动 Codex 的 shell 里设置 API key。

## 配置

在 `~/.codex/config.toml`：

```toml theme={null}
model = "gpt-5.5"
model_provider = "omniakey"

[model_providers.omniakey]
name = "OmniaKey"
wire_api = "responses"
env_key = "OMNIAKEY_API_KEY"
base_url = "https://api.omniakey.com/v1"
```

然后运行：

```bash theme={null}
export OMNIAKEY_API_KEY="your-omniakey-api-key"
codex
```

## 模型

推荐使用 `gpt-5.5`，或 [支持模型](https://docs.omniakey.com/zh/models.md) 中任何 OpenAI 兼容模型。


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.