Skip to content

Codex ​

Support: pay-as-you-go Xiaoku APIs are supported.

Install the CLI ​

Node.js 18+ is required.

bash
npm install -g @codex-ai/codex-cli

Check: codex --version

Configure ​

bash
codex config set provider openai
codex config set api-key XIAOKU_API_KEY
codex config set base-url https://api-ai.xiaoku.ai/v1
codex config set model deepseek-v4-pro

Option 2 (interactive) ​

Run codex auth, choose the OpenAI provider, and enter the settings when prompted.

Use ​

Run codex to start, or codex --tui for TUI mode.

VS Code extension ​

Search the VS Code marketplace for the Codex AI extension and install it. Add this to settings.json:

json
{
  "codex.apiKey": "XIAOKU_API_KEY",
  "codex.baseUrl": "https://api-ai.xiaoku.ai/v1",
  "codex.model": "deepseek-v4-pro"
}