Claude Code guide · Chapter 5 of 10
Claude Code on the web and in the cloud: how to connect GitHub and work without your computer
Claude Code in the cloud is Claude Code working on an Anthropic computer, not yours: you pick a GitHub repository, describe the task and it keeps going after you close your laptop. When it is done, it pushes a branch for you to review. You can start it at claude.ai/code, in the desktop app, in the Code tab on your phone and with claude --cloud in the terminal.

Chapter 5 of 10 · See all
What is Claude Code in the cloud?
Claude Code in the cloud is Claude Code working on an Anthropic computer instead of yours. You pick a GitHub repository, describe the task, and Claude does it in a virtual machine created for that session: it clones your code, edits files, runs commands and, when it is done, pushes a branch for you to review. The session keeps going when you close your laptop, and you can check on it or steer it from the browser, the desktop app or your phone.
- Cloud session
- A Claude Code session that runs on Anthropic's infrastructure, not on your machine. You start it at claude.ai/code, in the desktop app, in the Code tab of the Claude mobile app or with
claude --cloudin the terminal. - Repository
- The copy of your code on GitHub, with its full history. It is what the session clones at the start and where it leaves its branch at the end.
- Cloud environment
- The saved setup of the machine the session works on: which part of the internet it can reach, which variables it has, what it installs at startup and which keys it uses without seeing them.
If you want to use Claude Code on your own computer first, chapter 3 covers the install. This chapter is about the next step, moving the work off your computer, and chapter 6 explains how to set up the machine it runs on.
Claude Code in the cloud in 7 quick answers
What people search for most about Claude Code on the web and with GitHub, with the short answer. Everything is checked against the official docs on November 18, 2026.
- Where do I open it? At claude.ai/code (also called Claude Code on the web), in the desktop app by picking a cloud environment, in the Code tab of the Claude app for iPhone and Android, and in the terminal with
claude --cloud. - Is it free? No. Cloud sessions are part of the Pro, Max, Ultra and Team plans, and of Enterprise seats that include Claude Code. Pro costs $20 a month, or $17 a month billed annually ($200 up front), before tax. There is no separate charge for the cloud machine: it uses the same limits as the rest of your Claude usage.
- Do I need GitHub? Yes, to work on a repository: the session clones the code from GitHub and pushes its branch there. You connect it once, with the Claude GitHub App or with
/web-setupfrom the terminal. - What computer does it run on? A virtual machine with Ubuntu 24.04, about 4 vCPUs, 16 GB of RAM and 30 GB of disk, with the most common tools already installed.
- Does it keep going if I close my laptop? Yes. That is the point: you start the task, do something else and come back to review. You can run several sessions at once, each on its own branch.
- Can I use it from my phone? Yes, in the Code tab of the Claude app. There is no separate Claude Code app. Chapter 8 covers it.
- Is it safe? Each session runs in its own isolated machine, your GitHub credentials never enter it and internet access is limited by default. The real risk depends on how you set up the environment: see chapter 6 and the security chapter.
From your computer to the cloud: what changes
Most people start with Claude on their own computer. First the chat, then the desktop app and, if you build a website, a folder with its files: the codebase. When you upload that folder to GitHub you have a repository, and if you connect it to a hosting service like Vercel, every change goes live on its own. It works, but everything goes through your laptop: close it and the work stops; break it and you lose everything; travel with only your phone and you cannot keep going.
Claude Code in the cloud changes one thing, and it is a big one: the computer doing the work is no longer yours.
| On your computer | In the cloud | |
|---|---|---|
| Where the code runs | On your machine | On an Anthropic virtual machine |
| What it works with | Your folder and your setup | A fresh clone of your repository |
| If you close your laptop | It stops | It keeps working |
| How many tasks at once | One per open window | Several sessions in parallel, each on its own branch |
| Internet access | Your own network | Whatever you set in each environment |
| Where you steer it from | That computer | The browser, the desktop app or your phone |
There is a third option that is easy to mix up: Remote Control connects the web or your phone to a session running on your own computer. It uses your files and your network, so your computer has to stay on. Use it when the work needs something that only exists on your machine. If you want it to keep going after you shut down, use the cloud.
The two parts: the repository and the environment
Two words are enough to understand Claude Code in the cloud. The repository is your code. The environment is the computer.
- The repository is the project’s memory: the code, the
CLAUDE.mdfile with instructions for Claude, the skills and the settings you keep in the.claude/folder. Everything in the repository reaches the session, because it is cloned in full. What only lives on your computer, like your personal~/.claude/CLAUDE.mdor plugins you installed locally, does not. - The environment is the machine the session works on, and its permissions. Each environment stores four things: internet access, environment variables, the setup script and the network secrets (the keys).
Because they are separate, the same repository can open in different environments. That detail, which sounds technical, is what lets you have one environment to research and another to publish, each with its own permissions. Chapter 6 walks through a full example.
Each session starts on a new machine. If it sits idle for a few minutes, the machine pauses with its files saved, and your next message picks it up again. After a longer wait, Anthropic can reclaim it: when you reopen the session you get the conversation back, but not the commands that were still running, so you will have to ask for them again.
How to connect GitHub and start your first task
The first time takes three steps, and you do not repeat them.
- Connect GitHub. Go to claude.ai/code and authorize the Claude GitHub App. Install it only on the repositories you will work with: with it, the session can reach those private repositories and any public one. If you already use the terminal and the
ghtool, you can use/web-setupinstead (see the table below). - Pick the environment. If you do not have one, Claude creates one called Default, with Limited internet access, no variables and no script. It is enough to start; when you need more, chapter 6 explains each setting.
- Start the task. Under the text box you pick the environment, the repository, the branch and the permission mode, type what you want and send it.
Cloud sessions have three permission modes: Auto, where a classifier reviews Claude’s actions instead of asking you; Accept edits, which edits files and pushes the branch without stopping; and Plan, which first proposes how it will do the work and waits for your approval. Manual mode and bypass mode are not available in the cloud. For a first task, Plan is the calmest choice.
When Claude finishes, it pushes a branch. In the changes panel you see the lines added and removed, you can comment on a specific line so it fixes it and, when you like it, create the pull request with one button. If your site is on Vercel or a similar service, that branch usually gets its own preview: you review the result, not the code.
One tip for any cloud task: be specific. “Fix the failing test in tests/test_login.py” works much better than “fix the tests”, and if you have the error message, paste it.
Where to start a cloud session
You can start and follow the same session from four places. Use whichever is at hand: they all share the same environments and the same account.
Go to claude.ai/code, pick the environment, the repository and the branch under the text box, type the task and send it. This is what Anthropic calls Claude Code on the web.
In the Code tab of the Claude app, open the environment selector when you start a session and pick one from the Cloud section. If you pick Local, the session runs on your computer.
From your project folder, with Claude Code installed and the same account:
claude --cloud "Fix the failing test in tests/test_login.py"The cloud machine clones your current branch as it is on GitHub, not your local copy: if you have unpushed commits, run git push first. Each --cloud starts a separate session, so you can launch several in a row. To choose the environment these sessions use, run /remote-env once.
In the Claude app for iPhone or Android, tap Code, pick the repository and the branch and describe the task. The session keeps going in the cloud after you put your phone away. Chapter 8 has the details.
It also works the other way: if a cloud session needs you to take over on your computer, claude --teleport lets you pick it and brings it to your terminal, with its branch and its conversation. It needs a clean working tree and the same account. Whatever you do in the terminal after that stays local: it does not show up in the web session.
A tip from the docs for big tasks: plan locally, run in the cloud. Start Claude Code on your computer in Plan mode (claude --permission-mode plan), save the plan to a file in the repository, push it and run claude --cloud "Execute the plan in docs/plan.md".
Review, open the pull request and let it fix things
Every cloud task ends in a branch. To review it:
- Open the changes. The Changes card in the side panel shows how many lines were added and removed; click the numbers to open the diff view.
- Comment on a line. Hover over a line, click the + and write what needs to change. Your comments are sent together with your next message.
- Create the pull request with Create PR, or a draft if it is not ready for review yet.
With the Claude GitHub App installed on the repository, you can go one step further: Auto-fix. Claude watches the pull request and, when a check fails or someone leaves a comment, it investigates and pushes the fix if the fix is clear. If a comment could mean several things, it asks you first. If you also want Claude to review and approve pull requests under rules you set, that is what Claude Ship does.
Two warnings from the docs themselves:
- Claude replies on GitHub with your account, although each reply is labeled as written by Claude Code.
- If your repository runs automation from comments (for example, an infrastructure deploy triggered by a comment), a comment from Claude can trigger it. Leave Auto-fix off in those repositories.
Auto-fix does not react to merge conflicts with the main branch, because GitHub does not send an event for them: if one shows up, open the session and ask Claude to rebase.
Several tasks at once
The big advantage of the cloud is running things in parallel: each task gets its own session, machine and branch, so you can run three at once on the same repository. Keep two limits in mind:
- They use the same limits as your plan, shared with the rest of Claude and Claude Code. Three sessions at once use three times as much.
- You are the bottleneck. Starting ten tasks is easy; reviewing ten is not. Always ask for a branch and a link to see the result.
How to make the move in five steps
If you already have a project on your computer, this is the minimum to start working on it in the cloud:
- Upload the folder to GitHub as a private repository. It is free to start.
- Connect it to a hosting service like Vercel, if it is a website: every change that reaches GitHub goes live on its own, and every branch gets its preview.
- Write a
CLAUDE.mdat the root: what the project is, how to work on it (one branch per task, check before calling something done) and what not to touch. And, if you want memory between sessions, adocs/status.mdwith the decisions and their dates. - Open claude.ai/code (or the Code tab in the app), connect GitHub and pick that repository with the Default environment.
- Send your first task from your phone. Ask it to work on a branch and leave you a link to review.
Once that works, create one environment per goal, as in the example in chapter 6.
Common mistakes
- Not pushing your commits before
--cloud. The session clones what is on GitHub, not your local folder. - Installing the GitHub App on every repository. Install it only on the ones you will use: that is what the session can touch.
- Vague tasks. “Fix the tests” gets worse results than naming the file and pasting the error.
- Mixing up the cloud and Remote Control. If your computer is off, only the cloud keeps working.
- Turning on Auto-fix in a repository with comment-triggered automation. It can trigger a deploy you did not want.
- Assuming the GitHub proxy protects
main. It does not limit which branches a session can push to: that is what GitHub branch protection is for, covered in the security chapter.
What I would keep in mind
What changed most for me when I moved to the cloud is flexibility. I no longer depend on having my laptop open: I send tasks from my phone, they run in parallel and I review them when I can.
What I would do on day one:
- Start with Default and a repository that is not sensitive, to learn the cycle of branch, review and pull request.
- Write the
CLAUDE.mdbefore the first task. It is what keeps every new session from starting from scratch. - Protect the main branch on GitHub before letting it work on its own.
What I would not do: turn on Auto-fix in a repository that deploys from comments, or leave ten sessions open with no time to review them.
FAQ
What is Claude Code on the web?
It is Claude Code in your browser, at claude.ai/code. Under the hood it is a cloud session: the task runs on an Anthropic virtual machine with your GitHub repository and keeps going after you close your laptop. You can follow the same session from the desktop app or your phone.
Is Claude Code on the web free?
No. Cloud sessions are part of the Pro, Max, Ultra and Team plans, and of Enterprise seats that include Claude Code. Pro costs $20 a month, or $17 a month billed annually, before tax (Claude pricing page, November 18, 2026). There is no separate charge for the machine: it uses the same limits as the rest of your Claude usage.
How do I connect Claude Code to GitHub?
At claude.ai/code, authorize the Claude GitHub App and install it on the repositories you want to work with. If you use the gh tool in the terminal, you can also run /web-setup, which sends your gh token to your Claude account. Either way, your credentials never enter the session machine: an Anthropic proxy authenticates each operation.
Can I use Claude Code in the cloud without GitHub?
To clone the repository and open pull requests on an Anthropic machine, you need GitHub. From the terminal, claude --cloud can upload your local repository if it has no GitHub remote, but the session cannot push the changes back to GitLab or Bitbucket.
What does claude --cloud do?
It starts a cloud session from the terminal for the repository in your current folder, with the current branch as it is on GitHub. If you have unpushed commits, run git push first. Each claude --cloud starts a separate session, so you can run several tasks in parallel.
Can I move a cloud session to my computer?
Yes, with claude --teleport in the terminal, from a clean checkout of the same repository and with the same account. It brings the branch and the conversation. Whatever you do in the terminal after that stays local: it does not show up in the web session.
What is Auto-fix in Claude Code?
An option that makes Claude watch a pull request and respond to failing checks and review comments, pushing the fix when it is clear. It needs the Claude GitHub App on the repository. It replies on GitHub with your account, so it is best left off in repositories where a comment can trigger a deploy.
How many tasks can I run at once?
Several: each one runs in its own session, with its own machine and branch, even on the same repository. They all use the same limits as your plan, so three sessions at once count as three.
Sources
- Claude Code Docs, Use Claude Code in the cloud (checked November 18, 2026)
- Claude Code Docs, Get started with Claude Code in the cloud (checked November 18, 2026)
- Claude Code Docs, Configure cloud environments (checked November 18, 2026)
- Claude Help Center, Use Claude Code in the cloud (checked November 18, 2026)
- Claude, Plans and pricing (checked November 18, 2026)