Claude Code and Codex in the cloud: how the limits work and where overflow work can go
Both run in the cloud already. The catch is that they share limits with the rest of your plan. Here is how that works and what to do about it.
Claude Code and Codex both offer cloud sessions that keep working after you close your laptop, and both draw on shared plan limits: Claude Code shares them with Claude chat on five-hour and weekly windows, and Codex shares one allowance with ChatGPT Work. When you hit a limit you can wait, upgrade, or buy extra usage at API rates. A separate workspace such as AutoAGI, which runs Claude Code, Codex, Hermes, OpenCode and DeepSeek in Cloud Harnesses on its own weekly dollar allowance, gives overflow work somewhere to go without touching those limits.
Read this first
How Claude Code works in the cloud
Anthropic describes Claude Code as an agentic coding tool that reads your codebase, edits files and runs commands, available in the desktop app, IDEs and the browser. Cloud sessions, started from the web, mobile or the desktop app, run on Anthropic's infrastructure. Per Anthropic's documentation, "the session keeps running after you close your laptop", and you can check on it or steer it from any device.
- Plans. Claude Code is included on Pro ($20 a month), Max 5x ($100) and Max 20x ($200), and on Team and Enterprise plans.
- Shared limits. Pro and Max plans share usage limits across Claude on the web, desktop and mobile and Claude Code. Cloud sessions share rate limits with the rest of your account, with no separate charge for the cloud VM.
- Windows. Usage resets on a rolling five-hour window, and Max plans also have a weekly limit that applies across all models.
- Idle expiry. Cloud sessions stop after a period of inactivity and the VM is reclaimed. Reopening restores history on a fresh VM, but background work still running at that point is not restored.
How Codex works in the cloud
Codex cloud tasks each run in their own sandbox, preloaded with your repository. OpenAI states that Codex and ChatGPT Work share one allowance and credit pool, that local messages and cloud chats share your plan's usage allowance, and that weekly limits may also apply. Codex is included across ChatGPT plans, including Free and Go with lighter limits, with Plus at $20 a month and Pro from $100 raising them.
During the agent phase, internet access is off by default unless the environment enables it.
The three side by side
| Claude Code cloud | Codex cloud | AutoAGI Cloud Harness | |
|---|---|---|---|
| Included on | Pro $20, Max 5x $100, Max 20x $200, Team, Enterprise | Across ChatGPT plans, with higher limits on Plus $20 and Pro from $100 | Founder $29, Pro $100, Max $200 |
| Allowance | Shared with Claude chat, five-hour windows plus a weekly limit on Max | Shared with ChatGPT Work, allowance windows plus weekly limits | Its own weekly allowance in dollars, $6.70, $23 or $46 |
| Beyond the limit | Wait, upgrade, extra usage at API rates, or API credits | Buy additional credits, upgrade, or use an API key | Move up a membership, or usage credits at face value when on sale |
| Engines | Claude Code | Codex | Claude Code, Codex, Hermes, OpenCode and DeepSeek |
| Output | Changes in your repository | Changes in your repository | Files in your library and, with a GitHub connection, pushes to a repository |
| Beyond code | Coding focus | Coding focus, plus Work in the same allowance | Research, writing, analysis, Jev scoring and 51 connected apps |
Anthropic and OpenAI figures from their own pages on September 29, 2026.
What to do when you hit a limit
- Wait for the reset. Five-hour windows reset quickly. Weekly limits take longer.
- Buy extra usage. Anthropic offers usage credits billed at standard API rates for Pro and Max. OpenAI sells additional credits on Plus and Pro.
- Upgrade a tier. Max and Pro tiers raise your limits, at a higher monthly price.
- Move overflow work to a separate workspace. Work that does not need your own local repository, such as a prototype, a research-backed build or a scheduled report, can run in an AutoAGI Cloud Harness on a different allowance.
Using AutoAGI as the overflow lane
Every AutoAGI membership includes every Cloud Harness. A harness run gets its own workspace and session, is metered on what the agent actually used within a compute ceiling that rises with your plan, and lands its output in your library. A run that hits its time limit keeps its workspace so the next one continues.
Connect GitHub and the run can push its files to a repository. Cloud Harness runs reach your apps through the AutoAGI gateway and never hold a provider token. Read how connected apps stay safe.
Questions
Does Claude Code keep running when I close my laptop?
Do Claude Code and Claude chat share usage limits?
Do Codex and ChatGPT Work share an allowance?
What can I do when I run out of Claude Code usage?
Can AutoAGI run Claude Code and Codex?
Should I cancel Claude Code or Codex if I use AutoAGI?
Sources
- Claude Code overview (Anthropic)
- Claude Code on the web (Anthropic) (cloud sessions)
- Using Claude Code with your Pro or Max plan (Anthropic Support) (dated August 19, 2026)
- Manage extra usage for paid Claude plans (Anthropic Support)
- Claude pricing
- ChatGPT plans and pricing (OpenAI) (covers Codex allowance)
- Codex cloud environments (OpenAI)
- AutoAGI pricing
Related comparisons and guides
AutoAGI vs ChatGPT: where an autonomous workspace beats an assistant, and where it does not
AutoAGI vs ChatGPT Work. ChatGPT Plus is $20 and runs OpenAI models on a shared allowance with Codex; AutoAGI is $29 to $200 with Claude, OpenAI, Gemini, Grok and weekly usage in dollars.
GuideAutonomous AI agents: what they are, how to choose one and what they cost
A plain guide to autonomous AI agents: a clear definition, how they differ from chat assistants, the criteria that matter when choosing one, how usage is metered and which products fit which job.
PricingAutoAGI pricing: Founder, Pro and Max
AutoAGI memberships start at $29 a month. Every plan includes every model, every Cloud Harness, Jev analysis and 51 connected apps. Usage is stated in dollars and resets every 7 days.