GPU Prices Are Finally Falling in November 2026: The RTX 5090's Drop From $9,400, the Cards That Moved Most, and Whether the Fall Lasts — Full Guide
AI-generated illustration for this guide, not a screenshot of any real product. The images in this article are generic illustrations created to show the ideas in the text.
OpenAI Codex CLI is the fastest way to put an AI coding agent inside your terminal, and in November 2026 it has become far more than a clever experiment. You type a plain English instruction, Codex reads your project, edits the files, runs the tests and shows you every change before it is final. The newest releases, versions 0.167, 0.168 and 0.169, add a command centre for running several agents at once, side conversations beside your main chat, voice input, image previews and even animated image generation. This complete guide walks you through the whole journey, from installing the tool on macOS, Linux or Windows to signing in, staying safe with sandboxes, teaching Codex your project with an AGENTS.md file and running real coding workflows every day. You do not need to be an expert developer to follow along. If you can open a terminal and type a sentence, you can use Codex CLI, and by the end of this guide you will know exactly how to make it a reliable part of your work.
Before we go further, one honest note. Codex CLI changes fast. OpenAI ships new versions every few days, and a flag or a menu label that is correct today can move tomorrow. This guide is accurate for the versions released up to 13 November 2026, and every version number, date and feature in it comes from the official release notes and the official documentation as they stood on that day. Where a detail depends on your plan or your machine, the guide says so.
OpenAI Codex CLI is an open-source coding agent that runs in your terminal and edits the repository you point it at.
Think of it as a junior developer who lives inside your terminal window. You describe the change you want in plain English, for example asking it to add a login form, fix a failing test or explain a confusing function, and Codex reads the code, makes the edit and runs the commands needed to check its own work. It is built by OpenAI, written in the Rust programming language, and published as open source under the Apache 2.0 licence, which means anyone can read the code, report problems and suggest improvements. OpenAI first released it in April 2025, rewrote it from TypeScript into Rust later that year, and has shipped updates at a fast pace ever since, with several releases in a single week being normal.
Codex CLI is one of three parts of the wider Codex family. The CLI is the terminal agent covered in this guide. The Codex IDE extension brings the same agent into your editor. Codex cloud runs longer tasks on OpenAI's own machines. All three draw on the same ChatGPT plan limits, and signing in with a ChatGPT account is what unlocks the cloud side of the family. If you have used Claude Code, the idea will feel familiar, but the two tools are wired to different model families, and this guide compares them properly in section 18.
November 2026 has been one of the busiest months in Codex CLI history, with three significant releases landing in a single week.
Version 0.167.0 reached stable status on 6 November 2026 at 01:40 UTC, after
an eight-day sprint that merged more than one hundred pull requests. Its
headline feature is the agent command centre, which you open with the command
codex agents --no-daemon. The command centre and the session
picker now mark results you have not read yet, so a finished task stays easy
to tell apart from one that is still running. The same release lets you switch
between connected backends from the terminal session picker while keeping the
draft you were typing, previews local image attachments in the composer on
supported terminals, and lets you expand the full patch diff inside an
approval prompt without leaving the transcript. A guided Google Cloud Vertex
AI setup wizard sits behind a feature flag, and an experimental system proxy
option arrived for Windows and macOS.
Version 0.168.0 followed on 13 November 2026 with a side-by-side workspace.
Enable the features.tui_workspace setting and a side conversation
appears beside your main chat, with a draggable divider to resize the panes
and a leader key plus Z to zoom the pane you are focused on. The same release
lets you attach audio recordings when you use an audio-capable model, and the
features.image_generation_animation setting lets Codex generate
or edit animated GIFs with optional frame count and timing controls. You can
also browse model providers under Sessions and then Model providers, and
choose the default provider for new chats, while chats you already opened keep
the provider they started with.
Version 0.169.0 arrived the same day, 13 November 2026, and builds directly on the workspace idea. The terminal workspace now holds several side-chat tabs that reopen after you restart Codex, the agent command centre can search older tasks, and the transcript can collapse the details of finished turns so long sessions stay readable. Two small patch releases in between, 0.167.1 on 10 November and 0.167.2 on 11 November, tidied up provider handling and made Codex send tool updates incrementally by default on Google Cloud Vertex AI.
| Version | Release date | Headline change |
|---|---|---|
| 0.167.0 | 6 November 2026 | Agent command centre, unread markers, backend switching that keeps drafts, image previews |
| 0.167.1 | 10 November 2026 | Patch release, narrower provider handling for incremental tool updates |
| 0.167.2 | 11 November 2026 | Incremental tool updates on Google Cloud Vertex AI by default |
| 0.168.0 | 13 November 2026 | Side conversation pane, audio recordings, animated GIF generation, model provider picker |
| 0.169.0 | 13 November 2026 | Several side-chat tabs that reopen after restart, command centre search, collapsible turns |
Codex CLI needs very little, but checking the short list below first saves you a failed install and a confusing error message.
First, a supported operating system. Codex CLI runs on macOS 12 or later, on Ubuntu 20.04 or later, on Debian 10 or later, and on Windows 11. On Windows you can use the native PowerShell installer, which OpenAI now documents first, or run it through Windows Subsystem for Linux. On Apple Silicon and Intel Macs, and on both x86_64 and ARM64 Linux machines, the same install commands work. If your machine is older than those minimum versions, update the operating system first rather than fighting an install that was never built for it.
Second, a way to install it. The simplest path needs nothing but a terminal and an internet connection, because OpenAI publishes a small install script. The npm path needs Node.js installed, and the package declares that it works with Node.js version 16 or later, so most machines that already run JavaScript tools are ready. The Homebrew path on macOS needs Homebrew itself. Pick the path that matches the tools you already have rather than installing a whole new package manager for one program.
Third, an account. You sign in either with a ChatGPT account or with an OpenAI API key. Codex is included in every ChatGPT plan, including Free and Go, with usage limits that grow as the plan grows. The Free and Go plans can use Codex locally in the CLI and in the IDE extension, but not Codex cloud tasks. If you plan to use an API key instead, keep it in an environment variable and never paste it into a chat message, a screenshot or a shared document. Section 5 walks through both sign-in paths step by step.
Installing Codex CLI takes about a minute, and OpenAI gives you four official paths, so use the one that fits your machine.
On macOS and Linux, the path OpenAI now recommends first is the standalone
installer. Open a terminal and run
curl -fsSL https://chatgpt.com/codex/install.sh | sh. The script
downloads the right binary for your machine, puts it on your PATH and leaves
you ready to run codex --version. On Windows, open a new
PowerShell window and run
irm https://chatgpt.com/codex/install.ps1 | iex. Both installer
addresses redirect to OpenAI's own release servers, and both scripts have been
verified by independent guides as genuine OpenAI downloads. If your
organisation blocks piped install scripts, use one of the package-manager
paths below instead, and ask your IT team which route they prefer.
The npm path works on any platform with Node.js. Run
npm install -g @openai/codex and then check the result with
codex --version. This is the path most continuous-integration
setups use, because it is easy to pin to a version. To install a specific
release, add the version tag, for example
npm install -g @openai/codex@0.169.0, and to move to the newest
release later, run npm install -g @openai/codex@latest. If npm
reports a permission error, do not reach for sudo out of habit. Fix the npm
prefix or use the standalone installer instead, because a global install owned
by the wrong user causes confusing failures later.
On Linux, install bubblewrap as well, because Codex uses it to sandbox
commands: on Ubuntu or Debian run sudo apt install bubblewrap,
and on Fedora run sudo dnf install bubblewrap. On macOS,
sandboxing works out of the box with Apple's built-in Seatbelt framework, and
on Windows, Codex uses a native Windows sandbox, so neither of those platforms
needs an extra package. The repository also publishes prebuilt binaries on its
GitHub Releases page, which is useful if you manage machines without a package
manager.
| Platform | Install command | Notes |
|---|---|---|
| macOS or Linux | curl -fsSL https://chatgpt.com/codex/install.sh | sh | Recommended first, needs no package manager |
| Windows PowerShell | irm https://chatgpt.com/codex/install.ps1 | iex | Native installer, run in a new PowerShell window |
| Any platform with Node.js | npm install -g @openai/codex | Easy to pin or update to a chosen version |
| macOS with Homebrew | brew install --cask codex | Good if Homebrew already manages your tools |
After installing, verify the setup before you sign in. Run
codex --version and confirm it prints a version number like
0.169.0. If the command is not found, close the terminal and open a fresh one
so the updated PATH takes effect, and check that the installer actually
finished without an error. Updating later is the same command you used to
install, so make a habit of checking for a new version at the start of each
week. With releases landing every few days, a weekly update keeps you close to
the newest features without chasing every single patch.
Codex CLI gives you two ways to pay for its work: sign in with a ChatGPT plan, or sign in with an OpenAI API key for usage-based billing.
The ChatGPT path is the usual choice for individuals. Open a project folder in
your terminal, run codex, and choose Sign in with ChatGPT when
the first-run screen appears. Codex opens a browser tab, you log in to your
ChatGPT account, and the browser passes the sign-in back to the CLI. Usage
counts toward your plan's limits, and the /status command inside
a session shows what you have left. Signing in this way is also the only path
that unlocks Codex cloud, so if you ever want to hand a long task to OpenAI's
machines, this is the sign-in to use. You can check how you are signed in at
any time with codex login status.
The API key path suits automation, shared machines and teams that bill by
usage. Keep your key in an environment variable and pipe it in with
printenv OPENAI_API_KEY | codex login --with-api-key. Usage is
then billed at standard API rates rather than counted against a ChatGPT plan.
This path is also the right one for scripts and continuous integration, where
no human is present to click through a browser sign-in. Never hard-code the
key into a script, never commit it to Git, and rotate it immediately if you
think it has leaked. A leaked API key is a bill someone else can run up, so
treat it like a password.
Which path should you choose? If you already pay for a ChatGPT plan, sign in with ChatGPT, because Codex is included in every plan and the limits grow with the plan. If you only need Codex for a short experiment, the Free plan is enough to learn on, though its limits are the lowest. If you run Codex in automation, or you want usage billed separately from a personal plan, use an API key. You can switch later: the sign-in screen in the CLI lets you choose again, and the model picker also lets you move between providers, as section 13 explains. One more thing worth knowing is that OpenAI reset Codex usage limits for all users on 12 November 2026, and reports in early November said OpenAI plans a shared ChatGPT and Codex usage allowance from December, so check the Help Center page linked in Sources for the current numbers before you plan a heavy week of use.
Your first Codex session should be small, safe and real: one folder, one task, one diff you read carefully.
Open a terminal, move into a project folder with cd, and type
codex. The full-screen terminal interface opens, with the session
transcript in the middle, a composer pinned at the bottom, and status
information and hints around the edges. The prompt stays put at the bottom
while the transcript scrolls above it, which matters when a long task produces
pages of output. Type your request in plain English and press Enter. A good
first request names the file, the change and the reason, for example asking
Codex to add a short README section that explains how to run the project, or
to find why a test is failing and fix it.
Watch what happens next. Codex reads the files it needs, explains its plan in the transcript, and then starts editing. Every file change appears as a diff you can read, and every command it runs appears with its output. When Codex wants to do something outside the safety limits you set, it stops and asks. Read the diff before you approve it, the same way you would read a colleague's pull request. If the change looks right, approve it. If it does not, say so in plain English and ask Codex to try a different approach. The conversation is the interface: you do not need to learn a query language, you need to learn to describe what you want clearly.
The Codex interface is a full-screen terminal layout with four regions, and learning it once makes every later session faster.
The transcript is the main area. It shows your prompts, the model's reasoning summaries, the diffs it proposes, the commands it runs and their output, all in order. Older history loads on demand as you scroll back, so a long session does not slow the interface to a crawl. Since version 0.169.0, finished turns can collapse their details, which keeps a long session readable. When a reply is interrupted by a tool call, the interface now renders it as a single Markdown message, and reasoning summaries are restored when you replay a conversation.
The shortcuts are worth memorising. Press Ctrl plus P to open the resume
picker and jump back to an earlier session. Press Ctrl plus T to browse
earlier messages and Ctrl plus L to clear the display while keeping that
history available. Press F8 to toggle voice mode, and type
/voice to open its settings. Type a forward slash at the start of
the composer to see the slash commands, including /model to
change the model, /status to see usage and permissions,
/permissions to change what Codex can do without asking,
/agents to open the agent view, /fork to clone a
conversation into a Git worktree, and /init to generate an
AGENTS.md file. Version 0.164.0 added ten /presets slots for
saving prompts you reuse, and the ability to set models and permissions
inline. Two minutes spent learning these keys saves you hours of mouse-free
fumbling later.
The sandbox is the single most important safety feature in Codex CLI, because it limits what commands can technically do, not just what the model promises to do.
Codex separates two questions that beginners often mix up. The sandbox decides what a command can touch. The approval policy, covered in the next section, decides when Codex stops to ask you. The sandbox is enforced by the operating system itself: on macOS it uses Apple's Seatbelt framework, on Linux it uses the kernel's sandboxing features with bubblewrap, and on Windows it uses a native Windows sandbox. That matters, because a limit enforced by the operating system holds even if the model makes a mistake or is tricked by a malicious instruction hidden in a file.
There are three sandbox modes. Read-only lets Codex read files and run
commands that change nothing, which is ideal for exploring a new codebase or
asking questions about code you do not own. Workspace-write is the default,
and it lets Codex edit files inside the project folder and run commands there,
while network access stays off by default and writing outside the project
needs approval. Danger-full-access removes the sandbox entirely. OpenAI marks
it as elevated risk, and you should only use it inside a container or on a
machine you are willing to lose. The flag for it is
--sandbox danger-full-access, and the shorthand
--yolo turns on full access with approvals off at the same time.
| Sandbox mode | What Codex can do | Best for |
|---|---|---|
| read-only | Read files and run commands that change nothing | Exploring a new codebase, asking questions, code review |
| workspace-write | Edit files and run commands inside the project folder, network off by default | Everyday coding work, the default you should use |
| danger-full-access | No limits at all | Only inside a container or on a throwaway machine |
Approvals are the second half of the safety system: they decide when Codex stops and waits for you, even inside the sandbox.
The default policy is on-request, which means Codex asks before it crosses a
sandbox boundary, for example before it edits a file outside the project
folder or reaches the network. Inside the project, in workspace-write mode, it
works without asking, which is why the default feels smooth. The never policy
means Codex never asks, which is useful for scripted checks that should not
change anything, but dangerous for anything that edits files. Combine never
with a read-only sandbox for safe automation, as in
codex --sandbox read-only --ask-for-approval never, and never
combine never with full access unless you have thought very carefully about
what could go wrong.
You can change both settings without leaving a session. Type
/permissions to open the permissions screen, or start Codex with
the flags you want, for example
codex --sandbox workspace-write --ask-for-approval on-request for
the default Auto setup. Version 0.167.0 improved the approval moment itself:
you can now expand the full patch diff inside the transcript while an approval
prompt is open, so you can read exactly what you are approving without losing
your place. Version 0.168.0 added longer previews of approval commands and
distinct notifications for terminal input requests and network access
requests, so the thing you are being asked about is easier to judge at a
glance.
An AGENTS.md file is the highest-leverage file in a Codex workflow, because a short set of standing instructions shapes every prompt that follows.
AGENTS.md is a plain Markdown file of instructions that Codex reads before it
starts working. Put one in your repository root and it applies to that
project. Put one in your home folder at ~/.codex/AGENTS.md and it
applies to every project as your personal rules. Codex reads both, along with
any AGENTS.md files in parent folders, so a project file can add specific
rules on top of your global ones. The file is loaded before every task, which
means the instructions inside it are always in effect, unlike a prompt you
have to remember to type each time.
To create your first one, type /init inside a Codex session.
Codex inspects the project and generates a starter AGENTS.md with sections for
the build commands, the test commands, the code style and the things it should
never do. Edit that starter by hand afterwards, because you know your project
better than the generator does. Keep it short and specific. Name the exact
commands to build and test, for example the package manager command that
installs dependencies and the command that runs the test suite. Name the style
rules that matter, like the formatter to run and the naming convention to
follow. And name the boundaries, such as never editing the database migration
folder, never committing directly to the main branch, and never adding a
dependency without asking first.
The best way to learn Codex CLI is one small real task, done end to end, in fifteen minutes.
Start by committing your project to Git, so you have a clean point to return
to. Open the project folder, run codex, and check the status with
/status to confirm the model, the sandbox and your sign-in. Then
give Codex a task with a clear scope and a clear finish line. A good first
task is asking it to add input validation to one form, to write tests for one
small function, or to fix one failing test and explain the cause. Name the
file, describe the expected behaviour, and say how you will check the result,
for example by running the test suite.
While Codex works, read the transcript. Notice how it explores the files
first, then explains its plan, then edits. When an approval prompt appears,
expand the patch diff and read it before you approve. When the task finishes,
run the tests yourself in a separate terminal, open the changed files in your
editor, and read the diff with git diff. If something is wrong,
do not fix it by hand and move on. Tell Codex what is wrong in plain English
and let it fix its own work, because that loop is the skill you are learning.
If the fix works, commit it with a clear message.
The agent command centre, added in version 0.167.0, is the feature that turns Codex CLI from a single assistant into a small team you can supervise.
Open it with codex agents --no-daemon. The command centre lists
your active, queued and completed agent tasks across all sessions in one
navigable view, and both the command centre and the session picker mark
results you have not read yet. That unread marker is a small detail with a
large effect: when three agents finish at once, you can see at a glance which
results still need your attention and which you have already reviewed. Tasks
are sorted by recency within their status groups, so the newest work is always
near the top.
The practical workflow is simple. Start two or three short tasks in separate sessions first, so the command centre has something to show. Give each task a different job, for example one agent writing tests, one refactoring a module, and one updating documentation. Then open the command centre and watch them progress without opening a new terminal window for each one. When a task finishes, open its transcript, read the diff, and approve or correct it. When a task is stuck, you can see that too, and you can jump into its session to steer it. Since version 0.169.0, the command centre can also search older tasks, which matters once you have weeks of history behind you.
Version 0.168.0 added a side conversation pane, and version 0.169.0 turned it into a workspace of tabs, which changes how you think while you code.
Enable the features.tui_workspace setting and a side conversation
appears beside your main chat. Drag the divider to resize the two panes, or
press the leader key followed by Z to zoom the pane you are focused on. The
point of the side pane is to hold a second thread without losing the first:
ask a question about a library in the side pane while the main chat keeps
working on your feature, or draft a commit message in the side pane while the
main chat finishes a refactor. The two conversations stay separate, so neither
one pollutes the other's context.
Version 0.169.0 extends the idea further. The terminal workspace now holds several side-chat tabs, and those tabs reopen after you restart Codex, so a workspace you set up on Monday is still there on Tuesday. You can switch between tabs with the keyboard or the mouse, and each tab keeps its own conversation. The same release lets the transcript collapse the details of finished turns, which keeps long sessions readable when several threads are running at once. Together, these changes turn the terminal from a single chat window into a small desk with several papers on it, each one waiting where you left it.
Codex CLI remembers your sessions, and knowing how to return to one, branch one or review one is what makes the tool useful across days rather than minutes.
Press Ctrl plus P to open the resume picker, which lists your earlier sessions. Since version 0.167.0, the picker and the command centre mark unread results, and since version 0.168.0, the local history and resume pickers filter newly created threads by the signed-in ChatGPT account, so you see your own sessions rather than a jumble from every account that ever touched the machine. The picker can also switch between connected backends directly, and your draft survives the switch, which means you can move a half-written prompt from one backend to another without retyping it.
Forking is the feature for trying a different approach without losing the
first one. Type /fork and Codex clones the conversation into a
Git worktree, which is a separate checkout of your repository with its own
working files. The forked conversation starts from the same point but can go
in a different direction, and because it lives in a worktree, its file edits
cannot collide with the original session's edits. Use a fork when you are
unsure between two designs, or when you want to test a risky change while
keeping the safe version intact. When one fork wins, keep its changes and
discard the other worktree.
Codex CLI is no longer a text-only tool, and its newest tricks cover voice, images and even animated GIFs.
Voice arrived with the full-screen terminal rebuild and works through the
/voice command, with F8 as the toggle. Voice conversations are
enabled by default, and you can speak a prompt and hear the reply, which suits
hands-free moments like reviewing code while you pace, or dictating a bug
report while you look at the screen. Version 0.168.0 added audio recordings as
well: when you use an audio-capable model, you can attach recordings to a
prompt, and the model uses the clip duration to keep more short recordings in
context. Recordings you reject are skipped on later turns, so a bad take does
not keep coming back.
Image generation is the newest trick of all. Enable
experimental.image_generate and Codex can create or edit images
with an image generation tool, using a model you can choose through the
matching setting. Since version 0.168.0, image generation is enabled by
default when a connected provider supports image models, so many users will
find it simply works. The same release added the
features.image_generation_animation setting, which lets Codex
generate or edit animated GIFs with optional frame count and timing controls.
These features are experimental, so expect rough edges, but they point to
where the tool is heading: a terminal agent that can show you things, not only
tell you about them. If you are learning how to use AI agents more broadly,
our
beginner's guide to AI agents
covers the same ideas of delegation and verification in plain language, and it
pairs well with this guide.
Codex CLI becomes much more powerful when you connect it to your other tools through MCP servers and custom providers.
MCP, short for Model Context Protocol, is an open standard that lets an AI
agent talk to external tools and data sources. A Codex MCP server can give the
agent access to your issue tracker, your database, your documentation or your
deployment system, so it can check a ticket, read a schema or look up a
runbook without you copying and pasting anything. You configure MCP servers in
the Codex configuration file at ~/.codex/config.toml, where you
also set the model, the sandbox defaults and other preferences. Add one server
at a time, test it with a small question, and only then add the next. A server
that silently fails will waste more time than it saves, so verify each
connection before you rely on it.
Custom providers work the same way. Codex is not limited to OpenAI's own
models: you can point it at other OpenAI-compatible providers, including
Google Cloud Vertex AI, which version 0.167.0 supports with a guided setup
wizard. Enable the gcp_setup_wizard feature flag, choose Sign in
another way on the provider screen, and follow the wizard, which supports
Application Default Credentials or a credential file. Once a provider is
connected, it appears in the model picker, and since version 0.168.0 you can
choose the default provider for new chats from the Sessions menu. The same
provider screen lets you add and edit custom providers directly from the
terminal, so you rarely need to edit the configuration file by hand.
Codex CLI also works without a human at the keyboard, which makes it useful in scripts and continuous integration.
The non-interactive mode runs Codex from a single command and exits when the
task is done. Use codex exec with a prompt, for example asking it
to run the test suite and report the failures, or to review the changes in a
pull request and list the problems it finds. Because no human is present to
approve anything, pair this mode with a read-only sandbox and an approval
policy of never, as in
codex --sandbox read-only --ask-for-approval never. That
combination can inspect and report, but it cannot change anything, which is
exactly what you want from an automated check. The older
codex exec --full-auto flag is now deprecated and prints a
warning, so use the sandbox and approval flags instead.
Continuous integration is the most valuable use of this mode. Add a step to
your pipeline that asks Codex to review the diff, run the linter, or check
that the documentation matches the code, and let it report its findings as a
comment or a log. Keep the tasks read-only and small, because a CI job that
edits files creates a mess that nobody can reproduce. Save the editing work
for interactive sessions, where a human reads the diff. And set a time limit
on the CI step, because an agent that loops on a hard problem can burn through
your usage allowance while nobody is watching. The
/status command shows usage in interactive sessions, and the same
awareness belongs in your pipeline design.
Codex CLI is one of three serious terminal coding agents, and the right choice depends on the models you already pay for and the work you do.
Codex CLI is OpenAI's agent, written in Rust, open source under Apache 2.0, and included in every ChatGPT plan. Its strengths are the fast release pace, the agent command centre for parallel work, the new side-conversation workspace, and the deep connection to the ChatGPT ecosystem, including Codex cloud for long tasks. Its weaknesses are the ones that come with speed: menus and flags move often, and the documentation sometimes lags the newest release by a few days. It is the natural choice if you already use ChatGPT, or if you want an open-source agent you can inspect and extend.
Claude Code is Anthropic's agent, built around the Claude model family. Our complete guide to Claude Fable 5.2 covers its setup, its agent teams and its costs in detail, and it is worth reading if you already pay for a Claude plan. Claude Code is often praised for long, careful reasoning on large codebases, and its agent teams feature is a direct rival to Codex's command centre. Gemini CLI is Google's agent, tied to the Gemini model family, and it reads GEMINI.md files for project instructions in the same way Codex reads AGENTS.md. Our guide to Gemini 4 Hydrogen explains the newest Gemini model, which is the engine behind much of Google's current AI tooling. If your team already lives in Google's ecosystem, Gemini CLI deserves a serious look.
| Agent | Model family | Project instructions file | Parallel work feature |
|---|---|---|---|
| Codex CLI | OpenAI Codex models | AGENTS.md | Agent command centre, side-chat tabs |
| Claude Code | Claude models | CLAUDE.md | Agent teams |
| Gemini CLI | Gemini models | GEMINI.md, also reads AGENTS.md | Parallel sessions in the terminal |
Most Codex failures are not model failures. They are the same eight beginner mistakes, repeated in different projects.
The first mistake is the vague prompt. Asking Codex to fix the website tells it nothing about which page, what is broken, or what fixed looks like. Name the file, describe the symptom, and state the expected result. The second mistake is the giant task. Asking for a whole feature in one prompt produces a large diff that nobody can review properly. Break the work into small steps, and verify each one before you ask for the next. The third mistake is skipping the diff. Approving a change you have not read is how a small error becomes a production bug. Read every diff, every time, even when you are in a hurry.
The fourth mistake is running in full access mode on a real machine. The sandbox exists for a reason, and disabling it to save a few approval clicks is a bad trade. The fifth mistake is no AGENTS.md file. Without standing instructions, you will type the same rules into every session, and Codex will keep guessing the ones you forgot. The sixth mistake is no Git commit before the session. Without a clean commit, you cannot undo a bad change with one command, and you will waste time untangling it by hand. The seventh mistake is trusting the agent's confidence. Codex can explain a wrong answer just as smoothly as a right one, so run the tests and check the result yourself. And the eighth mistake is giving up after one bad session. The first session is always clumsy, because you are learning to prompt while the tool is learning your project. The second week is when it starts to pay off, and the people who quit on day one never see it.
Thirty days of small daily practice will take you from your first Codex prompt to a daily coding habit you can rely on.
Week one is for learning the basics. Install Codex, sign in, write your first
AGENTS.md file with the /init command, and complete one small
real task every day. Keep every task under fifteen minutes, keep the sandbox
on workspace-write, and read every diff. By the end of the week you will know
the interface, the shortcuts and the approval flow, and you will have a feel
for how much detail your prompts need. Write down the prompts that worked
well, because those are the start of your personal playbook.
Week two is for real work. Pick one genuine task from your project each day, such as writing tests for a module, refactoring a messy function, or fixing a bug from your issue tracker. Use the resume picker to return to yesterday's session when a task spans two days, and try one fork when you are unsure between two designs. Update your AGENTS.md file whenever you catch yourself repeating an instruction. By the end of the week, Codex should be saving you measurable time on ordinary tasks, and you should be able to say which kinds of tasks it handles well and which ones still need your hands on the keyboard.
Week three is for parallel work. Open the agent command centre, run two agents on independent jobs, and practise reviewing their results in turn. Try a side conversation for research while the main chat keeps coding, and try voice mode for at least one session. Add one MCP server for a tool you use every day, and test it with a small question before you rely on it. Week four is for making it permanent. Set up one scripted read-only check in your workflow, tidy your configuration file, and write a short note to yourself about what Codex is good at, what it is bad at, and which tasks you will never hand it. That note is the real product of the thirty days. The tool will keep changing, with new versions every week, but a clear-eyed habit of prompting, verifying and reviewing will serve you with every coding agent you ever use.
Codex CLI itself costs nothing to install, and it is included in every ChatGPT plan, including the Free plan. You sign in with a ChatGPT account or an OpenAI API key, and the Free plan gives you the lowest usage limits. Higher plans give you larger limits, and the Pro and Business plans suit heavy daily use. If you sign in with an API key instead, usage is billed at standard API rates rather than counted against a plan. The CLI is open source under the Apache 2.0 licence, so there is no licence fee for the software itself. Check the current limits in the OpenAI Help Center before planning a heavy week.
You need basic terminal skills, but you do not need to be an expert programmer to start. If you can open a terminal, move into a folder and type a sentence, you can run your first session. Codex explains what it is doing, shows you every diff, and lets you ask questions about code you do not understand, which makes it a genuine learning tool. That said, the more you know about the code, the better you can judge its output. Beginners should start with small tasks, read every diff, and treat each session as a lesson, not only as a shortcut.
Yes, if you keep the default workspace-write sandbox and the on-request approval policy, and never use full access mode on a real machine. The sandbox is enforced by the operating system, so Codex cannot write outside your project folder or reach the network without asking. Always commit your work to Git before a session, so you can undo any change with one command. Read every diff before approving it, keep credentials out of the project folder, and only connect MCP servers you trust. Safety here is a habit, not a setting you turn on once.
AGENTS.md is a plain Markdown file of standing instructions that Codex
reads before every task in a project.
It tells the agent how to build and test the code, which style rules to
follow, and what it must never do. You can generate a starter with the
/init command and edit it by hand afterwards. A global file at
~/.codex/AGENTS.md holds your personal rules for every project.
It matters because a short, specific AGENTS.md shapes every prompt that
follows, and it is the single biggest difference between a Codex that guesses
and a Codex that works the way you do.
Run the same command you used to install it, and check the version
afterwards with codex --version.
The standalone installer updates the binary in place, npm users run
npm install -g @openai/codex@latest, and Homebrew users run
brew upgrade --cask codex. New versions arrive every few days, so
check weekly rather than daily. Before a big task, confirm you are on a recent
version, because a feature this guide describes may only exist in the newest
release. If an update changes a flag you rely on, the release notes on the
GitHub repository explain what moved.
Yes, Codex works in any folder, but a Git repository is strongly
recommended.
Without Git you lose the safety net of a clean commit before each session, the
easy diff review with git diff, and the worktree feature behind
the /fork command. If your project is not in Git yet, initialise
a repository and commit the current state before your first Codex session. It
takes two minutes and it turns every later mistake into a one-command undo.
Working without version control is like coding without a save button, and no
agent should be trusted that far.
The agent command centre is a single view of all your running Codex agents,
opened with codex agents --no-daemon.
It arrived in version 0.167.0 on 6 November 2026, and it lists active, queued
and completed tasks across all sessions, marking results you have not read
yet. Use it when you run two or three agents in parallel, for example one
writing tests while another refactors a module. Since version 0.169.0 it can
also search older tasks. Open the centre, review each finished result, read
its diff, and approve or correct it before moving on.
Codex CLI is OpenAI's terminal agent and Claude Code is Anthropic's, and the practical difference is the model family and the ecosystem you already pay for. Codex is open source under Apache 2.0, included in every ChatGPT plan, and its parallel-work feature is the agent command centre. Claude Code is built around Claude models and offers agent teams. Both read project instruction files, both run in a sandbox, and both need you to read their diffs. Pick the one whose models you already use, learn it for a month, and judge it on your own work rather than on marketing claims.
Yes, through the non-interactive mode, but keep automated runs
read-only.
Use codex exec with a prompt and pair it with a read-only sandbox
and an approval policy of never, so the automation can inspect and report but
cannot change anything. That suits CI steps like reviewing a diff, running a
linter, or checking documentation. Never let an unattended run edit files on
your main machine, and set a time limit so a looping agent cannot burn through
your usage allowance. Save the editing work for interactive sessions where a
human reads the diff.
Describe the mistake in plain English, show it the failing test or the
error message, and ask it to fix its own work.
Most mistakes come from a vague prompt or missing context, so add the detail
that was missing and try again. If the second attempt also fails, split the
task into smaller steps, or use /fork to try a different approach
in a separate Git worktree without losing the first attempt. Never silently
fix the agent's mistake by hand and move on, because the correction is exactly
the instruction that belongs in your AGENTS.md file. A mistake you record is a
mistake you stop repeating.
OpenAI Codex repository and release notes, GitHub: github.com/openai/codex
Codex CLI command reference and version history, Toolsbase: toolsbase.dev/en/reference/codex-commands
Codex CLI 0.167.0 stable release analysis, 6 November 2026: codex.danielvaughan.com
Codex CLI 0.167.0 agent command centre guide, System Design Simple: dev.to/systemdesignsimple
Codex CLI 0.167.0 coverage, Windows Forum: windowsforum.com
Codex changelog for versions 0.168.0 and 0.169.0, 13 November 2026: whatsnew.fyi/product/codex
Codex CLI release tracker, Havoptic: havoptic.com/tools/openai-codex
OpenAI Codex overview and version history, AI TLDR: ai-tldr.dev/tools/openai-codex-agent
How to use Codex CLI step-by-step guide, AgentVera: agentvera.dev/en/blog/how-to-use-codex-cli
Codex CLI install, config, models and CI guide, Cubic: cubic.dev/blog/codex-cli
Codex CLI install, plans, sandbox and AGENTS.md guide, Explore AI Directory: exploreai.directory/terminal/codex-cli
Codex CLI official installation guide, Ofox: ofox.ai/blog/codex-official-installation-complete
All facts in this guide were checked against the sources above on 13 November 2026. Version numbers and release dates come from the official Codex release notes as summarised by the trackers listed here. Where a figure is the vendor's own claim rather than an independent measurement, the text says so.
Comments
Post a Comment