Beginner's Guide · AI CodingFree · Miss AI

OpenAI
Codex 101

Your plain-English guide to OpenAI Codex. No coding background needed. Learn what it is, how to download and set it up, how to use projects, and how to build real things from scratch.

Keira Nesdale · Miss AI

Beginner Friendly No coding required Desktop · CLI · Cloud Codex vs Claude Code
↓ Download PDF
What is it

OpenAI Codex is
an AI coding agent.

It reads, writes, and runs code on your behalf. Think of it as a brilliant assistant who can build apps, fix bugs, automate tasks, and manage your files — all from plain-English instructions.

You do not need to know how to code. You describe what you want, and Codex figures out the how. It runs on OpenAI's GPT 5.4 model and connects to your computer, your GitHub account, and external tools like Slack and Figma.

Not a chat window. It is a full coding environment with a sidebar, built-in terminal, git panel, and code review.
Not just for developers. Non-technical founders, creators, and small business owners use it to build tools, automate workflows, and ship products.
Not the old Codex API. The original API (2021) was shut down. This is a completely new product launched April 2025, now with around 4 million weekly active users.

Official: openai.com/codex · developers.openai.com/codex

Comparison

Codex vs
Claude Code

Both are AI coding agents but they take different approaches. Here is the honest comparison:

FeatureOpenAI CodexClaude Code
Made byOpenAIAnthropic
Best forBackground tasks, visual work, git-heavy workflows, parallel codingComplex reasoning, large codebases, architecture planning
InterfaceVisual IDE app with sidebar, diff panel, image previewsTerminal-first. Desktop app also available.
ModelsGPT 5.4, Mini, Spark (Max plan only)Haiku, Sonnet, Opus
Git built-inYes. Commit, PR, diff all inside the appRequires separate tools or VS Code
Parallel workYes. Native worktrees and cloud tasksYes. Multiple terminal instances
Config fileAGENTS.mdCLAUDE.md
Non-tech friendlyYes. Buttons, previews, visual UIMore technical. Better for experienced users.

Using Both Together

The most effective approach is not to pick one tool. They are genuinely complementary, and knowing when to hand off between them is what separates a good AI workflow from a great one.

Use Codex when
You want a visual interface with buttons, previews, and inline diffs
You are running background or cloud tasks while you do other work
You need parallel agents working across multiple branches simultaneously
Git is central: commits, pull requests, CI fixes
You want to avoid the terminal entirely
Use Claude Code when
You have a complex reasoning problem across a large codebase
You need deep architecture planning across many files at once
You want the highest quality reasoning on a difficult bug or refactor
The two-agent review loop: Claude Code generates the implementation plan and reasoning. Codex takes that plan and executes it, managing files, tests, and deployment. Claude Code does the final review pass for quality.
Full Workflow

From Idea
to Live

How a complete build goes from first idea to deployed product using both tools.

CodexStageClaude Code
Write prompt in plain English. Describe what you want to build.IDEAStart a new Claude Code session. Describe architecture goals.
Hit Shift+Tab for Plan Mode. Codex maps files and approach.PLANAsk Claude to reason through architecture and edge cases.
Approve the plan. Codex writes files and runs tests.BUILDClaude executes multi-file changes with full context.
Open Code Review panel. Click lines, request changes.REVIEWReview output in terminal. Ask Claude to adjust inline.
Codex runs tests automatically. Use gh-fix-ci skill for CI.TESTClaude reasons through failures. Better on complex logic bugs.
Use Vercel plugin or Codex Cloud to deploy from app.SHIPClaude handles deployment scripts and config files.
Setup Options

4 Ways
to Use Codex

01 Desktop App

An Electron app that looks like a coding environment. Best starting point for non-technical users. Visual UI, image previews, built-in git, and inline code review.

openai.com/codex
02 VS Code Extension

Install Codex as a VS Code extension if you already use VS Code. It runs directly inside your existing setup.

03 CLI

Install via terminal: npm i -g @openai/codex. For users comfortable with the command line.

Full CLI docs
04 Codex Cloud

Run tasks on OpenAI's servers. Start a job, close your laptop, come back to a finished result. Requires GitHub connected.

Downloading the Desktop App

