Skip to content

Codex CLI Specifics ​

Incorrect Base URL ​

When Codex uses an OpenAI-compatible API, base_url should end with /v1:

toml
base_url = "https://api.mioufun.top/v1"

auth.json Does Not Take Effect ​

Make sure the file content is valid JSON:

json
{
  "OPENAI_API_KEY": "sk-***"
}

Restart Codex after editing.

Model Does Not Support Responses ​

If the platform or model does not support the Responses API, try another model or ask whether the platform provides a chat completions-compatible configuration.