Codex is OpenAI's open-source terminal coding agent, signed in with a ChatGPT account or an API key. HagiCode is a desktop workbench that runs Codex as its executor and adds parallel sessions, proposals and AI commits around it.
- How do I install Codex?
- Run
npm install -g @openai/codex or brew install --cask codex. The standalone installer for macOS and Linux is curl -fsSL https://chatgpt.com/codex/install.sh | sh, and Windows has a PowerShell installer in the repository README at github.com/openai/codex. Then run codex and sign in. - Is Codex free?
- The CLI itself is open source under Apache-2.0, but use needs a ChatGPT plan or an API key. As of October 2026 OpenAI lists Codex in ChatGPT Free, Go ($8), Plus ($20) and higher plans; API-key use is billed at API rates.
- Can I use Codex with HagiCode?
- Yes. Install and sign in to Codex, then choose it as the Agent CLI in HagiCode. Your ChatGPT sign-in or API key and its billing stay with OpenAI.
- Does HagiCode replace Codex?
- No. HagiCode runs Codex as its executor and adds sessions, proposals, commits and multi-repo tools around it. You can still run
codex on the same repositories. - Does Codex work on Windows?
- OpenAI provides a PowerShell installer for Windows in the Codex README. Check the Codex documentation for current Windows notes before relying on it.
- Codex vs HagiCode: which should I pick?
- Pick Codex alone for terminal, solo or CI work on your ChatGPT plan. Add HagiCode when you want parallel sessions, OpenSpec proposals or multi-repo workspaces on top of Codex.