← Blog
Engineering

Codex Cloud: setup, pricing, limits and deployment

Yura Dubinin
Yura Dubinin

Codex Cloud runs Codex coding tasks on virtual machines managed by OpenAI, so the work keeps going while your laptop is asleep. You sign in to ChatGPT, choose Work in > Cloud, pick an environment, and describe the task. Since OpenAI's DevDay on September 29, 2026, you can also publish a reusable environment, and every new task starts from that prepared setup. On Plus each task gets 2 vCPU, 8 GiB of memory and 8 GiB of disk. On Pro, Business and Enterprise it gets 4 vCPU, 16 GiB and 32 GiB. OpenAI's pricing page lists Codex on the web from ChatGPT Plus at $20 a month (checked November 12, 2026).

If you need a machine you control, with your own ports, a desktop browser or longer runs, run Codex CLI in Lizard Sandboxes: lizard sandbox create -t codex -s small --timeout 3600000. Each sandbox is a Firecracker microVM. A Small costs $0.0162 an hour on Lizard Pro; trial sandboxes are deleted after 1 hour at the latest.

For Codex Cloud login, sign in to ChatGPT. On the web or in the desktop app, choose Work in > Cloud. On mobile, open Codex and choose an available environment.

Codex Cloud illustration showing a reusable environment and separate coding workspaces

What changed in Codex Cloud in 2026?

OpenAI rebuilt cloud environments in 2026. Older guides, including the first version of this post, describe parts that no longer apply. These are the changes, all checked against OpenAI's docs on November 12, 2026:

ChangeWhat it means for youSource
Reusable cloud environments (DevDay, September 29, 2026)Codex prepares and tests your setup, you publish it, and new tasks start from the prepared filesystemDevDay 2026
Default environmentWhere it is available, you can start a task without choosing a repositoryCodex Cloud
Codex Cloud (Legacy)Still runs Code Review and the Linear and GitHub integrations. OpenAI plans to deprecate itCloud environments
GitLab.com in the repository pickerGitLab support entered beta on August 19, 2026 on all ChatGPT plansChangelog
Private networking and cloud identitiesTailscale VPN, OIDC for AWS, Google Cloud and Azure, and a Personal vault for your own secretsCloud environments
GPT-5.5 retired from Codex with ChatGPT sign-inRetired on October 14, 2026. Current models include GPT-6.1 Sol and GPT-6 LunaPricing

Legacy environments ran a setup script in a container and cached that container for up to 12 hours. Their secrets were available only to setup scripts. The new environments keep each task's saved VM state for up to seven days and pass network secrets through a proxy. Before you follow an older guide, check which of the two experiences it describes. Legacy guide

What we tested

On October 17, 2026, we ran the setup and /healthz prompts below with Codex CLI 0.159.2 in a Small Firecracker sandbox on Lizard. The fixture used Node.js 22.23.2 and npm 10.9.8. Codex installed from the lockfile, added the endpoint, and passed both tests: the new HTTP 200 response and the existing 404 response. The project's build command checked JavaScript syntax and passed.

We also confirmed that codex cloud list --limit 5 authenticated and returned exit code 0. On November 12, 2026, we checked the codex cloud subcommands and flags with --help in Codex CLI 0.167.2. We have not submitted an OpenAI Cloud task or created an environment in its web interface. Those steps follow OpenAI's documentation.

What does Codex Cloud do?

Codex Cloud gives each task its own workspace on an OpenAI-managed VM. Codex can inspect a repository, investigate a bug, change code and run the project's tools there. A cloud environment holds the prepared repositories, dependencies and access settings.

This suits work you can describe and verify: fix a failing test, add an API endpoint, or update a dependency and check the build. For a change that needs several rounds of review, continue in the same task so Codex keeps its working files.

You do not always need a repository. With the default environment you can ask for something like "Write a Python script that finds duplicate files by content. Test it on sample files." If the task later needs existing code, tell Codex which repository to clone. Codex Cloud overview

How do you set up Codex Cloud?

Create the environment on the web or in the desktop app. Have your GitHub or GitLab.com repository, its build instructions, and any development credentials ready. You can also start from Settings > Codex Cloud > Environments > Create environment.

1. Connect your repository

Choose Work in > Cloud > Select environment > Create environment. Connect GitHub if prompted, or select your GitLab.com connection if it appears in the picker. Select the repositories the project needs, then choose Get started.

For the first setup, pick a repository whose tests you already know how to run. That gives you a result to compare with the cloud setup.

2. Prepare and check the tools

Codex inspects the project, installs dependencies and tools, and tests the workflow. You do not write an install script yourself. Supply missing details when it asks, and name the runtime version if your project depends on one.

For a Node.js project, you could ask:

Prepare this repository for development. Use the Node.js version and
package manager specified by the project. Install dependencies from the
lockfile, identify the test and build commands, and run both.

Report each command and its result. If a check fails, show the error and
explain what needs to change before I publish this environment.

Codex can record the tested setup as an Install script for dependencies and a Start skill for starting services and checking that they are ready. Review those commands, especially if the project needs a database or a private package registry.

