~/.codex/config.toml and using your NagaAI API key.
Setup
Install Codex CLI
Follow the official installation instructions: openai/codex
Create a NagaAI API key
Create an API key in the NagaAI 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:gpt-5.3-codex is one example starter model. You can also 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 - Example starter model:
gpt-5.3-codex(browse tools-capable models) - 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.”