~/.codex/config.toml and using your NagaAI API key.
Setup
Install Codex CLI
Follow the official installation instructions: https://github.com/openai/codex
Create a NagaAI API key
Create an API key in the dashboard: https://naga.ac/dashboard.
If you’re new to NagaAI, follow the Quickstart first.
Configure Codex CLI to use NagaAI
Open
~/.codex/config.toml and add a custom provider that points to NagaAI’s OpenAI-compatible API:We recommend
gpt-5.3-codex, but you can use any NagaAI model that supports tools. See models with tools support.Set your API key
Codex reads the API key from the environment variable named in
env_key.- Shell (macOS/Linux/WSL)
- Windows PowerShell
Notes
- Config file:
~/.codex/config.toml - Base URL:
https://api.naga.ac/v1 - API key env var:
NAGAAI_API_KEY - Recommended model:
gpt-5.3-codex(you can also use any NagaAI model with tools support: https://naga.ac/models?parameters=tools) - If you use Codex project trust levels, configure them in the same
config.tomlfile
Try it
- “Summarize this repository: structure, build system, and entry points.”
- “Find where feature X is implemented and list the relevant files.”
- “Run tests and fix the first failing test.”
- “Refactor module Y and update all call sites.”