Step 1
Go to openai.com/codex

Find the download button. Choose Mac or Windows. The file is around 150MB. The install takes about one minute with no setup decisions to make.

Step 2
Sign in with your ChatGPT account

Codex runs on your existing ChatGPT subscription: Plus ($20/mo), Pro ($100/mo), Business, or Enterprise. Free accounts have a limited trial window. Use the same email as ChatGPT.

Step 3
Grant file permissions

Codex asks for read and write access. You can allow once or always. Codex only works inside the project folder you choose — it does not read other files on your computer.

Step 4
Optional: bring your ChatGPT history

In ChatGPT, go to Settings > Data Controls > Export Data. OpenAI emails you a zip with every past conversation. Paste a short summary of the most relevant ones into your first Codex thread as context. Three sentences about your business and goals is enough.

Core Concept

Projects
and Threads

This is the most important concept to understand before you start building. Get this right and everything else clicks.

A project in Codex maps directly to a folder on your computer. Everything Codex creates, edits, or generates lives inside that folder as real local files you can open in any app. To add a project, click + in the sidebar or hit Cmd+O.

One project per thing. Here is the rule:

One project per clientKeep each client's work isolated so the agent only has relevant context
One project per productYour website is one project. Your app is another.
One project per automationA recurring email workflow lives in its own project
One project per toolA proposal generator, a content calendar — each gets its own folder

Threads

Inside each project you create threads. A thread is one conversation about one specific task. Hit Ctrl+N to create a new thread.

One thread per task. 'Build the homepage' is one thread. 'Fix the contact form' is another.
Threads persist when you close the app. Your context and work history are never lost.
If a thread gets too long, type /compact to summarise it and keep the context clean.
Type /fork to explore a different direction without touching the original thread.
Getting Started

Your First Session:
Level 0 to Running
in 10 Minutes

Step 1
Create your first project folder

On your desktop or Documents, create a new folder. Name it clearly: 'my-website', 'client-smith', or 'content-tools'. In Codex hit Cmd+O and select that folder. It appears in your sidebar.

Step 2
Create a new thread

With your project selected, hit Ctrl+N. A blank thread opens. This is your workspace for one task.

Step 3
Enter Plan Mode first

Hit Shift+Tab. You will see Plan Mode activate at the top. Always do this before asking Codex to build anything. It makes Codex outline the approach before touching any files. Skipping this is the number one beginner mistake.

Step 4
Write your prompt using the 4 pillars

Goal, context, constraints, done when. Example: "Goal: build a single-page website for my photography business. Context: brand colour is dark green, logo is in this folder. Constraints: plain HTML only. Done when the page loads with a working contact form."

Step 5
Review and approve the plan

Codex produces a written plan. Read it. If anything looks wrong, say so before approving. Once you approve, it starts building.

Step 6
Review changes

When finished, hit Cmd+Option+B to open the code review panel. You see exactly what changed. Click any line and ask for adjustments in plain English.

The 4 Pillars of a Good Prompt

PillarWhat to includeExample
GoalWhat are you trying to achieve?Build a landing page for my photography business with a contact form
ContextWhat files, folders, or background info?Brand colours are red and black. Logo is in the /assets folder
ConstraintsWhat rules or limits should Codex follow?Use plain HTML and CSS only. No frameworks
Done whenHow will Codex know it succeeded?Done when the page loads without errors and the form submits
Pricing

What Does
It Cost?

Codex is included with your existing ChatGPT subscription. There is no separate purchase.

PlanMonthly CostWhat You GetBest For
Free$0Limited trial accessTesting it out
Plus$20/moStandard usage window, all core featuresIndividuals and freelancers
Pro$100/moHigher usage limits, priority accessPower users and small teams
Business / EnterpriseCustomTeam management, SSO, data privacy controlsCompanies and organisations
Usage limits: Codex uses a dual-window system. You have a 5-hour window and a weekly window, both running at the same time. Every request uses from both. Check your usage at chatgpt.com/codex/settings/usage or type /status inside Codex.

Token-saving tip: Use the Mini model for simple tasks like summarising or formatting. Save GPT 5.4 for the complex builds. This alone can extend your session budget significantly.
Capabilities

