← Back to blog

What Is Codex? OpenAI's Coding Agent, Explained

What is Codex? OpenAI's coding agent reads your repo, edits files, runs commands and reviews code from the terminal, IDE, desktop app or cloud.

12 min read

What Is Codex? OpenAI's Coding Agent, Explained

Updated 2026-11

TL;DR: Codex is OpenAI's coding agent: it writes, reviews and runs code for you, from the terminal, an IDE extension, a desktop app or Codex Cloud, according to OpenAI's Codex docs as of November 2026. Unlike a chat that only answers, it reads your repository, edits files and runs commands while you supervise. You start by installing it, signing in with ChatGPT and giving it one clear task.

OpenAI's Codex CLI docs page: inspect, edit, and run code from your terminal

Screenshot: OpenAI's Codex CLI docs page, captured November 2026.

What Codex Is, in Plain Words

Codex is the agent that writes, reviews and runs code for you, and in November 2026 OpenAI describes it as its coding agent that works where you already work. It is your AI coding partner: it can read your repository, edit files, run commands and review code, all from your terminal, your editor or an app available on macOS, Windows or Linux. There are 3 ways to use it on your own computer, plus Codex Cloud for work that runs remotely.

Codex is the agent that writes, reviews and runs code for you.

Many people describe it as the little brother of ChatGPT: it comes from the same company, OpenAI. The difference is simple. Instead of only answering you, it is an autonomous agent that executes, executes operations for you. You give it the task, the tool does the work and you only supervise.

The promise is strong: stop chatting with the code and start building with it in a real environment. If you are new to agents in general, read what an AI agent is first.

Where You Use Codex: Terminal, IDE, Desktop App and Cloud

Codex is one agent with 4 places to use it, and as of November 2026 OpenAI's docs list the terminal (Codex CLI), an IDE extension, the desktop app and Codex Cloud. On the Codex page you will find a very easy path and the 3 local options side by side: install from the terminal with the CLI, download the app, or try the extension in an IDE, which in this case means a code editor. Each option reaches the same agent; you pick the surface that fits how you already work.

  • Terminal (Codex CLI): inspect code, make changes, run commands and automate repeatable work without leaving your terminal.
  • IDE extension: you do not have to use Visual Studio Code no matter what, but it is highly recommended, since in short, most of the extensions are made for Visual Studio Code.
  • Desktop app: you no longer pick a browser tab; you bring the intelligence straight into your local file system.
  • Codex Cloud: give Codex coding tasks to work through in the cloud, from investigating bugs to building features, then review the changes from the web, mobile or desktop app.

For a side-by-side look at the last two, see Codex cloud vs local.

Terminal frame: the Codex CLI installer downloading the latest version on macOS

Frame from a November 2026 Codex lesson by @DevTalles: the Codex CLI installer running in a macOS terminal.

What Codex Can Do: Real Examples

Codex is useful when a task has a clear result you can check, and 3 creator demos from January to November 2026 show the range. In the first, a creator gave the Codex CLI just 1 prompt and asked it to make a kanban board. The columns were not specified; it set up 3 on its own, and that was fine. You can move a card from one column to another, remove cards and create new cards.

The to-do list next to the board was also one of the requirements. You can cross off tasks, delete them and create new ones. For something built from one single prompt, the result was a real surprise: in 5 minutes the tool was ready. That is how fast this AI world moves.

Kanban board and to-do list built by Codex CLI from a single prompt

Frame from a January 2026 demo by @IngeSinCodigo: a kanban board and to-do list Codex CLI built from one prompt.

The second demo went beyond code. A creator was trying to model a 3D bottle in Blender using Codex. Using only Codex and some reference images, it did the work through Blender MCP, and it was also asked to make an animation to open the bottle and close the bottle. The textures were not perfect yet, which is normal for a first pass.

The third is everyday work: plan a new app, then build its screens and forms, then rename or tidy code that already exists. Each step needs a different amount of thinking, which is why the model and reasoning settings below matter.

How to Start Using Codex in 5 Steps

