Client Setup

Codex

Configure Codex or another OpenAI-compatible CLI

Before you start

  1. Complete the environment check
  2. Select codex-Pro or codex-Plus (see Choosing a GPT / Codex group)
  3. Copy an API token

Values to enter

FieldValue
Base URLhttps://api.sunai.lol/v1
API keysk-your-token
ModelAn exact name supported by the selected group

The /v1 suffix is required. Omitting it often makes an OpenAI-compatible client fail.

Verify with curl first

curl https://api.sunai.lol/v1/models \
  -H "Authorization: Bearer sk-your-token"

After the model list is returned, open Codex.

Common issues

  • 401: the token is incomplete or disabled
  • Model not found: the group or model name is wrong

More help: FAQ

On this page