OpenAI Codex in the cloud: plans, cloud tasks and security
OpenAI's Codex is a coding agent that runs on your computer and in OpenAI's cloud, and in 2026 it shares its plans and limits with ChatGPT. On 1 December 2026 OpenAI's pricing page says cloud tasks, automatic code review and the Slack integration come with ChatGPT Plus at $20 a month and above. Codex used with an API key alone works in the command line and editor but has no cloud features. In a cloud task, Codex checks out your repository in a container, internet access for the agent is off by default, and you open a pull request when you approve the result.
Published December 1, 2026. Editorial.
Key takeaways
- OpenAI's pricing page says "ChatGPT Work and Codex share pricing, credits, and usage limits", so Codex cloud tasks are paid for by a ChatGPT plan.
- On 1 December 2026, cloud features start with ChatGPT Plus at $20 a month; Pro plans cost $100, $200 or $500 a month; Business is $20 per user a month on an annual contract.
- An API key alone gives Codex in the command line, the software kit and the editor, with no GitHub code review, Slack or other cloud features.
- In a cloud task the setup script runs with internet access, and OpenAI says "Agent internet access is off by default".
- OpenAI says Business, Enterprise and Edu workspace data is encrypted and is not used to train its models by default.
Codex is OpenAI's coding agent. In 2026 it comes in three forms: a command line tool on your computer, an extension in your editor, and cloud tasks that run on OpenAI's machines while you do something else. This page covers the cloud side, because that is where Codex works on its own, and it covers the plans that pay for it, because the billing changed in 2026.
Every product fact on this page is OpenAI's own statement, read on 1 December 2026.
Codex now shares its plan with ChatGPT
The first thing a buyer needs to know is on OpenAI's pricing page: "ChatGPT Work and Codex share pricing, credits, and usage limits" [1]. ChatGPT Work is OpenAI's name for ChatGPT doing tasks for you, and Codex cloud tasks run on the same execution system [4]. Your ChatGPT plan includes an allowance; eligible plans can buy more with credits or usage-based billing [1].
| Plan | Price on 1 December 2026 | Codex as OpenAI describes it |
|---|---|---|
| Free | $0 | GPT-6 Luna at standard speed in the desktop app, subject to rollout |
| Go | $8 a month | GPT-6 Luna at standard speed in the desktop app, subject to rollout |
| Plus | $20 a month | Codex on the web, command line, editor and iOS; cloud integrations such as automatic code review and Slack; GPT-6.1 Sol and GPT-6 Luna |
| Pro | $100, $200 or $500 a month | Everything in Plus; Ultrafast mode on the $500 plan |
| API key | API prices | Command line, software kit and editor only; no cloud features |
| Business | $20 per user a month, annual, two or more users ($25 monthly) | Larger cloud machines, admin controls, single sign-on, no training on business data by default |
| Enterprise and Edu | Through sales | SCIM, key management, role-based access, audit logs through the Compliance API, retention and residency controls |
Source: OpenAI's Codex pricing page [1].
One line in that table changes how teams buy. With an API key alone, Codex runs in the command line, the kit and the editor, with "No cloud-based features (GitHub code review, Slack, etc.)" [1]. So a company that wants cloud tasks buys ChatGPT seats, while a company that wants to run Codex in its own CI pipeline can do that on API billing. Our page on chat plans and API keys compares this with the other agents.
How a cloud task runs
OpenAI's documentation describes the steps of a cloud task [3]:
- Codex creates a container and checks out your repository at the branch or commit you chose.
- It runs your setup script, plus a maintenance script when it resumes a cached container.
- It applies your internet settings. "Setup scripts run with internet access. Agent internet access is off by default, but you can enable limited or unrestricted access if needed" [3].
- The agent runs terminal commands in a loop. It edits code, runs checks and tries to validate its work. If the repository has an AGENTS.md file, the agent uses it to find the project's lint and test commands [3].
When it finishes, you review the changed files and the check results, ask for changes in the same chat, and "commit or open a pull request when you're ready" [2]. Each task has its own workspace and "can keep working while your computer is asleep" [2]. You can start a task from ChatGPT on the web or desktop by choosing Cloud, from the Codex tab on mobile, or from the command line [2].
Environments make repeat work cheaper. A published environment holds the repositories, dependencies and tools a team needs, and each task starts from it with its own separate working state [2]. Setting one up is the first job of any trial: an agent that cannot install your dependencies or run your tests cannot check its own work. Give the environment the same versions of languages and tools your developers use, so a test that passes in the cloud also passes on their machines.
Where the code runs and what OpenAI keeps
OpenAI's security page for cloud work says: "Cloud execution runs on OpenAI-managed infrastructure", and that "tasks run in VM-backed sandboxes", meaning each task runs in a virtual machine that isolates it [4]. The cloud environment "does not automatically inherit local files, applications, browser sessions, or private-network access" [4]. That is a protection and a limit at once: a task cannot see your laptop, and it also cannot reach a database inside your company network unless you give it a route.
On data, OpenAI says "Business, Enterprise, and Edu workspace data is encrypted in transit and at rest and is not used to train OpenAI models by default" [4]. Retention and audit visibility "depend on the data category, storage location, event, and product configuration" [4], so an Enterprise buyer should ask for the retention settings that apply to Codex tasks in particular.
Codex does not offer a self-hosted cloud runner in the documents we read. Its local mode is the command line tool on your own machine, which runs in a sandbox with approvals for commands outside it.
When OpenAI says to use the cloud
OpenAI's own cloud page names the cases where a cloud task fits better than the command line on your computer [2]. Work that "should run remotely" goes to the cloud, so that your laptop is free. When "several tasks need the same setup", a published environment lets each task start from the same repositories and tools while keeping its own working state. When "your workflow needs service credentials", network secrets let a task reach allowed HTTPS services, and you can limit the environment's network destinations to that list [2]. And you can start a cloud task from the terminal, list your recent cloud work and check its status without opening a browser [2].
Read the other way, the list also tells you when to stay local. If the task needs files that are not in a repository, a service inside your private network, or a tool only installed on your machine, the command line tool on your own computer is the better fit, because the cloud environment does not inherit any of those [4].
Who should choose Codex
Codex fits best where ChatGPT is already the company's AI tool. The admin controls, single sign-on, audit logs and retention settings a company set up for ChatGPT Business or Enterprise then cover the coding agent too, and the security review the company already did for ChatGPT covers most of the questions about Codex. For a company that has not chosen ChatGPT, buying seats to get cloud tasks is a larger step, and the comparison with Claude Code and GitHub Copilot becomes the main question.
Codex fits less well where a team wants one agent to use models from several providers. The pricing page lists OpenAI's own models for each plan, and the API key option follows "the API models available to your key" [1]. Agents such as Factory and Amp are built around choosing models from several providers, and our prices and plans page shows how that changes the bill.
Finally, Codex suits teams that want to move work between a phone, a laptop and the cloud. OpenAI lists iOS, web, desktop, command line and editor as places to work, and a cloud task started on one can be checked on another [1][2].
Integrations
Cloud tasks reach repositories through a connected GitHub or GitLab account [2]. Automatic code review on pull requests, the Linear integration and the GitHub integration are documented as running on what OpenAI now calls legacy cloud environments [3], so the setup for those may differ from the newer cloud environments. A Codex GitHub Action starts Codex from GitHub events, and Slack and Microsoft Teams reach it through the @ChatGPT app. OpenAI also runs a program for open-source maintainers that offers API credits and six months of ChatGPT Pro with Codex.
What to watch in a trial
Three things decide how well a Codex trial goes.
The first is the environment. Write the setup script so that dependencies install and tests run, then check one task end to end before running many.
The second is the AGENTS.md file. Name the exact lint, type check and test commands. OpenAI says the agent reads that file to find them [3], so a good file means the agent runs the checks your reviewers would run.
The third is the plan's limit. Because Codex shares its allowance with the rest of ChatGPT, a developer who uses ChatGPT heavily for other work will reach the limit sooner. Watch usage in the first week and decide whether Pro, credits or a Business seat fits. Write down, for each task, how long it ran, whether its checks passed in the cloud and whether a reviewer merged the pull request without changes. Those three numbers, collected the same way for every agent you test, are what make the comparison fair. A demonstration on a sample repository proves little; a week of your own tickets, checked by your own tests, tells you what the agent will do for your team.
Then compare the results with other agents using the two-week pilot plan. Reveneau writes all of its code with AI and checks every change against an eval suite written from the specification; in a trial, that means deciding the checks before the first task runs.
Best for
- Teams that already pay for ChatGPT Business or Enterprise and want a coding agent under the same contract and admin controls.
- Developers who start in the terminal and want to send longer tasks to the cloud and check them from a phone.
- Repositories on GitHub or GitLab with an AGENTS.md file that names the lint and test commands.
Avoid if
- You need cloud tasks billed only through an API key, with no ChatGPT plan.
- Your work needs the cloud machine to reach a private network that OpenAI's cloud cannot reach.
- You want to choose models from several providers inside one agent.
Check before you decide
- Which plan your workspace is on, and the included usage on the pricing page that day.
- The internet access setting for each cloud environment.
- Retention and data residency settings in your workspace, which OpenAI lists for Enterprise and Edu.
Common questions
Is Codex a separate product from ChatGPT?
Not for billing. OpenAI's pricing page says "ChatGPT Work and Codex share pricing, credits, and usage limits", so your ChatGPT plan includes a Codex allowance. Codex still has its own command line tool, editor extension and cloud tasks, which you start from ChatGPT on the web or desktop by choosing Cloud, or from the Codex command line.
Which ChatGPT plan do I need for Codex cloud tasks?
OpenAI's pricing page, read on 1 December 2026, lists cloud-based integrations such as automatic code review and Slack from Plus at $20 a month. Pro plans are $100, $200 or $500 a month. Business is $20 per user a month on an annual contract with two or more users, or $25 a month billed monthly.
Can I use Codex with only an API key?
Yes, in the command line tool, the software kit and the editor extension. OpenAI's pricing page says an API key gives "No cloud-based features (GitHub code review, Slack, etc.)" and that usage is billed at API prices. Cloud tasks need a ChatGPT plan, so teams that want both often combine seats with a key for CI.
What happens inside a Codex cloud task?
OpenAI's documentation says Codex creates a container, checks out your repository at the chosen branch or commit, runs your setup script, applies your internet settings, then runs commands in a loop: it edits code, runs checks and tries to validate its work. You review the changed files and then commit or open a pull request.
Can the Codex cloud agent reach the internet?
The setup script runs with internet access, so dependencies can install. OpenAI says agent internet access is off by default during the task, and you can switch on limited or unrestricted access in the environment settings. Network secrets let a task reach allowed HTTPS services without exposing credentials more widely.
Does OpenAI train on my code in Codex?
OpenAI's security page says Business, Enterprise and Edu workspace data is encrypted in transit and at rest and is not used to train OpenAI models by default. The Business plan card repeats that there is no training on business data by default. Personal plans have their own settings; check them in ChatGPT's data controls.
Can Codex work on GitLab repositories?
OpenAI's cloud page says Codex can check out repositories available through your connected GitHub or GitLab account. Code review on pull requests and the Linear integration are documented as running on legacy cloud environments, so check which integrations your workspace supports before you plan a workflow around them.
How does Codex use AGENTS.md?
OpenAI's documentation says that if your repository includes an AGENTS.md file, the agent uses it to find project-specific lint and test commands. Writing that file before a trial is one of the cheapest ways to improve results, because the agent then runs the same checks your developers run.
Can Codex keep working when my computer is off?
Yes, for cloud tasks. OpenAI's page says each cloud task has its own workspace and can keep working while your computer is asleep, and you can check it from the web, mobile or desktop app. Tasks run on your own computer stop when that computer stops.
How does Codex compare with Claude Code and Copilot?
All three run cloud tasks paid for by a subscription and open pull requests on GitHub. They differ in where tasks run, which plans include cloud work, how usage is counted and which git hosts work. Our [Codex, Claude Code and Copilot comparison](/guides/autonomous-coding-agents-compared/codex-vs-claude-code-vs-copilot) sets the documented differences side by side.
References
- [1] OpenAI, Codex pricing (read 1 December 2026): shared limits with ChatGPT Work, plan cards, API key limits
- [2] OpenAI, Codex Cloud (read 1 December 2026)
- [3] OpenAI, Codex Cloud (Legacy) environments (read 1 December 2026): how cloud tasks run, internet access off by default, AGENTS.md
- [4] OpenAI, ChatGPT Work cloud security (read 1 December 2026): VM-backed sandboxes, no training on business data by default
Related reading
What a buyer should do now that OpenAI has stopped reporting SWE-bench Verified
On 23 February 2026 OpenAI said it had stopped reporting SWE-bench Verified, and on 8 July 2026 it withdrew its recommendation of SWE-Bench Pro. This post gives OpenAI's figures with their limits, then shows how to choose a coding model on 100 of your own tasks.
How to brief an agent on a legacy codebase
An AI agent reads code fast but trusts it completely, so the brief you write before it works on a legacy system has to do the job a new hire's judgment would normally do.
More in The agents
Devin by Cognition: what it does, what it costs and where it runs
Devin, made by Cognition, is a coding agent that works on a task in its own cloud computer and returns a pull request. On 1 December 2026 Cognition's pricing page lists a Pro plan at $20 a month, a Max plan at $200, and a Teams plan at $80 a month for up to 100 users. Paid plans can link a personal ChatGPT plan so GPT model use is billed there. Cognition renamed its Windsurf editor to Devin Desktop in June 2026, so Devin is now one product with a desktop app, a command line tool and cloud sessions.
Factory and its Droids: plans, Missions and where the work runs
Factory sells coding agents it calls Droids. They run in a desktop app, a command line tool, a web app and a software kit, and they can be started from Slack, Linear, Jira, Microsoft Teams and Google Chat. On 1 December 2026 Factory's free plan lets you sign in with ChatGPT, GitHub Copilot, OpenRouter or your own API keys, and its paid plans start at $20 a month. Its Missions feature plans a large project as milestones and hands the work to an orchestrator that runs many Droids. TechCrunch reported a $1.5 billion valuation in April 2026.
Harness and Cosmos: coding agents inside a delivery platform
Harness sells a platform for building, testing and releasing software, and it adds coding agents in two ways. Its own pull request agents review code, fix failed builds and write missing tests, running as steps in a Harness pipeline. In October 2026 Harness also bought Cosmos, Augment Code's cloud platform that coordinates many coding agents, along with Augment's command line tool and code search engine. Harness's chief executive told SiliconANGLE that customers can keep their own coding tools, adopt Cosmos, or use both.
GitHub Copilot's cloud agent: two places to run, limits and AI credits
GitHub's coding agent is now called Copilot cloud agent, part of what GitHub calls Copilot in the cloud. It researches a repository, plans a change, edits files and runs tests in a cloud environment, then opens a pull request. It runs either inside GitHub Actions, where it can use your own runners, or in a cloud sandbox that can work across several repositories. On 1 December 2026 cloud work needs a paid plan: Pro at $10, Pro+ at $39 or Max at $100 a month, or Business at $19 and Enterprise at $39 per user a month.
Claude Code in the cloud: cloud sessions, GitHub Actions and scheduled tasks
Anthropic's Claude Code runs as an autonomous agent in three ways: cloud sessions that keep working after you close your laptop, a GitHub Action that answers @claude in issues and pull requests, and cloud scheduled tasks that start on a timer, an API call or a GitHub event. On 1 December 2026 Anthropic's documentation says cloud sessions come with the Pro, Max, Ultra and Team plans and some Enterprise seats, count toward the plan's usage limits, and carry no separate charge for the cloud machine. Cloning and pull requests in Anthropic's cloud require GitHub.
Cursor's cloud agents, now Grok Build: how they run and what changed
SpaceX announced in June 2026 that it would buy Cursor for $60 billion in stock, according to SiliconANGLE. On 1 December 2026 Cursor's documentation and pricing addresses lead to Grok Build pages, and Cursor's cloud agents are documented as Grok Build cloud agents. They run each task in its own virtual machine, clone from GitHub, GitLab, Azure DevOps or Bitbucket, and open a pull request for a person to review. Cloud agents are included from the $30 a month Premium plan upward, and third-party models are billed separately.
Amp and its orbs: cloud machines that sleep, and chat plans you can link
Amp is a coding agent whose cloud work happens in orbs: a fresh, isolated cloud machine for each thread that sleeps when the agent stops and costs nothing while asleep. On 1 December 2026 Amp's pricing documentation lists a free Hobby tier, Megawatt at $20 a month and Gigawatt at $200, with teams at no extra charge. You can link a ChatGPT or Claude subscription for model use, bring your own API keys, and run orbs on your own machines for free on every tier except Enterprise.
OpenHands: the open-source coding agent you can run yourself
OpenHands is an open-source platform for AI coding agents, published on GitHub under the MIT license. On 1 December 2026 its pricing page says the open-source version is free to self-host with your own model key and can run other agents such as Codex and Claude. A Teams plan costs $500 a month for 10 users with $50 for each extra seat, and adds user identity, single sign-on and budgets. OpenHands Cloud runs conversations and automations in on-demand sandboxes when you would rather not host them.
Google Jules is closing: the dates, the export and Antigravity's remote agents
Google's Jules, an asynchronous coding agent that worked on GitHub repositories in a cloud virtual machine, is closing. Google's notice says Jules became read-only after 11 November 2026 and winds down on 31 December 2026, as part of unifying Google's coding agent work. Your code and pull requests stay on GitHub, and a command line export saves Jules settings, memories, scheduled tasks and session history. Google names Antigravity as its agent-first platform. Antigravity Remote Agents run sessions in a Google-managed environment for personal Google AI Pro and Ultra accounts.