Getting started is a short setup, and the official Codex CLI quickstart in November 2026 has 3 steps: install, run and sign in, then start your first task. A Codex lesson published on November 26, 2026 adds 2 practical habits on top: trust the folder and choose the model and reasoning level for each task. Here is the full path in order.

  1. Install Codex. On macOS or Linux, the official command is curl -fsSL https://chatgpt.com/codex/install.sh | sh; Windows, npm and Homebrew installers are also listed in OpenAI's docs.
  2. Run codex and sign in. Open a project folder, run codex and choose Sign in with ChatGPT.
  3. Trust the folder. The first time you run Codex in a new directory, it asks whether you want to add it to your trusted resources. Say yes to continue.
  4. Pick a model and reasoning level. First ask what your task needs. Use deeper reasoning when tasks are ambiguous, difficult or high value; if in doubt, it is better to start there. When the task is clear and repeatable, a faster setting is enough. Inside a session you can use /model to keep switching depending on the task you are working on.
  5. Give it one clear task. For example: "Tell me about this project", or a focused change you can check.

On reasoning, the same lesson's rule of thumb is: low when you want something fast, medium for something more balanced, which is what you use most in development, and high when there are several steps or sources to review. Extra high is for a big application where you want a change made without breaking it. Models may change, but you need to know when to use each one. For more depth, read how to use Codex.

The Desktop App: Parallel Threads and Isolated Branches

The desktop app is where Codex feels least like a chat, and OpenAI's worktree docs, checked in November 2026, say worktrees let Codex run multiple independent chats in the same project without interfering with each other. The first big difference is real multitasking. Using voice dictation, you can manage several threads in parallel. The AI does not lose context between one task and the next, which removes that mental friction of having to remind the chat which part of the project you were working on.

Visual input works too: when you drag in an image, the AI does not just see it, it understands that you want to replicate that structure in code.

Then comes the key concept: the worktree. The AI creates an isolated branch in Git to work in. This means you can try radical changes on a parallel branch without fear of breaking your main code.

OpenAI docs page: use Git worktrees in Codex to run chats in parallel

Screenshot: OpenAI's Codex worktrees docs, captured November 2026.

Skills are the most educational feature. Instead of writing the same repetitive prompt about how to review code or which libraries to use, you package that instruction into a skill. Basically, you are standardizing your methodology so the AI replicates it, always with a single click, without forgetting your rules.

It goes further with automations: the app lets you schedule tasks in the background. For example, you can ask it every Friday to review your chats from the week and create new skills automatically based on what it learned. It is real asynchronous delegation.

This is no longer an outside consultant you ask questions; it is a complete operating system for programmers.

Local Models and External Tools

Codex is not locked to one setup, and 2 creator demos from May and November 2026 show it working with local models and outside tools. In the first, you can now use Ollama together with Codex: if you have local models installed in Ollama, you can use them inside the Codex app. Just run ollama launch codex app, and it asks which model you want to work with.

Before you start, you have to update both apps so you have this change and can run it; if they are not up to date, it will not work. After that, you can start experimenting with local models and an app as powerful as Codex.

The second is the Blender example above: Codex driving another program through MCP. OpenAI's CLI docs list codex mcp for adding local or remote MCP servers, so this kind of bridge is an official feature, while each server comes from its own maker.

Codex or Another Agent? You Can Use Several

Codex is one of several coding agents, and a June 2026 demo argued that the real skill is orchestration, not loyalty to one tool. Every week someone tells you one tool is better than another, and you still are not sure. The reality is that you can use them all at once. All these tools work in a similar way; the question is not so much which one to use, but understanding the fundamentals of how to orchestrate AI to build applications.

In practice, you add the Claude Code extension, you also add the Codex extension, and in one single project you can work with any tool. Pick the one that best fits your context. If you want several agents on one job, see Codex multi-agent.

What to Watch Before You Delegate

Codex is powerful because it acts, and that is also the main risk to manage in 2026. When asked about the risk, a tech host said it depends on how much access you give it, and you have to be careful with that. Codex itself lets you set the boundaries: the CLI's /permissions command chooses when Codex can edit files or run commands without asking.

  • Give it the smallest access the task needs.
  • Use a worktree for radical changes.
  • Review the diff before you commit.

The open question stays the same: are you ready to delegate that much architecture?

Use Codex Alongside Other Agents in Pachat

