Codex CLI
Codex CLI works with the platform key through the OpenAI-compatible endpoint.
One-click setup with our desktop client
Download the XycAi client to install and configure everything automatically — no manual steps needed.
1. Install
npm install -g @openai/codex
2. Configure
export OPENAI_BASE_URL="https://apicdn.xyc.ai/v1"
export OPENAI_API_KEY="your-api-key"
3. Use
codex
Tips
- The base_url must end with
/v1. - Make sure the key's group includes the target model.