If initial setup fails, select Try again to retry with the same repositories. If the fix needs a change to source files, a package manifest or a lockfile, make it in a coding task first, then return to setup.

3. Publish the environment

Review the setup report and resolve failed checks. Save the configuration, then select Publish. Wait for Environment published before you start a task.

Saving stores configuration. Publishing captures the prepared filesystem for new tasks. Sharing controls who can use the environment. These are separate actions in the current cloud environment workflow.

4. Give Codex one testable change

Start a new task from the published environment. Describe the expected behavior and how to check it. For example, adapt this prompt to a web API repository:

Add a GET /healthz endpoint using this project's existing routing style.
It should return HTTP 200 and JSON {"status":"ok"}.
The endpoint must not expose configuration or credentials.

Add a test that checks the status code and response body. Run that test
and the existing test suite. Show the commands, results, and changed files.
Do not deploy or change database schemas.

An HTTP 200 alone does not show that the rest of the application works, so keep the existing suite in the acceptance criteria.

5. Review the result

Read the diff and test output before you accept the change. Check that Codex ran the commands it reports and that the tests cover the requested behavior. Look for skipped checks and unrelated file changes.

Ask for corrections in the same task, then commit the work or open a pull request. Run your normal CI checks before merging.

How do environments and saved task files work?

An environment supplies the starting setup. A task keeps its own changes after it starts.

ActionResult
Start a new taskA separate workspace from the published setup
Resume the same taskThat task's saved files, uncommitted changes and installed tools
Edit and republish the environmentA new starting setup for new tasks
Return to an existing task after republishingThat task keeps its own state

Repository refreshes run in the background and keep dependency caches without rerunning installation or startup commands. By default, a task's saved VM state can be recovered for up to seven days after you last start a turn or resume the task. This is a recovery window, not a promise of continuous execution. Commit important work to Git. Saved state

Suppose you install a missing tool during a task. That fixes the current task only. To add the tool to future tasks, open Settings > Codex Cloud > Environments, choose Edit from the environment's menu, let Codex prepare and test the change, and select Republish.

How much does Codex Cloud cost?

Codex Cloud is part of ChatGPT plans, with no separate cloud fee. OpenAI's published US prices, checked November 12, 2026:

PlanPriceCodex Cloud
Free$0Not listed. Codex in the desktop app only, GPT-6 Luna, subject to rollout
Go$8 per monthNot listed. Codex in the desktop app only, GPT-6 Luna, subject to rollout
Plus$20 per monthCodex on the web, CLI, IDE extension and iOS
Pro$100, $200 or $500 per monthEverything in Plus. Ultrafast mode on Pro $500
Business$20 per user per month billed annually, 2+ users; $25 billed monthlyLarger VMs for cloud chats
Enterprise and EduContact salesLarger and custom VMs on request

Signing in to Codex with an OpenAI API key does not include cloud features. API-key usage is billed at API rates. Codex pricing

What are the Codex Cloud usage limits?

Codex Cloud has no fixed number of tasks per plan. Local messages and cloud chats share one plan allowance, and ChatGPT Work shares it too. OpenAI says cloud tasks may use more of the allowance than local messages. Model choice, context, reasoning and tool use all change how much a task consumes.

OpenAI publishes estimates of local messages per five-hour period for Plus and Standard Business. For example, GPT-6.1 Sol is listed at 15 to 160 and GPT-6 Luna at 350 to 3,000. Weekly limits may also apply. Pro plans currently have no five-hour limit. Fast mode uses included usage 2.5 times as fast as Standard mode.

Check the usage dashboard, or run /status in Codex CLI, for your remaining allowance and reset times. Plus and Pro users who reach the limit can buy additional ChatGPT credits. Business, Edu and Enterprise workspaces with flexible pricing can buy workspace credits. Usage limits

How do tasks reach private services and secrets?

A private registry needs both network access and a valid credential. Allowing its hostname only solves the network part.

SettingUse it when
Environment variableA program needs to read the value directly
Network secretA credential should reach an allowed HTTPS service through the proxy
Personal vaultEach person supplies their own value for a shared environment
Tailscale VPNTasks need services on your private network, including TCP services such as databases
OIDC connectionTasks need short-lived credentials for AWS, Google Cloud or Azure

With a network secret, programs receive a placeholder. The proxy substitutes the credential for requests to allowed destinations over HTTPS on port 443. Saving an environment-owned network secret adds its domains to the allowed list. Network secrets

Internet access is set per environment. Turn on full public access, or keep it restricted and allow the Package managers preset plus your own domains. The VPN works independently of these settings. Tailscale is the only supported VPN provider today. Connect to services

For a download failure, inspect the failed URL. A package registry and its download host may need separate entries. For an authentication failure, check the credential, its scope and the destination. Keep development credentials limited to the services the task needs.

What machine does a Codex Cloud task get?

The cloud environment guide lists these default resources per task:

