Client Setup
Codex
Configure Codex or another OpenAI-compatible CLI
Before you start
- Complete the environment check
- Select
codex-Proorcodex-Plus(see Choosing a GPT / Codex group) - Copy an API token
Values to enter
| Field | Value |
|---|---|
| Base URL | https://api.sunai.lol/v1 |
| API key | sk-your-token |
| Model | An 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