Set up Codex
Built into the ChatGPT desktop app. This page walks you through it click by click.
Already use a terminal? Quick install
curl -fsSL https://chatgpt.com/codex/install.sh | shpowershell -ExecutionPolicy ByPass -c "irm https://chatgpt.com/codex/install.ps1 | iex"cd my-first-build && codexChoose Sign in with ChatGPT on first run, or run codex login.
The CLI needs ChatGPT Plus or higher, or an OpenAI API key paid per use. Also available via npm install -g @openai/codex.
What it costs and what you need
- Suits you if
- You want to start for $0, or you already pay for ChatGPT Plus.
- Cheapest way in
- $0 in the ChatGPT desktop app (still rolling out)
- Free plan
- Yes. Every ChatGPT plan includes Codex. On Free and Go it’s the desktop app only. The terminal and editors need Plus ($20/month) or an OpenAI API key.
- Usage limits
- Plus: limits reset every 5 hours and vary by model and task. Weekly limits may also apply.
- Works on
- Mac (macOS 14+) and Windows. Linux is in preview.
Updated
Make a folder for your product
Your product lives in a folder on your computer. Codex works on the files inside it.
- Mac: open Finder, go to Documents, right-click an empty space and choose New Folder. Name it my-first-build.
- Windows: open File Explorer, go to Documents, right-click an empty space and choose New → Folder. Name it my-first-build.
Install Codex and open your folder
- Download the ChatGPT app and install it like any other app.
- Open the ChatGPT app and sign in with your ChatGPT account. A free account works.
- Open the ChatGPT menu at the top and choose Codex.
- Choose to open a folder and pick your my-first-build folder, so Codex can work inside it.
- Click New chat to start a conversation.
Apps update often, so your screen may look a little different. Look for the same words. Still stuck? Follow Codex’s official guide.
Say hello
Check it works. Copy this message, paste it into the chat box, and press Enter.
Your promptHi! I’m new to building with AI. In two or three short sentences, tell me what you can help me do in this folder. Please don’t create or change any files yet.
What you should see: a short, friendly reply about what it can do. No files should change.
Never paste passwords, bank details or secret keys into the chat.
You’re ready for your first build.
Start by planning your idea. Your AI tool asks you questions and writes a short plan you’ll build from.
Plan your ideaTo learn more about it, read how to use Codex. Not sure Codex is right for you? Compare all three.