Remote script. The installer is fetched with irm and run with iex, which executes a remote script; read it first if that matters to you.
Who it is forA Windows developer who wants the same terminal coding agent their Mac teammates use.
The problemMost agent quickstarts assume macOS or Linux, which leaves Windows users guessing.
The outcomeCodex installed on Windows from the official installer and running in your repo.
What you need first
- macOS, Linux or Windows
- A ChatGPT Plus, Pro, Business, Edu or Enterprise plan, or an OpenAI API key (extra setup)
- npm or Homebrew if you do not use the install script
Steps
- Open PowerShell and run
powershell -ExecutionPolicy ByPass -c "irm https://chatgpt.com/codex/install.ps1 | iex" - If your network blocks releases.openai.com, set
$env:CODEX_INSTALLER_USE_RELEASES_OPENAI_COM='false'first so the installer uses GitHub Releases - Open your project folder and run
codex - Sign in with ChatGPT, or follow the API key setup in the docs
Prompt for your agent
Install openai/codex on this Windows machine with the official PowerShell installer from the README, confirm `codex` starts in <project folder>, and tell me which sign-in option it offers.
Caveat.
Use this in your AI agent
Ask your agent
Using the Deduped MCP, get the setup steps for openai/codex and "Install Codex CLI on Windows with one PowerShell line"
Add Deduped to Claude Code once
claude mcp add --transport http deduped https://dedupedai.com/mcp
Every Monday: the 5 hottest repos and exactly how to use them. Free, one email a week, unsubscribe anytime.
Get them freeShare: X LinkedIn Hacker News Email Copy link
Third-party repos we don't own. AI-written use cases can be wrong. Disclaimer