You assign a task, close your laptop, and the work is done when you return. That is the promise of OpenAI Codex. It reads your repository, writes code, runs tests, and opens a pull request for review.
This guide uses only OpenAI’s own pages. Prices and limits were checked on 30 November 2026, and they change often.
What Is OpenAI Codex, in Short?
OpenAI Codex is an AI coding agent that works on your codebase for you. You give it a goal in plain English. It plans the work, reads the files, edits the code, and runs the tests.
The cloud agent runs on OpenAI’s computers, not yours. Each task gets its own sandbox, preloaded with a copy of your repository. You can run several tasks at once.
Codex is not a chatbot that answers one question at a time. It carries out a whole job, then hands the result back for review. OpenAI first launched it as a research preview on 16 May 2025. It reached general availability on 6 October 2025.
What the Cloud Coding Agent Actually Does
OpenAI lists four core jobs: writing features, answering questions about a codebase, fixing bugs, and proposing pull requests for review.
A typical cloud task takes 1 to 30 minutes. Codex reads and edits files. It runs test suites, linters, and type checkers. Then it commits its changes.
You get proof of what it did. Codex cites terminal logs and test outputs. You can then review the result, ask for changes, or open a GitHub pull request.
It also works in the background. Queue several tasks at once, and review them when ready. Your laptop can sleep while the work continues in the cloud.
Cloud Agent or CLI: Pick the Right Door
Codex is one product with several doors. The two main ones are the cloud agent and the Codex CLI. They share the same models and the same account, but they suit different kinds of work.
The cloud agent lives in ChatGPT on the web, desktop, and mobile. You type a task, and it runs in a sandbox on OpenAI’s side. It fits long jobs you want to hand off, such as bug fixes.
The Codex CLI is an open-source agent that runs in your terminal. It works on the code on your own machine, right where you already work. It fits fast, hands-on work: quick edits and questions about local code.
An IDE extension, a desktop app, and an iOS app round it out. All sign in with the same ChatGPT account. One allowance covers them all.

How Codex Stands Apart from Other Coding Assistants
Most coding assistants suggest lines as you type. Codex works differently. You hand it a whole task, and it returns a finished change for review.
That async style is the key gap. Inline tools help you write code faster. Codex takes the task away and brings back a result. Its CLI is also open source, so teams can script it into their own workflows.
Other agents offer similar ideas. But this mix sets Codex apart: a cloud agent, an open CLI, and GitHub review in one product.
How to Start with Codex Cloud
Starting is simple, and you need no new account if you already use ChatGPT. Follow these steps:
- Sign in to ChatGPT. Codex is part of your ChatGPT plan. Free accounts get only limited access, so most users will need a paid plan.
- Connect your repository. Link your GitHub account and pick the repository Codex should work on.
- Set up the environment. Tell Codex how your project builds and tests, with a setup script and an AGENTS.md file.
- Assign a task. In ChatGPT, open Codex and type the job in plain words. Be clear about what “done” looks like.
- Review the result. Read the diff and check the test output first. Then open the pull request or merge.
For the CLI, install it with npm install -g @openai/codex, then sign in with your ChatGPT account. With an API key instead, the CLI bills per token at API rates. It cannot use cloud features such as GitHub code review or Slack.
Plans and Pricing in 2026
Codex has no price of its own. It is included in ChatGPT plans, and your use depends on your plan. Codex and ChatGPT Work share pricing, credits, and usage limits.
| Plan | Price (USD) | Codex access |
|---|---|---|
| Free | $0 | Limited; GPT-6 Luna in the desktop app |
| Go | $8 per month | Lightweight coding tasks |
| Plus | $20 per month | Web, CLI, IDE, iOS; auto code review and Slack |
| Pro 100 | $100 per month | More use than Plus; no five-hour limit |
| Pro 200 | $200 per month | More use than Pro 100 |
| Pro 500 | $500 per month | Highest use of the three Pro tiers |
| Business Standard | $20/user/mo annual ($25 monthly) | Included use per seat |
| Business Premium | $100/user/mo annual ($125 monthly) | Higher use; no five-hour limit |
| Enterprise and Edu | Custom pricing | Shared credit pools or flexible pricing |
Prices are in US dollars, excluding local tax. Checked on OpenAI’s pricing docs on 30 November 2026.
Plus at $20 a month costs $240 a year. A 10-person team on Business Standard, billed annually, pays $200 a month, or $2,400 a year.
If you run out of included use, Plus and Pro users can buy extra credits. API-key sessions bill separately at API rates.
Usage Limits: What Your Plan Really Buys
OpenAI sells an allowance, not tasks. Each message draws on it. The cost depends on the model, the task size, and where it runs.
For Plus and Standard Business seats, OpenAI publishes these estimates per five hours:
| Model | Messages per 5 hours |
|---|---|
| GPT-6.2 Astra | 6–50 |
| GPT-6.2 Sol | 17–180 |
| GPT-6 Astra | 5–45 |
| GPT-6.1 Sol | 15–160 |
| GPT-6.1 Terra | 35–285 |
| GPT-6 Sol | 15–150 |
| GPT-6 Luna | 350–3,000 |
These are estimates, not fixed limits. A small script may use only a fraction of your allowance. A large task uses far more. Cloud tasks may use more allowance than local messages. Weekly limits may also apply. Your usage dashboard shows your limits and reset times.
Credit rates give a second way to judge cost. At Standard speed, GPT-6.2 Sol costs 50 credits per million input tokens and 250 per million output tokens. GPT-6.2 Astra costs 200 and 1,000. For USD billing, GPT-6.2 Sol costs $2 and $10 per million input and output tokens. GPT-6.2 Astra costs $8 and $40.
Take one example. A GPT-6.2 Sol task with a million input and a million output tokens costs $12 at pay-as-you-go rates. Exact per-task costs are unconfirmed in advance.
Note two dates. GPT-5.5 left Codex for ChatGPT sign-in users on 14 October 2026. From 20 October 2026, cloud tasks count toward your usage. Older guides that call cloud tasks free are out of date.
AGENTS.md: The File That Makes Codex Smart
AGENTS.md is a plain text file you place in your repository. It works like a README, but it speaks to the agent, not to humans. It tells Codex how to move around your codebase, which commands run the tests, and which project rules to follow.
A good AGENTS.md covers four things. List the project layout, build and test commands, code style, and what Codex must never do.
Keep it short. List the test and lint commands, plus files that are off limits, such as migration files or secrets. Codex reads this file before each task. Extra context costs allowance on every message.
Security: How Codex Keeps Your Code Safe
Every cloud task runs in a secure, isolated container. The agent sees only the code you gave it and the tools you set up. It cannot reach your laptop or your other projects.
At launch, internet access was off during task runs. OpenAI later added the option to switch it on. Check the setting before a task that needs the web.
Admins on Business, Edu, and Enterprise plans get extra controls. They can edit or delete cloud environments, enforce safer defaults, and watch usage on dashboards.
One rule still stands. OpenAI says users must review and validate all agent-written code before they ship it. The agent shows its work through logs and test results. The final check is yours. Never merge a pull request you have not read.
Code Review, Slack and Team Tools
Codex also reviews code, not just writes it. Turn on automatic review for a repository, or tag @codex in a pull request to ask for one. It flags issues before a human reviewer opens the diff. Review usage counts only when Codex reviews through GitHub.
Slack brings Codex into team chat. Tag @Codex in a channel or thread. It gathers context from the chat and answers with a link to the finished task. From there you can merge it or pull it to your own machine.
Developers can also build with the Codex SDK. It embeds the same agent that powers the CLI into your own tools and apps. It is available for TypeScript, with more languages on the way. A GitHub Action plugs Codex into CI/CD pipelines.

