The agents

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.

Published December 1, 2026. Editorial.

Key takeaways

  • Anthropic says a cloud session "counts toward your plan's usage limits" and that "there's no separate charge for the cloud VM".
  • Cloud sessions are available on Pro, Max, Ultra and Team plans, and for Enterprise users with premium seats or Chat plus Claude Code seats.
  • The Claude Code GitHub Action can authenticate with an API key or with an OAuth token from a Claude subscription on Pro, Max, Ultra, Team or Enterprise.
  • In Anthropic-hosted cloud sessions, GitHub credentials stay encrypted on Anthropic's servers and never enter the session's machine, according to Anthropic.
  • Cloud sessions share rate limits with all of an account's other Claude use, so running tasks in parallel uses the plan's limits faster.

Claude Code began as a coding agent in the terminal. In 2026 it also works without you at the keyboard, in three ways that matter for this guide: cloud sessions, the Claude Code GitHub Action, and cloud scheduled tasks. All three run the same agent, and all three can be paid for by a Claude subscription. This page describes them as Anthropic's documentation and pricing page describe them on 1 December 2026. Every product fact is Anthropic's statement.

One note on naming, because Anthropic itself flags it: several products share the Claude Code name [2]. Code Review, which reviews every pull request on Team and Enterprise plans, is separate from the GitHub Action, and both are separate from cloud sessions. When you read a review of "Claude Code", check which one it means.

Cloud sessions: the agent on Anthropic's machines

Anthropic defines a cloud session as "a Claude Code session that runs on cloud infrastructure. By default it runs on infrastructure Anthropic manages, or on your organization's self-hosted environment when routed there" [1]. It keeps running after you close your laptop, and you can check on it or steer it from any device [1].

You can start one from five places [1]:

  • The browser at claude.ai/code, which Anthropic also calls Claude Code on the web.
  • The Code tab in the Claude mobile app.
  • The desktop app, by choosing a cloud environment.
  • The terminal, with claude --cloud and a task description.
  • A cloud scheduled task, where each run is a cloud session.

The cost model is the simplest in this guide. A cloud session "counts toward your plan's usage limits alongside the rest of your Claude and Claude Code usage, and there's no separate charge for the cloud VM" [1]. You pay for the plan, and the plan's limit is the budget.

Claude plan Price on 1 December 2026 Cloud sessions
Free $0 Not listed
Pro $20 a month billed monthly, $17 a month on an annual plan Yes
Max $100 a month Yes
Ultra $200 a month Yes
Team $25 or $125 per seat a month billed monthly ($20 or $100 annually) Yes
Enterprise $20 per seat a month plus usage, annual, 20-seat minimum Premium seats or Chat plus Claude Code seats

Sources: Anthropic's cloud documentation for which plans include cloud sessions [1], and Claude's pricing page for prices [4].

How a cloud session reaches your code

Every cloud session runs in a cloud environment: a saved configuration of network access, environment variables and setup scripts [1]. New users get a Default environment with Limited network access [1]. Change the access level on purpose, and only as far as the task needs.

To clone and push, the session needs GitHub access, which you grant in one of two ways [1]. The Claude GitHub App, installed on chosen repositories, also switches on Auto-fix for pull requests in those repositories. The /web-setup command sends your local GitHub command line token to your Claude account and reaches any repository that token can reach.

"In Anthropic-hosted environments, your GitHub credentials stay encrypted on Anthropic's servers and never enter a session's VM. GitHub operations from the VM go through the GitHub proxy, which attaches the credential on the server side" [1]. A task can push a branch, but it cannot read or copy the token that allows the push. In our reading, that limits the damage if text hidden in a file or a web page tries to make the agent leak a secret, because the token is not on the machine to leak.

Moving work between your terminal and the cloud

Anthropic's documentation describes a habit that works well with any agent: plan where you can watch, execute where you cannot [1]. Start Claude in plan mode in your terminal, where "Claude reads files, runs commands to explore, and proposes a plan without editing source code". Save the agreed plan to the repository, commit and push it, then start a cloud session to carry it out [1]. Each --cloud command starts its own session, so several tasks can run at the same time [1].

