# Install Codex CLI Source: https://ofox.ai/docs/integrations/codex/installation Codex CLI is OpenAI's AI coding command-line tool for AI-assisted coding directly in your terminal. > **Set up faster with Ofox Desktop.** On an Apple silicon Mac, Desktop can detect this tool, back up its current configuration, and apply an Ofox API key and compatible model. [Open Ofox Desktop](https://ofox.ai/desktop). ## Prerequisites - [OfoxAI API Key](https://app.ofox.ai) (sign up to get one) - [Node.js](https://nodejs.org) (v18+ recommended) ## Install ```bash npm install -g @openai/codex ``` ![Install Codex CLI](https://ofox.ai/screenshots/codex/01-install.png) ## Verify Installation ```bash codex --version # A version number output indicates successful installation ``` ![Verify installation](https://ofox.ai/screenshots/codex/02-verify-env.png) 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](https://ofox.ai/docs/integrations/codex/model-provider) — Connect OfoxAI via CC Switch