# What is Codex?

Codex is OpenAI’s coding agent, included in every ChatGPT plan: it reads a project, edits files and runs commands. Then see a first task, AGENTS.md and safe reviews.

Tool: ChatGPT. By Julien Lieben. Updated 2026-11-24. Source: https://coldiq.com/university/chatgpt/what-is-codex

## In short

- Codex is OpenAI’s coding agent (an AI that takes steps on its own): it reads a project, edits files, runs commands and shows you what it changed.
- You can use Codex in the ChatGPT desktop app and in the cloud. You can also use the Codex CLI in your terminal, or an IDE extension.
- Every ChatGPT plan includes Codex, and paid plans give more usage and cloud features.
- An AGENTS.md file in your project gives Codex standing instructions it reads before it starts work.
- You do not need to be a developer to start, but you must review every change before you keep it.

Video: [Meet the New Codex CLI](https://www.youtube.com/watch?v=PUBc2G0Tj5E)

## Steps

1. Install the Codex CLI (the terminal version) with the command below.
2. Type codex in a folder and sign in with ChatGPT.
3. Describe the task in plain words.

## What can a non-developer do with Codex?

Codex is built for software work, but many small business tasks are software tasks in disguise. Think of a messy CSV file (a simple spreadsheet file), a simple web page or a repeated copy-paste job. Each can become a short Codex task.

You describe the result in plain words. Codex writes the code, runs it and shows you the output.

- Clean a lead export: remove duplicates, fix name capitals and split full names into first and last name.
- Build a simple one-page site for an event or a webinar sign-up.
- Write a small script that renames and sorts hundreds of files.
- Explain an existing project in plain words before you ask a developer for a change.


## Where can I use Codex?

All the places below share the same engine. On the desktop app, the CLI and the IDE extension, they also share the same settings and connected tools.

If you are not technical, start in the desktop app. It shows the work in a familiar window and asks before risky steps.

- The ChatGPT desktop app: select Codex in the product selector. Available on macOS, Windows and Linux.
- The Codex CLI (command-line tool): a tool you run in a terminal, the text window where you type commands.
- The IDE extension: for VS Code, Cursor and Windsurf. An IDE is a code editor.
- The cloud: send a task from the web or the desktop app and let it run without your computer.
- Mobile: start, approve and review tasks from your phone.


## How do I run my first task in the terminal?

The install command is in the “Paste this in your terminal” box near the end of this page. You can also install the CLI with Homebrew (a popular installer). Or use OpenAI’s own installer for macOS, Linux or Windows.

Open your terminal in the folder you want Codex to work in, then type codex. The first time, choose Sign in with ChatGPT.

Start with a question, not a change. It shows you what Codex understands before it touches anything.

Tip: Save a Git checkpoint before and after each task, as OpenAI recommends. Git is a tool that keeps the history of your files. With it, you can go back if a change goes wrong.

> Tell me about this project in plain words. What does it do, which files matter most, and what should I know before I change anything?


## How do I give Codex standing instructions?

Codex reads a file named AGENTS.md before it does any work. Put it at the root of your project, the top folder.

Use it for the rules you would otherwise repeat in every prompt: your language, your style, the commands to run for tests and the files Codex must not touch.

You can ask Codex to write a first version for you, then edit it.

> Create an AGENTS.md file for this project. Include what the project does, how to run it, how to test it, and these rules: write in plain English, never delete files in the data folder, and ask me before you install anything new.


## Is Codex included in my ChatGPT plan?

Yes. OpenAI includes Codex in Free, Go, Plus, Pro, Business, Edu and Enterprise. The amount of usage depends on the plan.

As of November 2026, Plus costs $20 a month. It gives Codex on the web, in the CLI, in the IDE extension and on iOS. It also adds cloud integrations such as automatic code review. Pro starts at $100 a month for more usage.

You can also sign in with an API key (a secret code that lets a program use your account). Then you pay per use at API prices. That route has no cloud features.


## How do I stay safe when Codex changes files?

Codex works inside limits you control. It uses a sandbox, a closed space where commands run, and it asks for approval before actions outside those limits.

Read the summary and the list of changed lines before you accept the work. If a change looks wrong, say why in a follow-up and ask Codex to fix it.

- Work on a copy or in a Git project, never on your only version of a file.
- Give one focused task at a time.
- Ask Codex to run the checks the project already has, such as tests.


## Command

```
npm install -g @openai/codex
```

## Sources

- [Codex CLI](https://learn.chatgpt.com/docs/codex/cli)
- [Codex IDE extension](https://learn.chatgpt.com/docs/codex/ide)
- [Custom instructions with AGENTS.md](https://learn.chatgpt.com/docs/agent-configuration/agents-md)
- [ChatGPT Work and Codex pricing](https://learn.chatgpt.com/docs/pricing)

## Questions

**Do I need to know how to code to use Codex?** No, you can describe tasks in plain words. You still need to check the result. So start with small tasks where you can see if the output is right.

**Can Codex work while my laptop is closed?** Yes, with Codex Cloud on eligible plans. The task runs in a hosted environment (computers OpenAI runs for you). You review the result later on the web, the desktop app or your phone.

**Can Codex use my other tools?** Yes, through MCP servers. MCP (Model Context Protocol) is an open standard that lets an AI tool use tools from other systems. The desktop app, CLI and IDE extension share the same setup.


## Related

- [How to use ChatGPT for lead generation](https://coldiq.com/university/chatgpt/lead-gen-masterclass)

## Try ColdIQ free

ColdIQ gives new accounts up to 1,450 free credits as they get started, no credit card required.
One subscription covers 40+ B2B data providers for finding, enriching and verifying
contacts and companies, through the web app, the API or the MCP server for AI agents.

1. Create an account: https://coldiq.com/marketplace/sign-up?utm_source=ai-assistant&utm_medium=markdown&utm_content=university
2. Run a first search on your own market with the free credits.
3. Connect the MCP server to Claude, ChatGPT or Cursor: https://coldiq.com/mcp