Codex is strongest when another agent checks its work, and that is where Pachat fits. Pachat is different personal AI agents, in one group chat. In Pachat's official words: Put your Claude, Grok Bot, Muse and ChatGPT dots in one group chat. They check each other's facts and argue it out, then you make the call.

  1. Ask Codex to plan or build the change.
  2. Bring the plan into a Pachat group with your other agents.
  3. Let them check each other's facts and argue it out.
  4. You make the call, then send the final task back to Codex.
Pachat homepage: different personal AI agents, in one group chat

Screenshot: the Pachat homepage, pachat.ai.

To see how others use this setup, read how people use multi-agent group chats.

FAQ

What is Codex in simple terms?

Codex is OpenAI's coding agent. According to OpenAI's Codex docs as of November 2026, it can read your repository, edit files, run commands and review code. You use it from the terminal (Codex CLI), an IDE extension, the desktop app or Codex Cloud. The key difference from a normal chat is that it executes the work and you supervise, instead of copying and pasting answers yourself.

Is Codex the same as ChatGPT?

No. Both come from OpenAI, and you sign in to Codex with your ChatGPT account, but they do different jobs. ChatGPT answers in a chat window. Codex, as OpenAI's docs described it in November 2026, works inside a real project: it opens files, changes code, runs commands and shows you the diff. Many people call it the little brother of ChatGPT because it comes from the same company but focuses on doing the work.

How do I install Codex?

OpenAI's Codex CLI quickstart, checked in November 2026, lists one command for macOS and Linux: curl -fsSL https://chatgpt.com/codex/install.sh | sh. Windows, npm and Homebrew installers are also documented. Then open a project folder, run codex, choose Sign in with ChatGPT and confirm that you trust the folder. Your first task can be as simple as "Tell me about this project". The desktop app and IDE extension install from the Codex page.

What can Codex build from one prompt?

In a January 2026 demo, a creator gave Codex CLI 1 prompt and got a working kanban board with 3 columns plus a to-do list in about 5 minutes. Cards could be moved, removed and created, and tasks could be crossed off. Treat that as a best case for a small, well-defined app. Bigger projects still need planning, reviews and several rounds of changes.

Can Codex run several tasks at once?

Yes. OpenAI's worktree docs, checked in November 2026, say worktrees let Codex run multiple independent chats in the same project without interfering with each other. Each worktree is an isolated Git checkout, so you can try radical changes in the background without breaking your main code. Codex Cloud adds a second option: each cloud task has its own workspace and keeps running while your computer is asleep.

Can I use Codex with other AI agents in Pachat?

Yes, as a workflow. Pachat, launched as a web product at pachat.ai and current as of 2026, describes itself as different personal AI agents, in one group chat: put your Claude, Grok Bot, Muse and ChatGPT dots in one group chat; they check each other's facts and argue it out, then you make the call. Pachat also has apps for Mac, Windows, Linux and iPhone. Use Codex to build, bring its plan or diff into the group for a second opinion, then decide. Try it at pachat.ai.

Is it safe to let Codex run commands?

It depends on how much access you give it. OpenAI's CLI docs, checked in November 2026, include a /permissions command to choose when Codex can edit files or run commands without asking. Start with 1 project folder you trust, keep Git checkpoints before and after each task, use worktrees for risky changes and review every diff before you commit.

Ready to put Codex and your other agents in one room? Start at pachat.ai.

References

  1. @JoseIABossa, X, 2026-05-13 (Spanish)
  2. @Alvarormp26, X, 2026-02-04 (Spanish)
  3. @aiplaymx, X, 2026-09-02 (Spanish)
  4. @IngeSinCodigo, X, 2026-01-26 (Spanish)
  5. @DevTalles, X, 2026-11-26 (Spanish)
  6. @powerhdeleon, X, 2026-05-16 (Spanish)
  7. @madebyfede, X, 2026-11-19 (Spanish)
  8. @josemafeia, X, 2026-06-12 (Spanish)
  9. Codex CLI, OpenAI docs, fetched 2026-11-30
  10. Codex Cloud, OpenAI docs, fetched 2026-11-30
  11. Worktrees, OpenAI docs, fetched 2026-11-30
  12. openai/codex, GitHub, fetched 2026-11-30

More from the blog

All articles →

Start with the decision in front of you.