Install Codex CLI
Codex CLI is OpenAI’s AI coding command-line tool for AI-assisted coding directly in your terminal.
If you already have a Codex local client installed and the codex command works in your terminal, you can skip installation and continue to provider configuration.
Prerequisites
- HaoAI API Key (sign up to get one)
- Node.js (v18+ recommended)
Install
npm install -g @openai/codex
Verify Installation
codex --version
# A version number output indicates successful installation
If you see command not found, make sure Node.js is installed (node --version), then re-run the install command.
Next Steps
- Configure Model Provider — Manage the HaoAI API key and request URL through CC Switch