Limits and Catches to Know
Codex is strong, but it has real limits.
First, delegating takes longer than typing the change yourself. A cloud task runs 1 to 30 minutes, and a big job can take longer. If you need a one-line fix now, the CLI or your editor is faster.
Second, limits are shared. Codex, ChatGPT Work, and ChatGPT for Excel draw on the same allowance on Plus and Pro. Heavy use in one place leaves less for the others. Pick the smallest model that can do the job.
Third, Codex is only as good as your setup. A repo with no tests and a broken build gives the agent little to work with. Spend an hour on setup first.
Fourth, the exact number of messages a task will use is unconfirmed in advance. OpenAI publishes ranges, not exact counts. Start with small jobs on Plus, then move to Pro if you need more.
Who Codex Suits Best
Codex suits developers who work in GitHub and want to hand off well-scoped jobs. Solo developers can clear small tasks while they focus on hard problems. Teams can use it for code review, bug triage, and cleanup work.
It suits learners too, with a warning. Codex can explain a codebase and show how a fix works. But if you never read its output, you will not learn. Treat it as a junior teammate, not an autopilot.
It does not suit everyone. If you rarely write code, Plus for Codex alone is hard to justify.
Frequently Asked Questions
Is OpenAI Codex free?
Codex has a limited free tier: GPT-6 Luna in the desktop app, subject to rollout. Full access starts with Plus at $20 a month.
What is the difference between Codex cloud and Codex CLI?
The cloud agent runs tasks in a sandbox on OpenAI’s computers, so your laptop can sleep. The CLI runs on your own machine, in your terminal, against your local files. Use the cloud for long jobs. Use the CLI for fast edits.
How much does Codex cost per task?
There is no fixed per-task price. Cost depends on the model, the task size, and where it runs. OpenAI publishes message ranges for Plus and credit rates for pay-as-you-go use. Exact costs are unconfirmed in advance.
Related reading on Teche Time
- How to Set Up a Personal AI Server at Home for Chat, Coding, and Documents
- Is DeepSeek Good at Coding?
- Debug a JavaScript Price Sorting Bug with BlackBox AI
- ChatGPT for Sales Launches with Salesforce and HubSpot
Final Words
OpenAI Codex is a real coding agent, not a demo. The cloud agent takes a task, works in its own sandbox, and hands back code with logs to prove it. All of it rides on your ChatGPT plan.
Start small. Pick Plus, set up AGENTS.md, and give Codex one well-scoped job. Watch your dashboard and read every diff.

