OpenAI Codex: What It Is, How to Use It and Install Skills
Skillpedia team · updated 2026-12-01 · 10 min read
Short answer: Codex is OpenAI's programming agent. It reads your files, writes and fixes code, and runs commands for you. You can use it inside ChatGPT, in the terminal (Codex CLI) or in your code editor. It comes included in paid ChatGPT plans and supports skills (SKILL.md), the AGENTS.md file and MCP servers.
If you already use ChatGPT to answer questions, Codex is the next step. Instead of just answering, it does the work: it opens your project folder, understands what is there and changes the files. You ask for a contact page for your website, and it creates the page, tests it and shows you what changed.
You don't need to be a programmer to benefit from it. You need to explain clearly what you want and review the result. Below you'll see where to use it, how much it costs, how to install it and how to make Codex smarter with skills.
Table of contents
- What is OpenAI's Codex?
- Codex in ChatGPT, the terminal and the editor
- How much it costs and who can use it
- How to install Codex CLI
- Installing skills in Codex
- AGENTS.md: your project's manual
- Codex vs Claude Code
- Skills that help with this
- Frequently asked questions
What is OpenAI's Codex?
Codex is an AI agent built for programming. The difference from a regular chat is simple: a chat gives you text with code, and you copy and paste it. Codex works directly on the files.
In practice, it can:
- Read a whole project and explain how it works.
- Create a new function, a page or a script.
- Find and fix an error.
- Run tests and commands in the terminal.
- Review changes before you publish them.
A everyday example: you have a spreadsheet exported from your store's system and want a script that adds up sales by month. You ask in plain language, Codex writes the script, runs it, checks whether it worked and fixes it if there's an error.
The name Codex was used before by OpenAI for an older code model. Today's Codex is something different: a complete agent, and that's what we're talking about here. The official page is at openai.com/codex.
Codex in ChatGPT, the terminal and the editor
The same Codex appears in three places. Choose based on how you like to work.
| Where | How it works | Good for |
|---|---|---|
| ChatGPT (cloud) | You connect a GitHub repository and Codex works in a cloud environment | Assigning tasks and checking them later |
| Terminal (Codex CLI) | Runs on your computer, inside the project folder | People who want full control and to use skills |
| Editor (extension) | Sits next to your code in VS Code and similar editors | People who already use an editor |
In ChatGPT
This is the easiest way to start. You open Codex through ChatGPT, connect your GitHub account and choose the repository. Then you describe the task. It works on its own and shows you the changes so you can approve them. You can send several tasks at the same time.
In the terminal
Codex CLI is a program you install and open by typing codex. It works on the files on your computer. This is where skills, AGENTS.md and MCP really shine, because you control everything.
In the editor
If you use VS Code or Cursor, there is a Codex extension. You chat with it in a side panel while you look at the code.
How much it costs and who can use it
Codex is included in paid ChatGPT plans, such as Plus and Pro, and also in plans for businesses and education. Each plan has a usage limit: the more expensive the plan, the more tasks you can do before hitting the limit.
Another option is to use Codex CLI with an OpenAI API key. In that case, you pay for what you use, based on the number of tokens. If you don't know what tokens are, it's worth reading what tokens are in AI.
Prices and limits change often, and OpenAI sometimes offers temporary access on cheaper plans. Check the current price and what each plan includes on the official website before you subscribe.
For people just starting out, here's the tip: if you already pay for ChatGPT Plus, try Codex before subscribing to any other tool. And if your limit runs out fast, see how to save tokens in Codex and Copilot.
How to install Codex CLI
Installation takes a few minutes. You'll need a terminal: on a Mac, it's the Terminal app; on Linux, any terminal; and on Windows, OpenAI recommends using WSL (Linux inside Windows). Check the documentation to see whether direct Windows support has changed.
Step by step
- Install Node.js on your computer, if you don't have it yet. It's required for the installation command.
- Install Codex by typing this in the terminal:
npm install -g @openai/codex
- Go into your project folder. For example:
cd Documents/my-website. - Open Codex by typing
codex. - Log in. The first time, it asks you to sign in with your ChatGPT account or an API key. With a ChatGPT account, your usage counts toward your plan's limit.
On a Mac, you can also install it with Homebrew. The exact command is in the official Codex repository.
First request
Start with something small and safe:
- Explain what this project does, in simple language.
- List the most important files and the role of each one.
Codex asks for your permission before doing risky things, such as deleting files or running commands. You can adjust how much freedom it has. At first, keep it asking for approval. Only give it more freedom once you trust the results.
One rule that saves headaches: use Codex in a folder with version control (Git), or make a copy before starting. That way, if something goes wrong, you can go back.
5 new skills a week. 1 minute to read.
The most viewed skills of the week, explained simply. Free.
Installing skills in Codex
A skill is a folder with a SKILL.md file inside. This file teaches the agent how to do a specific task the right way: review a pull request, generate a report, follow a code standard. The format is an open standard, so the same skill works in Codex, Claude Code and other tools.
The good thing about skills is that the agent only loads the content when it needs it. It reads the name and description of each skill and, if your task matches, opens the full file. This saves tokens.
How to install
- Find the skill on Skillpedia or in a GitHub repository.
- Download the skill folder (the one with the SKILL.md).
- Put the folder in Codex's skills folder. To use it in all projects, the usual place is inside
~/.codex/skills. To use it in just one project, there is a skills folder inside the repository itself. - Open Codex again so it recognizes the skill.
Exact folder paths can change between versions, so check the official Codex documentation if something doesn't show up. For a step-by-step guide with screenshots, see how to install skills from GitHub in Claude Code, Cursor and Codex.
What about MCP?
MCP is another way to give the agent new abilities: instead of instructions, it gets access to external tools, such as Google Drive, Figma or a database. In Codex CLI, MCP servers are configured in the ~/.codex/config.toml file. If this topic is new to you, read what MCP is and skills vs MCP.
AGENTS.md: your project's manual
AGENTS.md is a text file you place at the root of your project. Codex reads this file before it starts working. It's like leaving a note for a new employee.
A simple AGENTS.md can include:
- What the project does, in two lines.
- How to run the project and the tests.
- House rules: write texts in Brazilian Portuguese, don't touch the payments folder, always ask before installing anything.
- Code patterns you want to keep.
Without this file, you repeat the same instructions in every conversation. With it, Codex already starts out knowing. You can also have a general AGENTS.md in the Codex folder, with preferences that apply to all projects.
Claude Code uses the same idea, with the name CLAUDE.md. If you use both, see how CLAUDE.md works. Many people keep similar content in both files.
Codex vs Claude Code
Both are programming agents that run in the terminal, in the editor and in the cloud. The choice usually depends on which subscription you already have.
| Codex | Claude Code | |
|---|---|---|
| Company | OpenAI | Anthropic |
| Included in | Paid ChatGPT plans | Paid Claude plans |
| Instructions file | AGENTS.md | CLAUDE.md |
| Skills (SKILL.md) | Yes | Yes |
| MCP | Yes | Yes |
In quality, the two are neck and neck and change with every model update. Instead of trusting a ranking, test both on a real task of yours, such as fixing a bug or creating a page.
One strategy many people use: work with one and ask the other for a second opinion. There are skills that do exactly this, calling Codex from inside another agent. To learn more about the competitor, read the Claude Code guide or the official page at code.claude.com.
Skills that help with this
We recommend trying these three first:
- cli-skill-collector: finds which programming tools you have installed, searches GitHub for compatible skills and installs them for you. Great for people who don't want to work with folders.
- codex: lets another agent run Codex CLI in different modes, such as asking for a second opinion on code that's already been written.
- babysit-pr: keeps an eye on a pull request on GitHub, reads review comments and test results, and fixes what's needed until it's ready.
And two more for people who want to go further:
- codex: lets your agent hand an entire task over to Codex CLI, such as building a feature, reorganizing code or reviewing a pull request.
- agent-eval: compares AI programming tools on the same task and shows which was fastest, cheapest and most reliable. Useful for deciding between Codex and Claude Code with your own data.
If you use another assistant and want to connect it to Codex, the Codex Bridge MCP server is also worth a look.
Frequently asked questions
Is OpenAI's Codex free? It's included in paid ChatGPT plans and can also be used with the API, where you pay for usage. OpenAI sometimes offers access on cheaper plans for a limited time. Check what's available today on the official website.
Do I need to know how to program to use Codex? Not to get started. You ask in plain language and it does the work. But knowing the basics helps you review the result and avoid mistakes. Start with small tasks and always keep a backup.
What's the difference between Codex and ChatGPT? ChatGPT talks with you and gives you answers. Codex works on your files: it creates, edits, runs commands and tests. It's built for programming tasks.
Do Claude skills work in Codex? In most cases, yes. Skills follow the same SKILL.md standard. You just need to check that the skill doesn't depend on something specific to one tool.
Does Codex work on Windows? OpenAI recommends using WSL on Windows for Codex CLI. The editor extension and the ChatGPT version work normally. Check the documentation to see whether support has changed.
Related reading
- Saving tokens in Codex and Copilot: tricks to make your limit last longer.
- How to install skills from GitHub in Claude Code, Cursor and Codex: the complete step-by-step guide.
- Agent Skills: the open standard: why the same skill runs in several agents.
- CLAUDE.md: the file that makes Claude Code smarter: the Claude Code version of AGENTS.md.
- Claude Code: what it is and how to install it: Codex's main competitor.
Free MCP
Give your AI 15,000+ skills, for free
Plug the Skillpedia MCP into Claude, Cursor, Codex or any AI. Before each task, it finds the right skill on its own.
- 01Get your free key
- 02Paste one line into your AI
- 03Ask for any task
Full guide on this topic: Claude Code: What It Is, What It Does, and How to Start (2026 Guide)
5 new skills a week. 1 minute to read.
The most viewed skills of the week, explained simply. Free.