Codex is built for software work, but you don’t need to be an engineer to get real use out of it. Whether you use the desktop app yourself or review changes from a developer, this guide covers where it runs, how to keep it safe, how to ask well, and what the plans give you. Facts about models, plans and settings are as of the date of this post, because they change fast.
1. What Codex is and who it is for
Codex is a coding agent made by OpenAI. Codex is designed to work with code and developer tools: it can read files, make edits and run commands, inside the limits you set. It is built for software work, so if you never touch software at all, you might not need it every day.
Still, non-engineers can get real use out of it. You can open a folder in the desktop app, ask questions about what a project actually does, or have it explain messy scripts in plain English. Plus, if you work with developers who use it, you can read the summary and the diff of what it proposed.
These are the current models in OpenAI’s models documentation:
| Model | What the docs say it’s for | In plain words |
|---|---|---|
| GPT-6 Astra | Most capable, complex work across code, apps, research | The most capable one, for complex work. |
| GPT-6.1 Sol | Near-Astra at lower cost, repeated long-running projects | Near Astra’s level at lower cost, for repeated, long-running projects. |
| GPT-6 Luna | Most efficient, focused high-volume tasks, summarization, extraction, focused coding | The most efficient one, for focused, high-volume tasks. |
GPT-5.5 retires from ChatGPT and from Codex with ChatGPT sign-in on October 14, 2026. The API is unaffected. Older guides may still mention it.
2. Where it runs
You can use Codex in a few places, per OpenAI’s quickstart and cloud documentation:
| Surface | What it is | In plain words |
|---|---|---|
| ChatGPT desktop app and web | The visual desktop application and web interface | A visual way to start, without a terminal. The desktop app can work with a folder you pick. |
| Codex CLI | The command-line tool running inside your terminal | What developers run in the terminal to edit files and run commands in a project directory. |
| Codex IDE extension | An add-on for code editor software | Runs inside a code editor so developers can see edits side by side with the code. |
| Codex Cloud | Cloud environments hosted by OpenAI | Runs in the cloud for remote environments, cloud code review and PR review. |
You don’t have to use all of them. The desktop app is one way to start without a terminal, and knowing the CLI and Cloud exist gives you a shared vocabulary when developers bring them up.
3. Plans and what the pricing page says
This is the pricing page as of the date of this post, per the official pricing documentation:
| Plan | Price | What it adds for Codex |
|---|---|---|
| Free | $0 | GPT-6 Luna at standard speed in the desktop app, subject to rollout. |
| Go | $8/mo | GPT-6 Luna at standard speed in the desktop app, subject to rollout. |
| Plus | $20/mo | Codex on web, CLI, IDE extension and iOS; cloud code review and Slack integrations; GPT-6.1 Sol and GPT-6 Luna; the page estimates 350 to 3,000 local Luna messages per five-hour period. |
| Pro | From $100/mo ($100, $200 or $500) | Everything in Plus, no five-hour limits, Ultrafast mode on the $500 tier. |
| Business | $20/user/mo (min 2 users, annual; $25 monthly) | Codex on desktop and mobile apps, flexible credit extension, usage limits match Plus. |
| Enterprise & Edu | Custom | Everything in Business plus enterprise-grade controls. Contact sales. |
| API key | Pay by API pricing | Access in CLI, SDK or IDE extension, no cloud features. |
My advice: start with what you have, Free or Go in the desktop app. Plus ($20/mo) is the plan the pricing page lists for Codex on web, CLI, IDE extension and iOS, and the 350 to 3,000 figure is an estimate for local Luna messages, so real usage depends on the model and the task. Look at Pro only if you keep running into limits. There’s also an API key option, billed by API pricing.
4. Install and first run
If you want to try the CLI yourself, the CLI documentation lists four official install commands:
- macOS/Linux: curl -fsSL https://chatgpt.com/codex/install.sh | sh
- Windows (start from a new PowerShell window): powershell -ExecutionPolicy ByPass -c "irm https://chatgpt.com/codex/install.ps1 | iex"
- npm: npm install -g @openai/codex
- Homebrew: brew install --cask codex
Then open a project directory and run `codex`. The first time, choose “Sign in with ChatGPT” to connect your account.
The docs give “Tell me about this project” as an example first prompt. It’s a question, not a change request, so it’s a gentle first test. If you want to be sure nothing gets edited, start in read-only mode (chapter 5).
Tell me about this project
A few other commands from the docs: `codex resume` reopens a recent chat from the current repo. `codex --image` lets you pass an error screenshot, an architecture diagram or a design reference. `codex --search` turns on live web search. And `codex mcp` connects external tools through Model Context Protocol.
5. Safety first: sandbox modes and approvals
Because Codex can edit files and run commands, OpenAI puts safety boundaries in place. There are two parts to know: sandbox modes and approval policies.
A sandbox is basically a digital fence. It limits what Codex can touch. The sandboxing documentation defines three modes:
| Mode | What it can do | When to use it |
|---|---|---|
| read-only | Reads files and runs commands only inside the read-only sandbox. No edits without approval. | Useful for looking at a project without allowing edits inside the sandbox. |
| workspace-write (default) | Read and edit inside the workspace, run routine local commands inside the boundary | The default mode. Unapproved edits stay in the workspace, which includes the current directory and temporary directories like /tmp. |
| danger-full-access | No filesystem or network boundaries | No boundaries at all. I’d leave it alone unless you really know why you need it. |
Your operating system enforces these fences: macOS uses Seatbelt, Windows uses the native Windows sandbox in PowerShell, and on Linux and WSL2 Codex uses the Linux sandbox, which relies on bubblewrap.
Then there are approval policies. The two common ones are `on-request` (Codex asks to exceed the sandbox) and `never` (it never stops for approval). The old untrusted setting is retired, and the docs also describe a more granular policy. The reviewer can be `user` (default) or `auto_review`.
The docs advise the narrowest approval scope needed. For starter settings in `config.toml`, stick with `approval_policy = "on-request"` and `sandbox_mode = "workspace-write"`, or `read-only` for extra safety. In local workspace-write mode, commands have no network access unless you enable it. ChatGPT on the web has separate controls, a managed allowlist and an “Allow public internet access” toggle. To enable network inside workspace-write locally, `[sandbox_workspace_write] network_access = true` does it.
Why keep `on-request`? Because with it, Codex asks when it needs something the active sandbox doesn’t already allow, like network access you haven’t enabled, edits outside the workspace, or leaving the sandbox. Commands the sandbox already allows can run without another prompt, so you still need to read what it did.
6. Prompt injection and secrets in plain words
Two security risks come up often with coding agents: prompt injection and leaked secrets.
The agent security documentation states the first risk directly: “Prompt injection can cause the agent to fetch and follow untrusted instructions.”
In plain words: Codex reads text from files and websites. If a file or page you didn’t write contains instructions meant to redirect it, the agent might follow them. Web search normally uses cached results to reduce that exposure, but treat all web results, cached or live, as untrusted, and review diffs carefully before accepting them.
The second risk is secrets, like passwords and API keys. The rule that matters most is never commit them to version control. If you use Codex Cloud, read how its cloud environments handle secrets before you add any, because the rules differ between current and legacy environments.
7. How to ask well: the four ingredients
You don’t need magic words. The prompting documentation outlines four ingredients that make instructions work:
- Behavior and context: name the desired behavior, and point to code or exact reproduction steps.
- Constraints: state what not to touch. The docs give a clear example: “Do not change the API shape. Keep the fix minimal and add a regression test if feasible.”
- Verification method: tell it how to confirm the work succeeded.
- Implementation details: mention any specific tools or details that matter.
Scope is just as important. Ask for one focused result you can review, limit sources to what is relevant, and separate required from optional. When the approach matters, ask for a plan first. You can use `/plan` to investigate and propose before changes. And iterate with small specific follow-ups instead of restarting.
/plan Investigate the files in this project. Propose a plan for [describe your goal], including which files should change and how we will verify the result. Do not edit any files yet.
Inspect the files in this project. Explain what this code does in plain words for someone who is not an engineer. Separate what is required from what is optional, and do not make any edits.
We found an issue where [describe exact reproduction steps]. Do not change the API shape. Keep the fix minimal and add a regression test if feasible. Verify the fix by running [verification command], and show me the proposed diff before applying.
In the proposed plan for [step], keep the change strictly focused on [specific file]. Do not touch any other files. Show me the exact lines you plan to change.
8. AGENTS.md, your standing instructions
Instead of retyping your instructions in every chat, you can put them in an AGENTS.md file. Codex reads these files automatically as custom instructions.
According to the AGENTS.md documentation, Codex checks specific locations:
- Global: ~/.codex/AGENTS.override.md if present, else ~/.codex/AGENTS.md.
- Project: from the Git root down to the working directory, each directory checked for AGENTS.override.md then AGENTS.md.
Files concatenate root-down, and closer files override earlier guidance. The docs give an example layout: ~/.codex/AGENTS.md for global preferences, ./AGENTS.md for repo rules, and ./services/payments/AGENTS.override.md for team rules in a subfolder.
The default limit, project_doc_max_bytes, is 32 KiB for all the instructions Codex combines, not for each file, so keep them short and focused on rules that save time and prevent mistakes.
# Project Instructions - Scope: Make minimal, focused edits. Do not refactor unrelated files. - Approvals: Ask before running commands that use the network or delete data. - Verification: Run tests after modifying code. - Secrets: Never commit API keys or passwords.
9. Check the work: diffs, tests, and commits
When Codex proposes changes, don’t take them on faith. The prompting documentation describes what to do after it finishes:
- Re-run reproduction steps to see if the issue is gone.
- Run lint and tests to make sure nothing else broke.
- Review output and inspect the diff carefully.
- Commit what you approve, and revert what you do not.
A diff sounds technical, but it’s basically a comparison: it shows what was added, removed or changed. If Codex touched twenty lines when your task only needed two, ask it why.
Git commits help here. When you commit work you approved, you create a checkpoint you can go back to for those tracked changes. It won’t undo everything a command did outside the repository, so keep reviewing.
10. Codex and Claude together
I work with both Claude and Codex. If you’re comparing them, give each the same small, reviewable task and check each result against the same requirements. I wrote a separate guide for the other one: Claude for people who are not technical.
11. Where to start this week
- Step 1: Install Codex via the CLI or open the ChatGPT desktop app, and sign in with your ChatGPT account.
- Step 2: Open an existing project directory and run the first prompt: “Tell me about this project”.
- Step 3: Check your settings in config.toml to confirm approval_policy = "on-request" and sandbox_mode = "workspace-write" (or read-only).
- Step 4: Create a short ./AGENTS.md file with basic project rules, and keeping it short.
- Step 5: Pick one small task, ask for a plan with /plan before making changes, review the diff, run tests, and commit what you approve.
Questions
Is Codex free?+
There is a Free plan and an $8/mo Go plan with GPT-6 Luna at standard speed in the desktop app, subject to rollout. The pricing page lists Codex on web, CLI, IDE extension and iOS under Plus at $20/mo, and there’s also an API key option billed by API pricing.
Do I need to know how to code?+
No. While it is built for software work, non-engineers can use it in the desktop app to inspect folders, explain confusing scripts, ask questions about what a project does, or review changes from developers.
Is Codex safe to run?+
Sandboxing and approvals reduce the risk, they don’t remove it. With the recommended settings (approval_policy = "on-request" and sandbox_mode = "workspace-write", or read-only), Codex asks when it needs more than the sandbox allows, but you still need to review what it does and what it changed.
What is AGENTS.md?+
It is a file where you store standing instructions for Codex. It checks Codex’s home directory, normally ~/.codex, for global rules, and project folders from the Git root down to your current directory, with a default 32 KiB limit on everything combined.
Which model should I use?+
The docs list GPT-6 Luna for focused high-volume tasks, GPT-6.1 Sol for repeated project work at lower cost than Astra, and GPT-6 Astra for complex coding and research. Note that GPT-5.5 retires from Codex with ChatGPT sign-in on October 14, 2026.
Sources
Questions about your own setup?
Send me an email, I read everything and answer when I can.
Email me