One detail catches people out: the cloud machine "clones your current directory's GitHub remote at your current branch, not your local checkout, so push first if you have local commits" [1]. Work that exists only on your laptop is invisible to the cloud session.

The GitHub Action: @claude in issues and pull requests

The Claude Code GitHub Action runs Claude Code inside your own GitHub Actions workflows. "Mention @claude in a pull request or issue comment to have Claude analyze code, implement changes, and push commits" [2]. It is built on the Claude Agent SDK, Anthropic's kit for building agents [2].

Because it runs as your workflow, you decide the runner, the permissions and the triggers in a file you can read. Authentication is the detail buyers ask about most. The workflow can use either an Anthropic API key or "an OAuth token that authenticates with your Claude subscription, available on Pro, Max, Ultra, Team, and Enterprise plans" [2]. Amazon Bedrock, Google Cloud's Agent Platform and Microsoft Foundry are also supported for companies that buy Claude through those clouds [2]. Our page on chat plans and API keys compares this with the other agents.

Scheduled tasks: agents that start themselves

A cloud scheduled task, which Anthropic used to call a routine, is "a saved Claude Code configuration: a prompt, one or more repositories, and a set of connectors, packaged once and run automatically" [3]. It runs on Anthropic-managed cloud infrastructure, and it can have three kinds of trigger [3]: a schedule (hourly, nightly, weekly, or once at a set time), an API call to the task's own endpoint with a bearer token, or a GitHub event such as a pull request or a release. One task can combine triggers, for example a review that runs nightly, after each deploy and on every new pull request [3].

Related features that change how teams use it

Three more features sit close to cloud sessions, and each changes the size of work you can hand over.

Projects let you give Claude "a stream of related tasks in one conversation and let it run them as parallel cloud sessions", in the words of Anthropic's documentation index [5]. One conversation then coordinates several pull requests, which suits a set of related changes across repositories. Threads in a project need the Claude GitHub App on each repository they clone [1].

Code Review is a separate product for Team and Enterprise plans. Anthropic describes it as Claude reviewing each change in a GitHub pull request, checking its own findings and commenting on the lines it found [5]. It has its own costs and usage settings, documented apart from cloud sessions.

Remote Control works the other way round. It keeps a session running on your own computer and lets you continue it from a phone, a tablet or any browser [5]. Use it when the work needs files, tools or a network that only your machine has; use a cloud session when your machine should be free.

Self-hosted environments are the option for companies that need the agent's machine inside their own network. Anthropic's cloud page says a cloud session runs on your organization's self-hosted environment when routed there [1], and its limits section points GitLab and Bitbucket users to the same option [1]. Ask Anthropic for the current requirements before you plan around it, since the deployment page sets out what your machines must provide.

Limits to plan around

Anthropic lists the constraints in one section [1]. Cloud sessions "share rate limits with all other Claude and Claude Code usage within your account", so parallel tasks use the limit faster. Commands and setup hooks have timeouts, and a setup script is cached only when it finishes in roughly five minutes. You can pull a cloud session into your terminal only when signed in to the same account. And "repository cloning in Anthropic-hosted environments and pull request creation require GitHub"; GitHub Enterprise Server works on Team and Enterprise plans, and other hosts need a local bundle or a self-hosted environment [1].

What to watch in a trial

Run the trial on a plan and account separate from the developers' daily interactive work, or the shared limit will mix the two and hide what the agent costs. Set each environment's network level before the first task. Write the project's instructions so the agent knows the build and test commands. Then measure what the two-week pilot plan measures for every agent: tasks finished, pull requests merged without changes, and reviewer time.

Anthropic's documentation describes these features by name and plan, and both change often. Record the plan, the environment settings and the date when a trial starts, so its results can be compared with a later one.