What Codex Can
and Cannot Do

Codex CAN do this wellCodex CANNOT do this
Build websites, apps, tools, and dashboards from a descriptionRead your mind. Be specific about what you want.
Read, summarise, rewrite, and analyse documents and data filesAccess the internet in real time unless you connect a web search MCP
Write, run, and fix code across many programming languagesGuarantee bug-free code. Always review what it builds.
Connect to external services like Gmail, Slack, and Google Calendar via MCPWork on files outside your project folder unless you add them
Schedule and automate recurring tasks and workflowsDeploy to a live server without a plugin like Vercel (you need to set that up first)
Draft emails, proposals, content, and reports from templatesRemember things between sessions unless you use AGENTS.md or provide context
Manage your GitHub: commit, push, create pull requests, fix CIReplace your own judgment. Review every significant piece of output before publishing.
Connecting to the World

MCP: How Codex
Connects to Other Apps

MCP stands for Model Context Protocol. In plain English: it is how you give Codex the ability to talk to other apps and services.

Without MCP, Codex only knows about the files in your project folder. With MCP, Codex can read your emails, check your calendar, post to Slack, search the web, talk to your database, and much more. Think of MCP connectors like apps on a phone — install the ones you need and Codex gains those powers.

ConnectorWhat Codex can do with it
GmailRead emails, draft replies, categorise inbox, send messages
Google CalendarRead today's events, create new events, reschedule meetings
SlackSend messages, read channel history, post summaries
GitHubCommit code, open pull requests, read issues, fix CI failures
FigmaRead design files and translate them into working code
Notion / Google DriveRead documents, create pages, update databases
Web SearchSearch the internet for real-time information during a task

To install: open Codex, click the puzzle icon in the sidebar to open the MCP marketplace. Find the connector you want and click Install.

Permanent Memory

AGENTS.md:
Codex's Memory

AGENTS.md is a simple text file that lives in your project folder. Every time Codex starts a new thread in that project, it reads this file first. It is how you give Codex standing instructions that never need repeating.

If you have ever had to tell Codex the same thing twice, that thing belongs in AGENTS.md.

How to create one

Open your project folder in Codex
Create a new thread and ask: "Create an AGENTS.md file for this project"
Codex will create the file and ask you what rules to include
Add your answers and it builds the file for you

What to put in AGENTS.md

CategoryExample
Project overviewThis is a website for a photography business in Auckland. The audience is brides and event planners.
Tech stackWe use plain HTML, CSS, and vanilla JavaScript only. No frameworks.
Brand rulesPrimary colour is #2D4A3E. Font is Inter. Logo is always in the top left.
Tone of voiceWrite copy in a warm, professional tone. No jargon. Short sentences.
Do not touchNever modify the /legacy folder. Never change the homepage hero image.
Build commandRun 'npm run build' to test. Run 'npm run deploy' to publish.
When Things Go Wrong

Troubleshooting

What happenedWhat to do
Codex went in the wrong directionStop it immediately. Type 'stop' or close the thread. Open the Code Review panel (Cmd+Option+B), revert the changes, then start a new thread with a clearer prompt. Next time, use Plan Mode first.
The output looks wrong or brokenDo not accept it. Tell Codex specifically what is wrong: "The button is overlapping the text on mobile. Fix only that." Be specific. Vague feedback produces vague fixes.
Codex seems stuck or keeps loopingType /compact to summarise the thread and free up context. If still stuck, fork the thread with /fork and try a different approach.
You hit your usage limitCheck your window at chatgpt.com/codex/settings/usage. Switch to the Mini model to stretch your remaining budget. Your limit resets on a rolling 5-hour and weekly basis.
A file got changed that you did not want changedOpen the Code Review panel (Cmd+Option+B). Find the file. Click Revert on that specific file.
Codex cannot find a file you mentionedThe file must be inside the project folder. If it is elsewhere on your computer, move it or copy it into the folder first, then ask again.
Real-World Builds

What Could
You Build?

Five things a non-technical person could build with Codex from scratch.