Plan groupvCPUsMemoryDisk
Plus and Edu Plus28 GiB8 GiB
Pro, Business and Enterprise416 GiB32 GiB
Edu and Edu Pro416 GiB32 GiB

Enterprise customers can ask for larger VMs and custom specifications. On Plus, check disk use before builds that download large dependencies or produce large artifacts.

What does Codex Cloud not support yet?

OpenAI lists two capabilities as unsupported in cloud environments: computer use and self-hosted GitHub Enterprise Server. Skills stored in your repository are available to tasks. Personal skills from your local computer are not synced. Current limitations

The automatic project setup in the desktop app covers GitHub.com repositories only, not GitLab. For a GitLab.com repository, create a reusable environment on the web or in the desktop app.

If your acceptance test needs someone to click through the app in a browser, arrange a separate test environment. A passing unit test cannot show whether a button works in the rendered page.

Codex Cloud vs Codex CLI: which should you use?

Use Codex Cloud for background work from a reusable project setup on OpenAI's machines. Use Codex CLI when the work needs your local files, your own tools, or a machine you configure. The CLI can also submit and manage cloud tasks.

WorkflowWhere commands runUseful for
Codex Cloud taskOpenAI-managed VMBackground work from a reusable project setup
Codex CLI in a local checkoutYour computerWork that needs your local files and tools
Codex CLI on your own remote machineThe machine you provideA runtime you configure and operate

In Codex CLI 0.167.2, codex cloud is marked experimental. It has exec, status, list, apply and diff subcommands. The CLI reference documents them.

codex cloud
codex cloud exec --env YOUR_ENVIRONMENT_ID --branch main \
  "Run the project's tests and report failures. Do not change files."
codex cloud list --limit 5
codex cloud diff TASK_ID
codex cloud apply TASK_ID

Replace YOUR_ENVIRONMENT_ID with an environment available to your signed-in account, and TASK_ID with a task from codex cloud list. --attempts asks for several attempts (best of N). exec exits non-zero if the submission fails. Check the task's results afterward.

For scripts that run Codex on the machine where the CLI is installed, see our codex exec deployment-check example. For Codex's local sandbox modes and --yolo, see Codex sandbox. If you are weighing Codex Cloud against Cursor's hosted agents, see Cursor Cloud Agents.

Where does Lizard fit after a cloud task?

Once you accept a change, your application needs a deployment target. A practical sequence: review the Codex Cloud diff, merge it through your normal checks, then deploy that commit to Lizard with Lizard CLI. Apps and databases run as separate resources from development sandboxes.

To run Codex on a machine you control, start Codex CLI in Lizard Sandboxes. Each sandbox is a Firecracker microVM with its own kernel, a shell, files and HTTPS previews. The desktop template adds a desktop with a browser.

lizard sandbox create -t codex -s small --timeout 3600000

The codex template ships Codex CLI 0.159.2 as of November 12, 2026. Run npm i -g @openai/codex inside the sandbox if you need the newest release. You manage the sandbox's credentials, lifetime and saved work, and you pay for model usage under OpenAI's terms. Lizard does not add capacity to your Codex Cloud allowance.

Lizard Pro costs $19 per month and includes $19 of usage. A Small sandbox costs $0.0162 per hour for 2 vCPU, 4 GB RAM and a 20 GB disk, billed per second while it runs, idle time included. Usage beyond the included amount is pay as you go. Persistent Volumes cost extra. OpenAI model usage is separate. Lizard pricing

The 7-day trial runs 1 Small sandbox at a time and deletes every trial sandbox 1 hour after it starts at the latest. Longer runs need a paid plan. Limits

If you are building a product that creates a workspace for each customer, our Lovable clone tutorial shows a tested Lizard SDK flow for code execution, private previews and saving project files.

Common Codex Cloud setup problems

ProblemWhat to check first
Cloud controls are missingThe signed-in account, plan, selected workspace and admin access settings. Free and Go are listed with desktop-app access only
A repository is missing from the pickerYour GitHub or GitLab.com permissions and the repositories selected for the environment
Setup failsThe first failed command in the setup conversation; fix it and select Try again
A dependency download failsThe exact registry and download hostnames, then authentication
A private service is unreachable over the VPNThat the client uses the environment's proxy, then Tailscale routes, access rules and split DNS
New tasks still lack a tool you installedWhether you edited and republished the environment
The environment is not offered for tasksAn Unpublished badge in Settings > Codex Cloud > Environments
Uncommitted files seem to be missingWhether you reopened the original task instead of starting a new one

Follow the troubleshooting guide for the failing step. After a setup change, verify it in a new task from the republished environment.

Related guides: Codex sandbox: modes, --yolo, Docker and cloud · Codex Exec: automate deployment checks from the terminal · AI sandbox: isolation, code execution, and costs

Build with AI. Ship with Lizard

You don't need a platform team to go live. Your whole cloud, one CLI command away.

Start 7-day trial
Services
—
Add-ons
—
Deployments
—
Sandbox starts
—

We use cookies for essential site functionality and analytics. See our Cookie Policy.