Table of Contents
- What Codex cloud actually is (and the two things it gets confused with)
- How a Codex cloud task runs, step by step
- Which ChatGPT plans include Codex cloud, and what it costs
- Which model Codex cloud uses
- The Codex cloud limits people actually hit
- Codex cloud vs local Codex vs Codex Remote
- When you want Codex on a computer that stays on
- Option 1: your own VPS
- Option 2: a persistent instance with Codex preinstalled
- Setting up Codex cloud in five minutes
- Codex cloud FAQ
- Is Codex cloud free?
- Can I use Codex cloud with an OpenAI API key?
- Does Codex cloud keep my environment between tasks?
- Can Codex cloud run on a schedule?
- What is the cheapest way to run Codex 24/7?
- Can I use my ChatGPT plan on an Agent37 instance?
- Does Agent37 sell Codex?
- The bottom line on Codex cloud
What Codex cloud actually is (and the two things it gets confused with)
What people mean | Where the work runs | What stays between tasks |
Codex cloud (OpenAI's product) | An isolated workspace on OpenAI's servers, cloned from a cloud environment you publish | The environment's filesystem is reusable across tasks; a task's saved VM state is recoverable for up to 7 days |
Codex Remote (phone or second device) | Your own connected Mac or PC, which must stay awake, online, and signed in | Everything, because it is your machine |
Codex on a persistent instance (a VPS, or a hosted instance like Agent37) | A computer you control that never turns off | The checkout, caches, installed toolchains, login, and sessions |
How a Codex cloud task runs, step by step
- You create a cloud environment by talking to Codex: it checks out the GitHub repositories you select, installs dependencies and tools, and tests the workflow. The result is recorded as an install script plus a start skill you can edit.
- You publish the environment. Publishing captures the prepared filesystem, so tasks reuse it instead of rebuilding from scratch, and a background repository refresh keeps checkouts current while preserving dependency caches. Changing the setup later means editing and republishing.
- Each task runs in its own isolated workspace cloned from the published environment, on a published VM spec: 2 vCPUs, 8 GiB of memory, and 8 GiB of disk on Plus; 4 vCPUs, 16 GiB, and 32 GiB on Pro, Business, Enterprise, and Edu. At launch there is no separate VM charge.
- Internet access follows the environment's setting: Package managers, Custom domains only, or All (unrestricted), with all outbound traffic behind OpenAI's proxy. Secrets are now "network secrets": programs see a placeholder and the proxy substitutes the real value only for allowed HTTPS destinations. Environments can even reach private networks over a configured Tailscale VPN.
- The task returns an answer plus a diff you can open a pull request from, and its saved VM state stays recoverable for up to seven days after the last turn, so follow-ups resume instead of restarting.
codex cloud subcommand (exec, status, list, apply, diff) that submits work to an environment with --env, --branch, and --attempts for best-of-N runs of up to four; OpenAI's source still labels it experimental. Enterprise workspaces can also hand work to Codex by mentioning @ChatGPT in Slack or Microsoft Teams.Which ChatGPT plans include Codex cloud, and what it costs
Plan | Price | Codex cloud |
Free | $0 | GPT-6 Luna in the desktop app only (subject to rollout); no CLI, web, or cloud |
Go | $8/mo | Same as Free: Luna in the desktop app; full Codex starts at Plus |
Plus | $20/mo | Included; local messages and cloud tasks share one five-hour window, plus weekly limits |
Pro | $100, $200, or $500/mo | Included; no five-hour limit on Pro currently. Pro 200's allowance drops from 20x to 10x Plus on October 30; Pro 500 adds Ultrafast Astra |
Business | $20 per user/mo billed annually (2+ users), $25 monthly | Included; Standard Business shares the Plus five-hour window, with larger VMs for cloud tasks |
Enterprise / Edu | Contact sales | Included; flexible-pricing workspaces have no fixed rate limits; without it, per-seat limits match Plus for most features |
API key (pay as you go) | Token pricing | No cloud features. CLI, SDK, IDE, and desktop-app local chats |
/status in the CLI.Which model Codex cloud uses
The Codex cloud limits people actually hit
- No access to your machine. Cloud tasks use what is in the cloud environment: your local files, running dev servers, and personal local skills are not transferred. The relaunch did open one door: internal APIs and package registries can be reached over a Tailscale VPN configured in the environment settings. Your laptop still is not on the menu.
- Task-scoped, not a computer. The relaunch fixed the old rebuild-everything pain: tasks reuse the published filesystem, and a task's saved VM state is recoverable for up to seven days. But a workspace is still not an always-on box. Nothing runs between tasks, changing the setup means republishing the environment, and anything you want to keep has to land in the diff or the environment.
- Internet is restricted by default. The presets are now Package managers, Custom domains only, or All (unrestricted), behind OpenAI's proxy; opening it up is still the security decision the docs warn you about.
- Fixed compute specs. OpenAI now publishes them: each Plus task gets 2 vCPUs, 8 GiB of memory, and 8 GiB of disk; Pro, Business, Enterprise, and Edu tasks get 4 vCPUs, 16 GiB, and 32 GiB. Larger or custom VMs are an Enterprise conversation. No per-task timeout is published; at the 2025 launch OpenAI said most tasks take one to thirty minutes.
- Quota burn. The pattern in the issue tracker has not changed with GPT-6: one open September report shows a single GPT-6 Astra task in the desktop app consuming 89% of a Plus five-hour window (2.4 million input tokens) in one prompt. Cloud tasks draw from the same pool as everything else you do, and OpenAI says they may draw more.
- Scheduling is thin. ChatGPT scheduled tasks can run Codex on a timer, and on Gmail, Slack, and GitHub events on Plus, Pro, Business, Enterprise, and Edu. A task cannot combine an event trigger with a time schedule, desktop scheduled tasks need the app open, and the CLI and IDE have no scheduler at all.
Codex cloud vs local Codex vs Codex Remote
ã…¤ | Codex cloud | Local Codex (CLI, IDE, app) | Codex Remote |
Runs on | An isolated VM workspace on OpenAI's servers | Your machine | Your machine, driven from your phone or another device |
Sees | Your GitHub repos plus allowed network destinations | Your filesystem, servers, MCP servers | Same as local |
State between tasks | Published environment filesystem; task state recoverable 7 days | Persistent; codex resume picks up sessions | Persistent |
Model choice | Pickable; GPT-6.1 Sol is the new recommended model | GPT-6 Astra, 6.1 Sol, Sol, Luna (GPT-5.6 family during rollout) | Same as local |
Sign-in | ChatGPT plan only | ChatGPT plan or API key | ChatGPT plan |
Needs your laptop on | No | Yes | Yes, awake and signed in |
Best for | Parallel, bounded, PR-shaped tasks | Interactive work and anything touching local state | Checking on a running job from the couch |
When you want Codex on a computer that stays on
- The work spans days: a migration, a full test suite, a refactor that keeps needing the same warm caches and installed toolchains.
- You want it unattended on a schedule: nightly dependency bumps, a code-health report before standup, a cron job that reviews yesterday's PRs.
- The agent needs a real network position: a database it can reach, a staging server, an internal API, tools that are not on GitHub.
- You are shipping Codex to other people, and each team or customer needs its own isolated box.
Option 1: your own VPS
curl -fsSL https://chatgpt.com/codex/install.sh | sh, currently 0.159.3), run codex login --device-auth because there is no browser on a server (device code login must be enabled in your ChatGPT security settings first), and keep the session alive in tmux. DigitalOcean sells this as a Marketplace 1-click (Ubuntu 24.04, Codex CLI preinstalled, 1 GB minimum) plus a Codex plugin that provisions a Droplet from inside a chat. Three caveats: the 1-click image ships Codex CLI 0.154.0, a few releases behind current, with an update script included; it comes pointed at DigitalOcean's own Serverless Inference by default, whose catalog default is GPT-5.5 (kept or changed on DigitalOcean's schedule, not OpenAI's), so run codex login yourself if you want usage billed to your OpenAI account; and Droplets start at $4/mo for a 512 MB box that is below the image's own minimum, so budget a size up. Prefer a container? Our Codex Docker guide has a tested Dockerfile and the in-container sign-in flows.Option 2: a persistent instance with Codex preinstalled
agent37-codex. One POST and the instance comes up with OpenAI's Codex CLI installed:curl -X POST https://api.agent37.com/v1/instances \
-H "Authorization: Bearer sk_live_..." \
-H "Content-Type: application/json" \
-d '{ "template": "agent37-codex" }'codex login --device-auth; the login is stored on the instance volume, so it survives restarts and updates. Or, if your app provisions instances headlessly, pass OPENAI_API_KEY as instance env on the create call and the image activates it at boot. From there you talk to Codex over HTTP: POST /v1/responses on the instance URL runs a turn, streams it as server-sent events if you ask, and returns a session_id you reuse to continue the thread. GET /v1/models?agent=codex lists Codex's live model catalog, and model and reasoning_effort are set per turn.- The disk persists like a VM. Checkouts, caches, installed packages, and your login stay put across stop, start, and resize.
- It runs unattended. Give the instance a cron schedule and the run starts warm; it never needs your laptop, and a sleeping instance bills only its disk.
- Real isolation per box. Every instance runs under gVisor with a hard disk quota, on the fleet that runs roughly 1,000 live instances today. SSH, scp, and VS Code Remote SSH work on it.
- Bring a different model if you want. Set
OPENAI_BASE_URLin the instance env and Codex talks to any Responses-compatible endpoint. Codex is tuned for OpenAI models, so expect rough edges with other families.
- It costs less than you would guess. Pricing is one metered rate: $0.80 per vCPU, $0.70 per GB of RAM, and $0.09 per GB of disk per month, billed per minute from a prepaid balance. The 2 vCPU / 4 GB floor shape is $4.76/mo always-on, a sleeping instance bills disk alone, and new workspaces get a $5 starter credit once a card is on file (nothing is charged), roughly a month of the cheapest instance. Full numbers on the pricing page.
agent37-codex image is lean, with no browser and no desktop. Signing in with a ChatGPT plan needs a human in the terminal once for the device code (the fully headless path is an API key). And a 24/7 box does not get you out of OpenAI's usage windows: a Plus login on an always-on instance is still a Plus login, so unattended, high-volume work belongs on an API key.Setting up Codex cloud in five minutes
- Go to chatgpt.com/codex and sign in with your ChatGPT account (Plus or above for cloud).
- Connect GitHub and choose the repositories Codex may access. The relaunched environments are GitHub-only for now; GitLab and self-hosted GitHub Enterprise are on the roadmap, and GitLab still works on the legacy flow.
- Create a cloud environment by describing your setup: Codex checks out the repos, installs dependencies and tools, records the install script and start skill, and you publish the result. Edit and republish when the setup changes.
- Describe the result you want and let it run in the background; you can start and continue tasks from desktop, web, or mobile. From a terminal,
codex cloud exec --env <name> --attempts 3does the same with best-of-three.
- Review the diff and open the pull request. Put durable instructions in AGENTS.md rather than in chat; repo-stored skills are available to cloud tasks, personal local skills are not.
Codex cloud FAQ
Is Codex cloud free?
Can I use Codex cloud with an OpenAI API key?
Does Codex cloud keep my environment between tasks?
Can Codex cloud run on a schedule?
What is the cheapest way to run Codex 24/7?
agent37-codex template runs on metered compute: the 2 vCPU / 4 GB shape is $4.76/mo always-on, with model usage billed by OpenAI to your own account. New workspaces get a $5 starter credit once a card is on file (nothing is charged), which covers roughly a month of the cheapest instance.Can I use my ChatGPT plan on an Agent37 instance?
codex login --device-auth once in the instance terminal and approving the code with your ChatGPT account; the login persists on the instance volume. Your plan's usage windows still apply. For unattended provisioning, pass an API key instead.Does Agent37 sell Codex?
The bottom line on Codex cloud
agent37-codex template on Agent37 Cloud: always-on from $4.76/mo, one API call to deploy, and the $5 starter credit (card on file, nothing charged) covers roughly your first month.