A Simple Business Website
Project: my-website
A one-page website for a local service business with a contact form and booking link. Prompt: "Build a one-page site for a cleaning business. Include a services section, pricing table, and contact form. Brand colour is navy blue. Done when it renders cleanly in a browser." Deploy via the Vercel plugin.
An Automated Email Responder
Project: email-automation
Connect Gmail via MCP. Prompt: "Read my last 10 unread emails. Categorise each as enquiry, complaint, or partnership, then draft a reply. Done when drafts are in my Gmail drafts folder." Set it up as a weekly automation. You review and send.
A Content Calendar Generator
Project: content-calendar
Drop a text file with your brand voice and topics. Prompt: "Generate a 30-day social media calendar for Instagram and LinkedIn. Each day needs a topic, caption angle, and hashtag set. Done when output is a CSV I can import into a scheduler." Import directly to Buffer or Later.
A Client Proposal Generator
Project: proposals
Drop a previous proposal PDF in as a template reference. Prompt: "Read client-brief.txt and template.pdf. Generate a new proposal matching the template structure. Fill in scope, pricing, and timeline. Done when output is a readable PDF." A client-ready proposal in minutes from a short brief.
A Personal Dashboard App
Project: my-dashboard
Connect Google Calendar via MCP. Prompt: "Build a minimal dashboard. Pull today's events from Google Calendar. Show a checklist for tasks and a top-3 priorities section. Done when it loads in a browser with live calendar data." Deploy via Vercel. Your own command centre.
Power User

Must-Have
Skills

Skills are reusable instruction files stored at ~/.agents/skills/ that Codex loads automatically. Install via the Skills Marketplace (puzzle icon) or type $skill-installer [name].

SkillWhat it doesWhy it matters
create-planForces Codex to produce a written implementation plan before it opens a single file.Prevents the wrong-direction session that wastes time and tokens. Start here.
WarpGrepA search subagent that runs 8 parallel code searches at once.Finds things in your codebase in ~5 seconds instead of 75 seconds.
gh-fix-ciReads failing GitHub Actions logs and automatically writes the fix.Turns a 45-minute debugging loop into a background task.
gh-address-commentsReads every PR review comment and addresses them all in one session.The review-response cycle is where development velocity goes to die.
frontend-skillOverrides generic AI design decisions. Forces a real colour palette and typography choice.Without it, Codex builds UIs that work. With it, they look like someone made a decision.
stop-slopStrips AI writing patterns from READMEs, docs, and commit messages.The code can be excellent and still feel hollow because the docs were generated.
Common Mistakes

8 Mistakes
to Avoid

01
Skipping plan mode
Always plan first. Most tasks worth doing require it. Execution without a plan wastes tokens, time, and often has to be undone entirely.
02
One big project for everything
Keep projects scoped tightly. One client, one product, one tool per project. Context is everything to an AI agent.
03
Repeating the same instructions
If you keep reminding Codex of a rule, that rule belongs in your AGENTS.md file. Add it once. Every future session inherits it automatically.
04
Not giving validation criteria
Tell Codex how to know it succeeded. The phrase "Done when..." is the signal it looks for. Without it, you are the only quality gate.
05
Two threads editing the same files
If two tasks need to touch the same codebase, use Worktrees. Running two threads against the same files on the same branch will cause conflicts.
06
Automating something not working yet
Get the task right manually first, then put it on a schedule. Automating a broken workflow just runs the broken workflow faster.
07
Using the highest model for every task
Mini models are fast and cheap for simple jobs. Save GPT 5.4 with high reasoning for the hard problems. Match compute to complexity.
08
Not using AGENTS.md
Build commands, naming conventions, tone preferences, what not to touch. Any rule you have told Codex twice belongs here.
Shortcuts

Shortcuts Worth
Memorising

Shift + TabEnter Plan Mode
Cmd + OOpen or add a new project
Ctrl + NNew thread in current project
Cmd + BToggle the project sidebar
Cmd + Option + BToggle code review panel
Cmd + JOpen the built-in terminal
Ctrl + MStart voice input
Cmd + KCommand palette
/modelsSwitch AI model or reasoning level
/compactSummarise a long thread
/forkBranch a conversation without touching the original
$skill-nameRun or install a skill
K
Keira Nesdale
@RealMissAI · Miss AI Podcast
← Back to vault