Codex CLI
此内容尚不支持你的语言。
Environment variables
Section titled “Environment variables”export OPENAI_BASE_URL="https://api.earbowe.com/v1"export OPENAI_API_KEY="sk-YOUR-KEY"China direct:
export OPENAI_BASE_URL="https://api.3861343.xyz/v1"export OPENAI_API_KEY="sk-YOUR-KEY"Verify
Section titled “Verify”curl -s "$OPENAI_BASE_URL/models" \ -H "Authorization: Bearer $OPENAI_API_KEY" | head -c 400codexCodex reads the environment variables automatically.
More detail
Section titled “More detail”See the blog guide: Configure Codex CLI with Earbowe API.