AONISDocs

Integrations

Codex

The Codex CLI has been manually tested through the Aonis gateway.

Verified

Install Codex

Use a current version of the Codex CLI.

shell · Install
npm install -g @openai/codex

Configuration

Create the config file at ~/.codex/config.toml on Linux/macOS or C:\Users\YourUserName\.codex\config.toml on Windows.

toml · config.toml
model = "gpt-5.6"
model_provider = "aonis"

[model_providers.aonis]
name = "Aonis"
base_url = "https://api.aonis.space/v1"
wire_api = "responses"
env_key = "AONIS_API_KEY"

This configuration uses the Responses API through wire_api = "responses". See the Responses API reference for the validated endpoint.

Compatibility aliases

These Codex aliases map to the same model and pricing as their corresponding public Aonis model.

  • codex-5.6-sol → GPT-5.6 Sol
  • codex-5.6-sol-ultra → GPT-5.6 Sol Ultra
  • codex-5.6-terra → GPT-5.6 Terra
  • codex-5.6-luna → GPT-5.6 Luna

Environment and run

shell · Linux / macOS
export AONIS_API_KEY="YOUR_AONIS_API_KEY"

powershell · Windows PowerShell
$env:AONIS_API_KEY="YOUR_AONIS_API_KEY"

shell · Run
codex

Generate this configuration →