{
 "schema_version": 1,
 "generated": "2026-10-29",
 "id": "openai-codex--install-codex-on-windows-with-powershell",
 "repo": "openai/codex",
 "repo_url": "https://github.com/openai/codex",
 "repo_slug": "openai-codex",
 "title": "Install Codex CLI on Windows with one PowerShell line",
 "page_title": "How to install Codex CLI on Windows with one PowerShell line with Codex",
 "summary": "Use the official PowerShell installer to get Codex on a Windows machine and start it in a project.",
 "who": "A Windows developer who wants the same terminal coding agent their Mac teammates use.",
 "problem": "Most agent quickstarts assume macOS or Linux, which leaves Windows users guessing.",
 "outcome": "Codex installed on Windows from the official installer and running in your repo.",
 "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"
 ],
 "agent_prompt": "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.",
 "agents": [
  "codex"
 ],
 "difficulty": "Beginner",
 "time": "10 minutes",
 "basis": "readme",
 "caveat": "",
 "category": "Software and DevOps",
 "tags": [
  "Software and DevOps"
 ],
 "lang": "rust",
 "requirements": [
  "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"
 ],
 "risk": "none",
 "seen_in_the_wild": false,
 "mentioned_publicly": false,
 "risks": [
  {
   "tag": "remote-script",
   "notice": "The installer is fetched with irm and run with iex, which executes a remote script; read it first if that matters to you."
  }
 ],
 "best": false,
 "score": 0.9,
 "evidence": [],
 "url": "https://dedupedai.com/use-cases/openai-codex/install-codex-on-windows-with-powershell/",
 "md": "https://dedupedai.com/use-cases/openai-codex/install-codex-on-windows-with-powershell/index.md",
 "disclaimer": "Deduped lists open-source repositories that belong to other people. We do not own, maintain, audit, or vouch for any of them, and a repo appearing here is not an endorsement or a safety check. The use cases, steps, and prompts are written by AI and may be incomplete, outdated, or just wrong. Where a use case is marked \"Seen in the wild\", we link to public posts where someone described something similar, but we have not verified those posts and the use case itself is still our AI's own write-up. Use all of this at your own risk. Only run code, commands, or agents on systems and accounts you are authorized to use, and read the code and every command before you run it, especially anything that touches credentials, files, or the network. Nothing here is professional, security, legal, or financial advice. All trademarks and project names belong to their respective owners, and their use here does not imply affiliation. Content is provided as is, without warranties of any kind. Found a mistake, a safety problem, or something you want removed? Email hello@dedupedai.com and we will look at it promptly.",
 "api": "https://dedupedai.com/api/v1/usecases/openai-codex--install-codex-on-windows-with-powershell.json",
 "api_version": "v1"
}