Best for

  • Developers and teams already on a Claude Pro, Max, Ultra or Team plan who want background agents without a second bill.
  • Teams that want an agent to answer @claude mentions in GitHub issues and pull requests through a workflow file they control.
  • Teams that plan locally in the terminal and want to hand the execution of an agreed plan to the cloud.

Avoid if

  • Your repositories are on GitLab or Bitbucket and you cannot use a self-hosted environment or upload a bundle.
  • Your developers already use most of their plan's limit on interactive work, since cloud tasks share it.
  • You need the agent to use models from several providers in the same session.

Check before you decide

  • The network access level of each cloud environment, which starts at Limited in the default environment.
  • Who installed the Claude GitHub App on which repositories, since Auto-fix and Projects depend on it.
  • Whether your Enterprise seats are the kind that include cloud sessions.

Common questions

What is a Claude Code cloud session?

Anthropic's documentation describes it as a Claude Code session that runs on cloud infrastructure, by default on machines Anthropic manages, or on your organization's self-hosted environment. It keeps running after you close your laptop, and you can check on it or steer it from the browser, the Claude mobile app, the desktop app or the terminal.

Does a Claude Code cloud session cost extra?

Anthropic says a cloud session counts toward your plan's usage limits alongside the rest of your Claude and Claude Code use, and that there is no separate charge for the cloud machine. The cost is the plan itself and the limit it gives, so heavy parallel use reaches the limit sooner.

Which Claude plans include cloud sessions?

Anthropic's documentation lists Pro, Max, Ultra and Team plans, and Enterprise users with premium seats or Chat plus Claude Code seats. Claude's pricing page, read on 1 December 2026, lists Pro at $20 a month billed monthly, Max at $100, Ultra at $200 and Team seats at $25 or $125 a month billed monthly.

Can the Claude Code GitHub Action use my Claude subscription?

Yes. Anthropic's GitHub Actions page says the workflow can use either an API key or an OAuth token that authenticates with a Claude subscription, available on Pro, Max, Ultra, Team and Enterprise plans. You create the token locally with the setup-token command and store it as a repository secret.

Can Claude Code cloud sessions work on GitLab or Bitbucket?

Anthropic says repository cloning in Anthropic-hosted environments and pull request creation require GitHub. Self-hosted GitHub Enterprise Server works on Team and Enterprise plans. A GitLab, Bitbucket or other repository can be sent to a cloud session as a local bundle, or run through a self-hosted environment that meets Anthropic's requirements.

How does Claude Code handle my GitHub credentials in the cloud?

Anthropic's documentation says that in Anthropic-hosted environments your GitHub credentials stay encrypted on Anthropic's servers and never enter a session's machine. Git operations from the machine pass through a proxy that adds the credential on the server side. A task can therefore push a branch without holding your token.

What are Claude Code cloud scheduled tasks?

Anthropic describes a cloud scheduled task, formerly called a routine, as a saved prompt with one or more repositories and connectors that runs automatically. Triggers can be a schedule, an HTTP call to the task's own endpoint, or a GitHub event such as a pull request or a release. One task can combine several triggers.

Can I plan on my computer and run the work in the cloud?

Yes. Anthropic suggests planning in the terminal with plan mode, where Claude reads files and proposes a plan without editing code, then saving the plan to the repository, pushing it and starting a cloud session to carry it out. Each cloud command starts its own session, so several tasks can run at once.

What limits should I plan around?

Anthropic lists four: cloud sessions share rate limits with all other use on the account; commands and setup hooks have timeouts and a setup script is cached only when it finishes in about five minutes; you can pull a cloud session into your terminal only on the same account; and Anthropic-hosted cloning and pull requests need GitHub.

How does Claude Code compare with Codex and Copilot?

All three run background tasks paid for by a subscription and open pull requests on GitHub. Claude Code charges nothing extra for the cloud machine, Copilot separates compute from AI credits, and Codex shares its limit with ChatGPT. Our [three-way comparison](/guides/autonomous-coding-agents-compared/codex-vs-claude-code-vs-copilot) sets these out side by side.

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.

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.

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.

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.

Start a project