How Claude Code worksPart 1
Where Claude runs
On this page
In short: Picture Claude as a skilled new colleague. Their brain is at head office. They have a desk in the cloud where they do most of the work. They can also use a locked workroom in your house, but only the rooms you unlock. And your phone is a walkie-talkie to talk to them from anywhere. Knowing which is which tells you what Claude can and cannot reach.
This series explains Claude Code with one picture: Claude is a new colleague joining your team. Each part adds one piece, and by the end you will have a setup that works the way you work. Part 2 covers sessions and forks.
Who talks to whom
Think of it like this: Your colleague thinks at head office, works at a desk in the cloud, and only steps into your house when you hand them a key to a room.
Flip the switches below. See what still works when you move to your phone, when your laptop goes to sleep, or when you unlock a folder.
- Chat with Claude in the desktop app
- Build files and pages in the cloud VM
- Search the web (allowlisted sites)
- Laptop files: connect a folder first
- Approve a new folder (the prompt shows on the laptop)
- Use files you attach in the chat
- The Claude model is the brain. It reads your messages and decides what to do. It runs on Anthropic’s servers, never on your laptop or phone.
- The cloud workspace is the desk. A small computer in the cloud, made for your conversation. Claude’s own files, tools and builds live there.
- The sandbox on your laptop is the locked workroom. It runs inside the Claude desktop app and can only see folders you connect.
- Your phone is the walkie-talkie. You can talk and approve things, but nothing runs on it.
Remember: The folder is the key. Without a connected folder, Claude cannot touch anything on your laptop, even when the laptop is awake.
The machines in one session
Here is what each place looked like in one session. The numbers are examples, and yours will differ.
- Where
- Anthropic's cloud
- OS
- Linux (Ubuntu)
- CPU
- 2 virtual cores
- RAM
- About 8 GB
- Disk
- About 30 GB for the session
- Network
- A private address; the internet only through a proxy with an allowlist
- Lifetime
- Recycled when idle; the session's files are kept
- Where
- Inside the Claude desktop app
- OS
- A small, isolated Linux
- Sees
- Only folders you connect, at
~/mnt/<folder> - Internet
- Your organisation's settings, possibly none
- Deletes
- Blocked until you approve
- Lifetime
- While the app is open and the laptop is awake
- Role
- A window into the same session
- Runs
- Nothing for Claude; just the chat app
- You can
- Chat, approve requests, open files and pages, attach files
- You can't
- Grant a new laptop folder; that prompt shows on the laptop
- Claude sees
- Only files you attach
Why a locked workroom at all
Think of it like this: You would let a new colleague work in your study. You would not hand them the keys to the whole house.
Working on files where they already are is faster than copying them to the cloud and back. The workroom lets Claude do that, while everything you did not unlock stays out of reach.
- Folders you connect, such as
projects/ornotes/ - Reading, searching, editing and converting files in them
- Things only your network can reach, such as a VPN, a LAN machine or an SSH host, if your organisation allows it
- The rest of the laptop: Documents, Desktop and Downloads unless you grant them
- Passwords, keys and the app's own data folders, always
- Your other apps and your screen
- Permanent deletes, until you say yes
From your phone
Think of it like this: A walkie-talkie does not change where your colleague sits. It only lets you talk to them from somewhere else.
Opening the same conversation on your phone creates nothing new. The brain, the desk and the files are all the same.
- Your laptop stays linked. If it is awake with the app open, Claude can still work in your connected folders.
- If the laptop sleeps, Claude cannot reach it until it wakes. The cloud desk keeps working.
- You can approve things from your phone, like deleting a file.
- Unlocking a new folder has to be done on the laptop itself.
Rule: Connect your folders before you leave your desk, keep the laptop awake, and you can steer the work from your phone.
An example day, logged
Think of it like this: The desk can be swapped overnight, like a hot desk, but your colleague’s notebook comes with them.
The log below is invented for this post. It shows one conversation moving between the places above over a few days.
The session outlived its machine. The cloud VM on Monday and the one on Thursday were different machines, with different kernel builds and boot times. The conversation and its files were still there. A session is its history, not a computer.
- Mon 09:10cloud VM #1"Explain how the checkout flow works."Read the checkout code and summarised the three steps.ReadGrep
- Mon 11:30cloud VM #1"Add a discount code field."Added the field and a test, then ran the tests.EditBash · npm test
- Mon → ThuidleNo activity. The cloud VM was reclaimed; the session and its files were kept.
- Thu 10:02cloud VM #2"Which machine is this running on?"Checked the cloud VM and asked the linked laptop for its details.Bash · unamedevice info
- Thu 10:06sandbox VM on the laptop"Run the tests on my laptop's copy."Asked for access to the project folder, then ran the tests where the files live.folder accessdevice shell · npm test
- Thu 10:20fork subagent"Fork yourself to check every form for missing labels."The fork read 40 files and returned a four-item list.Agent · fork
- Thu 10:45cloud VM #2"Publish a summary page for the team."Built the page in the cloud VM and published it.publish
What to take away
- A conversation is its notebook, not a machine. The cloud desk can be replaced and nothing is lost.
- The brain decides; the desk and the workroom do. Each can only reach what it was given.
- Your phone is a remote. Your laptop is only reachable while it is awake and a folder is connected.
Under the hood: the technical names
| In this post | What it really is |
|---|---|
| The brain | The Claude model, running on Anthropic’s servers |
| The desk in the cloud | A cloud workspace: a Linux virtual machine created for the session, recycled when idle, with your files kept |
| The locked workroom | A small, isolated Linux virtual machine inside the Claude desktop app. Connected folders appear at ~/mnt/<folder>. Deletes need your approval |
| The walkie-talkie | The Claude app on your phone, a window into the same session |
This describes the Claude desktop app’s Cowork mode as seen from inside one session in November 2026.
Check yourselfYou are on your phone and ask Claude to edit a file in a folder on your laptop. The laptop is asleep. What happens?
Show the answer
Claude cannot reach the laptop until it wakes. It can still work at its cloud desk, or on a file you attach in the chat.
Words in this post:
- Model: the part of Claude that thinks and writes.
- Virtual machine (VM): a computer made of software, running inside a bigger computer.
- Session: one conversation with Claude and everything in it.
- Connected folder: a folder on your laptop you have given Claude access to.
Next, Part 2: Sessions and forks explains how your colleague remembers, and how to try two ideas at once.
Setting up Claude Code or AI agents for your team?
I help teams build this: agents, RAG search and Claude Code setups that hold up in production.
Series
How Claude Code works
- How Claude Code worksWhere Claude runsyou are here
- How Claude Code worksSessions and forks
- How Claude Code worksSkills, hooks and subagents
- How Claude Code worksMCP servers and plugins
- How Claude Code worksPermissions and safety
- How Claude Code worksContext and cost
- How Claude Code worksSpecs as the source of truth
- How Claude Code worksContract first
- How Claude Code worksVerify against the spec
- How Claude Code worksHandoffs and memory
- How Claude Code worksYour setup as a kit
- How Claude Code worksRolling it out