Skip to main content
Claude Code on the web is in research preview for Pro, Max, and Team users, and for Enterprise users with premium seats or Chat + Claude Code seats.
Claude Code on the web runs on cloud infrastructure instead of your machine, Anthropic-managed by default. Submit tasks from claude.ai/code in your browser or the Claude mobile app. You’ll need a GitHub repository to get started. Claude clones it into an isolated virtual machine, makes changes, and pushes a branch for you to review. Sessions persist across devices, so a task you start on your laptop is ready to review from your phone later. Claude Code on the web works well for:
  • Parallel tasks: run several independent tasks at once, each in its own session and branch, without managing multiple worktrees
  • Repos you don’t have locally: Claude clones the repo fresh every session, so you don’t need it checked out
  • Tasks that don’t need frequent steering: submit a well-defined task, do something else, and review the result when Claude is done
  • Code questions and exploration: understand a codebase or trace how a feature is implemented without a local checkout
For work that needs your local config, tools, or environment, running Claude Code locally or using Remote Control is a better fit.

How sessions run

The steps below describe Anthropic-hosted sessions. In a self-hosted environment, the clone and everything after it run on your organization’s own runners, where network boundaries, setup, and push behavior are operator-configured. When you submit a task:
  1. Clone and prepare: your repository is cloned to an Anthropic-managed VM, and your setup script runs if configured.
  2. Configure network: internet access is set based on your environment’s access level.
  3. Work: Claude analyzes code, makes changes, runs tests, and checks its work. You can watch and steer throughout, or step away and come back when it’s done.
  4. Push the branch: when Claude reaches a stopping point, it pushes its branch to GitHub. You review the diff, leave inline comments, create a PR, or send another message to keep going.
The session doesn’t close when the branch is pushed. PR creation and further edits all happen within the same conversation.

Compare ways to run Claude Code

Claude Code behaves the same everywhere. What changes is where code executes and whether your local config is available. The Desktop app offers both local and cloud sessions, so its answers below depend on which you choose: See the terminal quickstart, Desktop app, or Remote Control docs to set those up.

Connect GitHub

Setup is a one-time process. If you already use the GitHub CLI, you can do this from your terminal instead of the browser.
1

Visit claude.ai/code

Go to claude.ai/code and sign in with your Anthropic account.
2

Install the Claude GitHub App

After signing in, claude.ai/code prompts you to connect GitHub. Follow the prompt to install the Claude GitHub App and grant it access to your repositories. Cloud sessions work with existing GitHub repositories, so to start a new project, create an empty repository on GitHub first.
3

Confirm your Default environment

When you finish connecting GitHub, onboarding creates a cloud environment named Default for you; if onboarding shows an environment form instead, keep its defaults to create the same Default environment. The environment controls what network access Claude has during sessions and what runs when a new session is created. Default uses Trusted network access: sessions reach common package registries and other allowlisted domains, and nothing else through the session’s network. See Installed tools for what’s available without any configuration.For a first project, the Default environment works as is. To change its network access, add environment variables, or run a setup script before sessions start, edit it or create additional environments.

Connect from your terminal

If you already use the GitHub CLI (gh), you can set up Claude Code on the web without opening a browser. This requires the Claude Code CLI. /web-setup reads your local gh token, links it to your Claude account, and creates a default cloud environment if you don’t have one.
Organizations with Zero Data Retention enabled cannot use /web-setup or other cloud session features. If the GitHub CLI isn’t installed or authenticated, /web-setup opens the browser onboarding flow instead.
1

Authenticate with the GitHub CLI

In your shell, authenticate the GitHub CLI if you haven’t already:
2

Sign in to Claude

In the Claude Code CLI, run /login to sign in with your claude.ai account. Skip this step if you’re already signed in with a claude.ai account. Authenticating with an API key doesn’t count. To check, run /status and confirm the Login method row shows a claude.ai account.
3

Run /web-setup

In the Claude Code CLI, run: