AI study guide · Claude Code guide · 10 chapters
Claude Code setup guide: install and configure it anywhere
How to install Claude Code on your computer, in the cloud, over SSH or from your phone, and how to set up each environment (network, keys, variables and setup script) without opening the door to prompt injection. With real use cases and the official docs checked.
Where to start
The 10 chapters
- Chapter 1 · 9 minClaude Code vs Cowork: what each one does and which one to useWhat each one does, three real cases and when to move from one to the other.
- Chapter 2 · 8 minWhere Claude Code runs: on your computer, in the cloud, over SSH or remotelyLocal, cloud, SSH and remote: one agent in four different houses.
- Chapter 3 · 14 minHow to install Claude Code on Mac, Windows and Linux, step by stepThe command for each system, WSL, Homebrew and WinGet, your first session and what to do if it fails.
- Chapter 4 · 10 minClaude Code in VS Code, Cursor and JetBrains: the extension, step by stepThe extension, the changes panel, the shortcuts and when it beats the terminal.
- Chapter 5 · 12 minClaude Code on the web and in the cloud: how to connect GitHub and work without your computerclaude.ai/code, connecting GitHub, your first task, --cloud and the pull request.
- Chapter 6 · 15 minClaude Code cloud environments: network access, network secrets, environment variables and setup scriptsNone, Limited and Full, network secrets, what never goes in variables and the setup script.
- Chapter 7 · 11 minClaude Code over SSH, in Docker and on your own serverWork on a server of yours from the desktop app or the terminal, and isolate it in a container.
- Chapter 8 · 10 minClaude Code on mobile: the Code tab and Remote ControlStart and review tasks from your phone, and steer a session on your computer with Remote Control.
- Chapter 9 · 13 minClaude Code security: prompt injection and the lethal trifectaWhat prompt injection is, the lethal trifecta, and how to split permissions so no session has all three.
- Chapter 10 · 9 minCase study: a YouTube channel run with two Claude Code environmentsA YouTube channel with one environment that researches with no keys and another, the only one with the key, that publishes.
In four answers
What is Claude Code?
Anthropic’s coding agent: it reads your project, edits files, runs commands and checks the result based on what you ask.
Where does it run?
On your computer (Mac, Windows or Linux), inside the desktop app, on an Anthropic machine in the cloud or on your own server over SSH.
How much does it cost?
It needs a paid Claude plan, starting with Pro. Chapter 3 lists the plans that include it, with their prices and the date we checked them.
What about Cowork?
Cowork does office work with your files and apps; Claude Code writes code, runs commands and works with repositories. Chapter 1 compares them.
FAQ
How do I install Claude Code?
On Mac, Linux or WSL, run curl -fsSL https://claude.ai/install.sh | bash in a terminal. On Windows, run irm https://claude.ai/install.ps1 | iex in PowerShell. Then check it with claude --version and type claude inside your project folder to sign in. If you would rather skip the terminal, the Code tab in the Claude desktop app already includes it. Chapter 3 has every step.
Which chapter should I start with?
If you have never used Claude Code, start with the first three: Claude Code vs Cowork, where it runs and install. If you want it to work on its own, read web and GitHub and then cloud environments. If you use API keys, read cloud environments and security. And if you work from your phone, go to the mobile chapter.
What is the difference between Claude Code and Cowork?
Cowork is Claude’s agent for office work: documents, spreadsheets, files and apps, from the desktop app, the web or your phone. Claude Code is a coding agent: it works with code, runs commands in a terminal and connects to GitHub repositories, on your computer, in the cloud or on a server. Chapter 1 compares them with three cases.
Can I use Claude Code with my computer turned off?
Yes, with a cloud session: it runs on an Anthropic machine with your GitHub repository and keeps going after you close your laptop. Open it at claude.ai/code, in the desktop app or in the Code tab on your phone. Remote Control is different: it drives a session on your own computer, which has to stay on.
This guide is also available in Spanish. More plain-English AI lessons are in the AI study guide.