DEDUPED Hot AI repos. Real use cases. What people build. Get the Monday 5

How to install Codex CLI on Windows with one PowerShell line with Codex

Use the official PowerShell installer to get Codex on a Windows machine and start it in a project.

Short answer: Open PowerShell and run powershell -ExecutionPolicy ByPass -c "irm https://chatgpt.com/codex/install.ps1 | iex"; then 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. All steps.

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

  1. Open PowerShell and run powershell -ExecutionPolicy ByPass -c "irm https://chatgpt.com/codex/install.ps1 | iex"
  2. If your network blocks releases.openai.com, set $env:CODEX_INSTALLER_USE_RELEASES_OPENAI_COM='false' first so the installer uses GitHub Releases
  3. Open your project folder and run codex
  4. 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

Cursor, ChatGPT, others

Share: X LinkedIn Hacker News Email Copy link

Third-party repos we don't own. AI-written use cases can be wrong. Disclaimer