VNAI Pro
Codex

Manual setup

Edit config.toml and auth.json yourself if you'd rather not use the script

The script is recommended

The one-command install performs every step below correctly and backs up your old config automatically. Only go manual if you really need to.

Install the Codex CLI

Terminal
npm install -g @openai/codex

Edit config.toml

Open (or create) the config file for your OS:

Path: ~/.codex/config.toml

Replace the entire file content with:

config.toml
model_provider = "OpenAI"
model = "gpt-5.6-sol"
review_model = "gpt-5.6-sol"
model_reasoning_effort = "xhigh"
disable_response_storage = true
network_access = "enabled"
windows_wsl_setup_acknowledged = true
model_context_window = 1000000
model_auto_compact_token_limit = 900000

[model_providers.OpenAI]
name = "OpenAI"
base_url = "https://api.vnaipro.app/v1"
wire_api = "responses"
requires_openai_auth = true

Create auth.json

In the same directory as config.toml, create auth.json:

auth.json
{
  "OPENAI_API_KEY": "sk-your-key-here"
}

Replace sk-your-key-here with your real API key.

auth.json = codex login

Writing the key into auth.json has exactly the same effect as running codex login and pasting the key — and it is shared by the CLI, the VS Code extension and the Codex app.

On macOS/Linux, restrict read access to the file holding your key:

Terminal
chmod 600 ~/.codex/auth.json

Verify

Open a new terminal:

Terminal
codex --version
codex

On this page