Codex CLI works with the platform key through the OpenAI-compatible endpoint.
npm install -g @openai/codex
export OPENAI_BASE_URL="https://cn.chatapi.app/v1" export OPENAI_API_KEY="your-api-key"
codex
/v1