OpenAI Codex CLI
OpenAI Codex CLI uses the Responses API (/v1/responses). Nexotao supports
Codex through gpt-5.6-terra and gpt-5.6-luna; the 32 Bedrock models continue
to use /v1/messages or /v1/chat/completions.
Store your API key in an environment variable:
export NEXOTAO_API_KEY="sk-nexo-..."Then add the Nexotao provider to ~/.codex/config.toml:
model = "gpt-5.6-terra"
model_provider = "nexotao"
model_reasoning_effort = "none"
[model_providers.nexotao]
name = "Nexotao"
base_url = "https://api.nexotao.com/v1"
env_key = "NEXOTAO_API_KEY"
wire_api = "responses"Use gpt-5.6-terra for stronger coding quality, or switch to gpt-5.6-luna
for fast, lightweight work. Do not paste the API key directly into the config;
env_key makes Codex read it from the environment.