About Guides Journal What I Use
Free Guide

How to Set Up Claude Code on Mac and PC

The 5-minute setup guide

by Lucia | @reallyusefulai

What's Inside
Section 01

What is Claude Code?

Claude Code is a tool made by Anthropic (the company behind Claude AI). It lets you use Claude directly on your computer, instead of just chatting in a browser.

Think of it like this: when you use Claude on claude.ai, you're typing messages back and forth in a chat window. Claude Code is different. It runs on your actual computer, which means it can see your files, create new ones, build websites, write documents, and automate tasks for you.

You talk to it in plain English. You say something like "make me a website about dogs" and it actually builds it, right there on your computer. No coding knowledge required.

Who is this guide for?

Complete beginners. If you've never opened a terminal, never heard of PowerShell, and don't know what "command line" means, this guide is for you. I'm not a developer either. I'll walk you through exactly how I set it up on my own computer, step by step.

Section 02

What You Need Before You Start

No coding experience needed

Seriously. I'm not a developer. I use Claude Code every single day to build websites, create automations, and manage content. If I can do it, you can do it.

Section 03

Quick Jargon Buster

You'll see a few technical-sounding words in this guide. Here's what they actually mean.

Section 04

Step 1: Install VS Code

This is the app where you'll do everything. It's free, it's made by Microsoft, and it takes about a minute to install.

Why VS Code?

You could use Claude Code in a plain terminal window, and it would work fine. But I use VS Code because it's so much easier to see what's happening. You get a file browser on the left (so you can see every file Claude creates), a built-in terminal at the bottom (where you talk to Claude), and tabs to preview things like websites. Everything in one place. It makes the whole experience less intimidating.

Section 05

Step 2: Install Claude Code (Mac)

Now you'll install Claude Code itself. This is the part that connects Claude AI to your computer. Skip to Section 06 if you're on Windows.

macOS
  • 1Open VS Code if it's not already open.
  • 2Open the built-in terminal. Go to the menu bar at the top and click Terminal, then click New Terminal. A panel will appear at the bottom of the VS Code window with a blinking cursor. That's your terminal.
  • 3Copy and paste this command into the terminal panel at the bottom, then press Enter:
curl -fsSL https://claude.ai/install.sh | bash

What this does: It goes to Anthropic's official website (claude.ai), downloads their install script, and runs it on your computer. This is the official way to install Claude Code, published by Anthropic in their documentation.

  • 4Wait about 30 seconds. You'll see text scrolling in the terminal panel. When it finishes, you'll see a success message. Claude Code is now installed on your Mac.
  • 5Close and reopen VS Code. This is important. VS Code needs a fresh start to recognise that Claude Code was just installed. Just quit VS Code (Command + Q) and open it again.
How do you know this command is safe?

This command comes directly from Anthropic's official documentation at code.claude.com. The URL in the command (claude.ai) is Anthropic's own website. You can verify it yourself: go to code.claude.com, look under "Get started", and you'll see this exact command. Anthropic is the company that makes Claude AI.

Getting a "permission denied" error?

Quit VS Code completely (Command + Q), reopen it, open a new terminal (Terminal > New Terminal), and try the command again. Do not type "sudo" before the command.

Section 06

Step 2: Install Claude Code (Windows)

If you're on Mac, you already did this in Section 05. Skip to Section 07. If you're on Windows, follow these steps.

Windows
  • 1First, install Git for Windows. Open your web browser and go to git-scm.com/download/win. Click the download button and run the installer. Click "Next" through every screen, accepting all the defaults.

    Why do you need this? Git is a free tool that helps manage files. Claude Code needs it running in the background on Windows. You won't need to open Git yourself. It just needs to be installed.
  • 2Open VS Code if it's not already open.
  • 3Open the built-in terminal. Go to the menu bar at the top and click Terminal, then click New Terminal. A panel will appear at the bottom of the VS Code window. This is where you'll type commands.

    What is this terminal? It's PowerShell running inside VS Code. PowerShell comes pre-installed on every Windows PC. It's just a text window where you type instructions. Think of it as texting your computer.
  • 4Copy and paste this command into the terminal panel at the bottom, then press Enter:
irm https://claude.ai/install.ps1 | iex

What this does in plain English: It goes to Anthropic's official website (claude.ai), downloads their Windows installer, and runs it. The letters look confusing but they're just PowerShell shorthand. irm = "download this file from the internet". iex = "now run it".

  • 5Wait about a minute. You'll see text scrolling in the terminal. When it finishes with a success message, Claude Code is installed.
  • 6Close and reopen VS Code. Quit VS Code completely and open it again so it picks up the new installation.
How do you know this command is safe?

This command comes directly from Anthropic's official documentation at code.claude.com. The URL (claude.ai/install.ps1) is hosted on Anthropic's own website. You can verify it yourself: visit code.claude.com, click "Get started", and choose the Windows tab. You'll see this exact command listed there.

Section 07

Step 3: Install the Claude Code Extension

Now you'll add the Claude Code extension to VS Code. This gives you a nicer way to use Claude inside the app, instead of just the terminal.

What does the extension do?

The extension adds a Claude Code panel inside VS Code. Instead of typing in the terminal, you get a chat-like panel where you can talk to Claude. It can still see and edit all your files. I have mine set to appear in the bottom panel (next to the terminal), so I can see my files on the left, the Claude conversation at the bottom, and any open files in the main area. It's the same Claude Code, just with a friendlier interface.

