Getting Set Up
Let's get Claude Code running on your computer. It takes about five minutes, and you'll send your first prompt before this module is over.
Step 1: Get a Code Editor
Before we install Claude Code, you need a place for it to live. The most popular choice is Visual Studio Code (VS Code) — a free app from Microsoft that millions of developers use every day.
- Go to code.visualstudio.com
- Click the big blue Download button
- Open the downloaded file and drag it into your Applications folder (Mac) or run the installer (Windows)
- Open VS Code — you’ll see a Welcome tab. You can close it.
That’s it. VS Code is just a fancy text editor. You don’t need to learn any of its features right now — Claude Code will do the heavy lifting.
Don’t want to install anything? You can skip VS Code entirely and use the Claude Desktop app or the web version at claude.ai/code. But the terminal experience is the most powerful, so we recommend starting here.
Step 2: Open the Terminal
The terminal is a text-based way to talk to your computer. It looks like a black screen with a blinking cursor. Don’t be intimidated — you only need to type a few words.
On Mac:
- Open VS Code, then press Ctrl + ` (the backtick key, above Tab) to open the built-in terminal
- Or open the Terminal app from Applications > Utilities
On Windows:
- Open VS Code, then press Ctrl + ` to open the built-in terminal
- Or search for PowerShell in the Start menu
You should see something like this:
$ _
That blinking cursor is waiting for your command. Let’s give it one.
The terminal is just a text conversation with your computer. Instead of clicking buttons and menus, you type short commands. Claude Code lives inside the terminal — it’s where you’ll have conversations with Claude about what to build.
Step 3: Install Claude Code
Copy and paste this single line into your terminal, then press Enter:
curl -fsSL https://claude.ai/install.sh | bash
That’s the entire installation. The script downloads Claude Code and sets everything up automatically. You’ll see output like this:
$ curl -fsSL https://claude.ai/install.sh | bash
Downloading Claude Code… Installing to /usr/local/bin/claude… Claude Code installed successfully! Run ‘claude’ to get started.If you see a “permission denied” error on Mac, try running sudo curl -fsSL https://claude.ai/install.sh | bash instead. It will ask for your computer password (the one you use to log in). When you type it, nothing will appear on screen — that’s normal. Just type it and press Enter.
Alternative Ways to Get Started
The terminal install is the full-power experience, but there are easier on-ramps if you prefer:
- Claude Desktop App — Download from claude.ai/download. A standalone app with a clean interface. Great if you don’t want to touch the terminal at all.
- VS Code Extension — Open VS Code, click the Extensions icon (the four squares on the left sidebar), search “Claude Code”, and click Install. Claude appears as a panel inside your editor.
- Web (claude.ai/code) — Zero installation. Open your browser and start building. Works on tablets and phones too.
All four options connect to the same Claude. Your conversations, memory, and project context sync across them.
If you’re completely new to all of this, start with the Desktop App. It’s the friendliest experience. You can always switch to the terminal later when you’re ready for more power.
Step 4: Launch Claude Code for the First Time
Navigate to any folder on your computer and type claude:
$ cd ~/Documents $ claude
Welcome to Claude Code v2.x.x Type your message to get started…The first time you run claude, it will ask you to log in. Here’s what that looks like:
- Claude Code opens a browser window (or gives you a URL to paste)
- You log in with your Anthropic account (the same one from claude.ai)
- You approve the connection
- The terminal says “Authenticated!” and you’re ready to go
cd means “change directory.” It’s how you tell the terminal which folder to work in. When you run Claude Code inside a folder, Claude can see and work with all the files in that folder. Think of it like opening a filing cabinet drawer — Claude can only read the papers in the drawer you opened.
You need an Anthropic account with a paid plan or API credits to use Claude Code. The free tier of claude.ai doesn’t include Claude Code access. Check claude.ai/pricing for current options.
Step 5: Send Your First Prompt
You’re in. Let’s make Claude do something. Type this:
What can you do? Give me 5 examples of things I can ask you to build, and make them sound fun.
Claude will respond with a list of ideas. Now try something real:
Create a file called hello.html that shows a big colorful heading that says 'Hello World!' with a fun animation. Open it in my browser.
Watch what happens — Claude creates the file, writes the code, and opens it. You just built your first thing with AI. No coding knowledge required.
What folder am I in right now? List all the files here and give me a quick summary of what's in this directory.
Keyboard Shortcuts Cheat Sheet
Here are the most useful shortcuts to know right away. You don’t need to memorize them — just know they exist:
| Shortcut | What It Does |
|---|---|
| Enter | Send your message |
| Escape | Cancel the current operation |
| Ctrl + C | Force-stop Claude if it’s running a long command |
| Up Arrow | Scroll through your previous messages |
| Shift + Tab | Toggle Plan Mode (Claude plans instead of executing) |
| / | Access slash commands (like /help, /clear, /init) |
| Tab | Accept Claude’s file changes |
Type /help at any time to see all available commands. It’s your safety net — if you ever feel lost, /help shows you every option.
Try It Yourself
Install and Launch Claude Code
- Open your terminal (or the VS Code terminal with Ctrl + `)
- Run the install command:
curl -fsSL https://claude.ai/install.sh | bash - Navigate to your Documents folder:
cd ~/Documents - Type
claudeand press Enter - Complete the login flow when the browser window opens
- Once you see the welcome message, type: “Say hello and tell me a fun fact about penguins”
- If Claude responds, you’re all set — everything is working!
Build Your First File
- Make sure Claude Code is running (type
claudein your terminal) - Send this prompt: “Create a file called my-first-page.html with a nice welcome message, my name (use ‘Your Name’ as placeholder), and a pretty gradient background. Then open it in my browser.”
- Watch Claude create the file and open it
- Now follow up with: “Change the background to a blue-to-purple gradient and make the text white”
- Notice how Claude remembers the context and modifies the same file — you’re having a conversation, not starting over each time