Codex Setup
Codex can use Akai API through a custom provider. Confirm that the selected model supports the Responses protocol.
Set the key
bash
export OPENAI_API_KEY="YOUR_API_KEY"Configure Codex
Edit ~/.codex/config.toml:
toml
model = "MODEL_ID_FROM_CONSOLE"
model_provider = "akai"
model_reasoning_effort = "high"
disable_response_storage = true
[model_providers.akai]
name = "Akai API"
base_url = "https://ai.akaii.top/v1"
wire_api = "responses"
requires_openai_auth = trueIf startup fails, verify the key with /v1/models, confirm the exact model ID, and remove duplicate provider definitions.