← Claude Code Hub
Dec 1, 2026 · 5 min read ✦ Tip #297

Claude Code on the web without a repository: when to use it and what you lose

Claude Code cloud sessions can now start without a repository. When a session with no repo is the right call, how to start one from claude.ai/code or the terminal, and what stops loading without a clone.

Claude Code on the web without a repository: the session starts on a machine with your environment (network, variables, setup script) and no repository cloned; it loads no CLAUDE.md, hooks or .mcp.json from a repo, has no branch or pull request, and you can ask Claude to add a repo mid-session

TL;DR For a task that doesn't touch your code (research, a one-off script, converting some data), pick No repository in the repository selector at claude.ai/code. Ask for anything you want to keep in the chat before you leave; and if you need a repo halfway through, tell Claude to add it.

Since v2.1.318, a Claude Code cloud session can start without a repository. Before, you always had to pick one, even when the task had nothing to do with it, and the session loaded its configuration anyway. Now the virtual machine starts with your environment (network, variables and setup script) and nothing else: no clone, no branch. Since v2.1.323 it works on self-hosted environments too.

When it's the right call, and when it isn't

Task Without a repo?
Comparing two libraries or reading an API's docs Yes: there's none of your code to read
A one-off script: rename files, convert a CSV, query an API Yes, if you take the result away in the chat
Trying a public package before adding it to your project Yes: it installs on a machine that gets thrown away
Fixing a bug, reviewing a PR, changing your config No: it needs the repo, its CLAUDE.md and its permissions
Anything whose output has to outlive the session No, or add a repo to push to

The risk is in that last row. Once a session sits idle for a while, its machine pauses and can later be reclaimed. Reopen it and you get a fresh machine with the conversation, not the files. With a repo, your work lives on the branch Claude pushed; without one, there's no branch to keep it on.

How to start one

1. From claude.ai/code or the app

On the new session screen, open the repository selector under the message box and pick No repository. You choose the environment as always, in its own selector.

2. From the terminal

claude --cloud clones the GitHub remote of the folder you're in. Start the task from a folder that isn't a git repository and the session starts empty. In the v2.1.333 binary, this is the notice it gives:

This folder is not a git repository, so the cloud session starts empty: nothing from this folder is copied into it.

Mind the difference: from a git repository without a GitHub remote, claude --cloud doesn't start empty, it uploads your local repo to the session. For a clean session, step out to a folder that isn't a repo first.

3. If the task turns out to need a repo, ask for it

Add the acme/webapp repo to this session and apply the script we wrote there.

Claude has a tool that attaches a repository to the running session. For a private one, your GitHub connection has to reach it: with the browser connection, the Claude GitHub App installed on that repo; with /web-setup, your gh token. If your account can read it but not push, it attaches read-only. If it can't be attached, start a new session with that repo selected.

What changes without a clone

Nearly everything a cloud session knows about your project comes from the clone. Without it:

What normally comes from the repo Without a repo
The project's CLAUDE.md Doesn't exist. For what it should always know, write ~/.claude/CLAUDE.md from the environment's setup script
Hooks and permission rules in .claude/settings.json Not loaded
Servers in .mcp.json Not loaded; your account's connectors are still there
The repo's skills, agents and commands Not there
Branch and pull request No branch to push, so no Create PR either
Changes Claude proposes to the environment Go to the environment the session runs in: if that's Default, to Default, which all your repos use

For the first row, a short setup script is enough: what it writes is there in every new session on that environment, repo or not.

#!/bin/bash
mkdir -p ~/.claude
cat > ~/.claude/CLAUDE.md <<'EOF'
Before installing a package, tell me which one and why.
EOF

That last row matters if you let Claude fix the environment when something's missing. In a session with a repo, Claude stays off Default and proposes an environment named after the repo. Without a repo there's no name to give it: if the session runs on Default, whatever it installs or allows goes into Default, and every session you start inherits it. Read the card before you approve.

Official docs: Start a task · Configure cloud environments · Changelog, v2.1.318

Requirements

  • Claude Code cloud sessions: Pro, Max, Ultra and Team plans, or Enterprise with a seat that includes them. On an Anthropic-hosted environment since v2.1.318; on a self-hosted one, since v2.1.323.
  • The terminal notice comes from the Claude Code v2.1.333 binary; the rest from the docs and changelog as of December 1, 2026, and from the tools a cloud session gives Claude. No session without a repo was opened to write this tip.

Found this useful? See more of wmedia.es in your Google results.

Add wmedia.es as a preferred source on Google
FREE GUIDE

Approve less, but better.

Ten minutes in, you're hitting yes without reading. That's not review, that's prayer. A 10-page guide with the five levers in order of risk.

  • 1. Rules the first match wins
  • 2. Mode a dial, not a switch
  • 3. Auto mode a classifier approves for you
  • 4. Sandbox a fence the OS puts up
  • 5. Bypass only inside a container
Are you a professional Web developer?

You'll receive the guide by email · Unsubscribe anytime

of 10
#

Wmedia · 10 pages
FREE GUIDE · 10 pages · 5 levers

Approve less, but better.

Ten minutes in, you're hitting yes without reading. That's not review, that's prayer. A 10-page guide with the five levers in order of risk.

Are you a professional Web developer? · Unsubscribe anytime

Tired of approving permissions without reading?