You can use both

The extension and the terminal both work. Sometimes I use the extension panel, sometimes I type claude directly in the terminal. They do the same thing. Use whichever feels more natural to you.

Section 08

Step 4: Create Your Workspace

A workspace is just a folder where you and Claude will work together. Everything Claude creates goes into this folder, so you can always find it.

That's your workspace. From now on, when you open VS Code and talk to Claude, it will create files inside this folder. You'll see them appear in the left sidebar in real time as Claude works.

How I organise mine

I keep one main workspace folder for all my AI projects. Inside it, I have subfolders for different types of work: content, research, personal projects, and so on. Claude created most of these folders for me. You don't need to plan this out. Just start with an empty folder and let it grow naturally as you use it.

Section 09

Step 5: Log In and Test It

Last step. You'll connect Claude Code to your Claude account, then try your first prompt to make sure everything works.

Open the terminal in VS Code. Click Terminal in the menu bar, then New Terminal. The terminal panel appears at the bottom.

Type this and press Enter:

claude

What happens: Claude Code starts for the first time. Since you haven't logged in yet, it will open your web browser automatically with a login page on claude.ai.

What about cost?

Claude Code is included with your Claude Pro ($20/month) or Max subscription. There is no extra charge. If you're already paying for Claude, you already have access to Claude Code.

Now let's test it. Type your first prompt:

Create a file called hello.txt with a motivational quote inside it
Try something bigger

Now try this: "Create a simple HTML webpage about dogs and open it in my browser." Claude will write the code, save the file (you'll see it appear in the sidebar), and open it in your browser. You just made a webpage without writing a single line of code.

Section 10

Troubleshooting

If something didn't work, check this list. These are the most common issues.

What You See What to Do
"command not found: claude" Quit VS Code completely and reopen it. The install added Claude Code to your system, but VS Code needs a fresh start to see it.
"permission denied" (Mac) Quit VS Code (Command + Q) and reopen it. Open a new terminal (Terminal > New Terminal) and try the install command again. Don't add "sudo" before the command.
Browser doesn't open when logging in Press the c key in your terminal. This copies the login URL. Open your browser, paste it into the address bar, and press Enter.
"The token '&&' is not a valid statement separator" You pasted the wrong command. Your VS Code terminal is using PowerShell. Use the PowerShell command from Section 06.
"Git is not recognized" (Windows) You need to install Git for Windows first (Step 1 of Section 06). Go to git-scm.com/download/win, install it, restart VS Code, then try again.
Can't find the Claude Code extension Make sure you're searching in the Extensions panel (the four squares icon in the sidebar). Search for "Claude Code" and look for the one published by "Anthropic".
Not sure what's wrong Type claude doctor in the terminal and press Enter. This runs a full check and tells you exactly what to fix.
Official sources

Everything in this guide comes from Anthropic's official documentation. If you want to verify anything or read more, visit code.claude.com. That's Anthropic's own site with full docs, FAQs, and troubleshooting guides.

Section 11

What to Build First (With Copy-Paste Prompts)

Don't think of "code" as code. Think of it as: you describe what you want, and Claude builds the solution. Here are five things to try right now, with prompts you can copy and paste straight in.

Build a tool you wish existed. A tracker, a calculator, a dashboard. I've built calendars, trackers, and dashboards this way.

Build me a [describe your idea]. Walk me through what you're building as you go, in plain English. Here's what I want it to do: 1. [First feature] 2. [Second feature] 3. [Third feature]

Automate something repetitive. If you do the same task every week, Claude can probably handle it for you.

I keep having to [describe the repetitive task] every [week/day/month]. Build me something that does this automatically. Here's how it currently works: [describe your manual process]

Analyse a spreadsheet. Drop a CSV into your workspace folder, then ask Claude to make sense of it.

I have a CSV file called [filename] in this folder. Read it and give me a summary, any patterns or trends, a simple chart, and anything that looks unusual.

Solve a problem you don't have a solution for yet. Describe the problem. Let Claude suggest what to build.

I have this problem: [describe your problem in detail]. Before you build anything, ask me questions about what I need. Figure out the best solution, explain your thinking, and then build it once I approve.

Make something you've already built look better.

Take what you just built and make the design more polished. Use a clean, modern style with good spacing, readable fonts, and a colour scheme that feels professional.
The mindset shift

Stop thinking "I need a developer for that." Start thinking "I wonder if I can just describe this and have Claude build it." You don't need a perfect prompt either. "I want a thing that tracks my water intake and reminds me to drink" works fine. Start messy, refine as you go.

Section 12

Tips for Getting Better Results

I've been using Claude Code every day for months. Here's what I've learned about getting the best results from it.

Section 13

Going Further

Once you're comfortable with the basics, here are some things that will take your builds to the next level.

The honest truth

I started using Claude Code a few months ago. I'm not a developer. I've built websites, automations, dashboards, content tools, and things I never thought I'd be able to make. The hardest part is the setup, and you've just done that. Everything from here gets easier. Just start asking Claude to build things and see what happens.

You're all set.

VS Code is open, Claude Code is installed, and you're ready to build things.

Have any questions? Just DM me @reallyusefulai on Instagram or TikTok

More free guides at reallyusefulai.co/guides

← Back to all guides