How to Set Up Claude Code: A Beginner-Friendly Guide for Non-Developers
Trying to set up Claude Code but getting stuck on terms like "terminal," "Node.js," or "npm"? You're not alone. Anthropic's official docs are great — if you're already a developer. If you're not, they skip the steps you actually need, and that's where most people get stuck.
This guide fixes that. We'll go from "I don't even know what a terminal is" to "Claude Code is running in my project" in about 15–20 minutes. No prior coding experience required — we'll explain every concept as it comes up, and every command is copy-paste ready.
"The hardest part of using AI coding tools isn't the code — it's the install."
Did You Know? Claude Code used to require Node.js to install — a common reason setup tripped up non-developers. In early 2026, Anthropic shipped a native installer that needs no dependencies at all. If you read an older guide that asked you to install Node first, you can skip that step entirely. The new installer does everything for you. Less to learn, fewer things to break.
Table of Contents
- Before You Start (What You'll Need)
- Step 1: Open Your Terminal
- Step 2: Install Cursor (Your Code Home Base)
- Step 3: Install Claude Code
- Step 4: Sign In and Run Claude Code for the First Time
- Step 5 (Optional): Install the GitHub CLI
- Troubleshooting
- Your Next Steps
Before You Start (What You'll Need)
A short checklist so nothing derails you mid-install.
You need:
- A Mac, Windows PC, or Linux machine
- A Claude Pro, Max, Team, or Enterprise subscription, or an Anthropic Console account with credit — free Claude.ai accounts do not include Claude Code. This is the #1 reason setup fails silently. If you haven't upgraded yet, do it at claude.ai before going further.
- A free GitHub account (takes ~2 minutes to create — keep the email and password handy)
- About 15–20 minutes
- An internet connection
You do NOT need:
- Node.js (the new native installer handles everything)
- Any prior coding experience
- Any specific editor already installed — we'll walk through installing Cursor together
A tiny bit of vocabulary before we start:
- Terminal — a window where you type commands to your computer. That's it. You'll paste commands into it.
- Install — download and set up a program so you can use it. You do this once per program.
- Command — a single line of text the terminal understands. You'll copy, paste, and press Enter.
That's all the jargon you need. Let's go.
Step 1: Open Your Terminal
Every step that follows happens in a terminal window. Here's how to open one.
macOS
Press Cmd+Space to open Spotlight, type Terminal, and press Enter. A window opens with a blinking cursor — that's your prompt.


Windows
Click the Start menu, type PowerShell, and click Windows PowerShell. You want PowerShell, not "Command Prompt" — they're similar, but PowerShell is the modern one, and the commands in this guide assume it.
Linux (Ubuntu/Debian)
Press Ctrl+Alt+T. Or open the Activities menu and search for "Terminal."
How to actually use a terminal
When the rest of this guide says "run this command," here's what to do:
- Click inside the terminal window
- Copy the command from this page
- Paste it into the terminal (right-click paste, or Cmd+V / Ctrl+V / Ctrl+Shift+V depending on your OS)
- Press Enter
That's the entire workflow. You never have to memorize a command — copy and paste works forever.
Step 2: Install Cursor (Your Code Home Base)
Cursor is a free code editor built around AI. It's a fork of the popular VS Code editor with Claude- and GPT-powered features baked in, which makes it the natural pairing for Claude Code. Cursor gives you a file browser, a built-in terminal, and AI-assisted editing in one window — you won't need to juggle multiple apps.
Note: If you already use VS Code and want to stick with it, the rest of this guide works there too — VS Code has the same integrated terminal shortcut and feels nearly identical. For a first-time user, we recommend Cursor.
Download it
Go to cursor.com/download and grab the version for your OS.
macOS
Open the downloaded .dmg file and drag the Cursor icon into your Applications folder. Open Cursor from Applications (or Spotlight).

Windows
Run the downloaded .exe installer and click through the defaults. When it finishes, Cursor opens automatically.
Linux
Download the .AppImage file. Right-click it, choose Properties → Permissions, and check "Allow executing file as program." Then double-click the file to run Cursor. If it fails to launch, install the libfuse2 library first:
sudo apt install libfuse2
Open a folder
Once Cursor is running, go to File → Open Folder and pick any folder on your computer. If you don't have one in mind, your Documents folder works perfectly. This folder is what Claude Code will treat as your "project."

Open Cursor's built-in terminal
Press Cmd+J (macOS) or Ctrl+J (Windows/Linux). A terminal pane slides up from the bottom of the Cursor window. If the keyboard shortcut doesn't work for some reason, you can also open it from the menu bar: Terminal → New Terminal.

Why use Cursor's built-in terminal instead of the system one? Because it's already pointed at your project folder. You won't need to navigate anywhere — you can just start running commands and they'll apply to the folder you opened. For the rest of this guide, when we say "in your terminal," you can use either the system terminal or Cursor's built-in one.
Step 3: Install Claude Code
This is the main event, and it's simpler than you'd expect. Anthropic ships a one-line installer that handles everything — no Node.js, no npm, no PATH configuration.
macOS / Linux
In your terminal, paste this and press Enter:
curl -fsSL https://claude.ai/install.sh | bash
Windows (PowerShell)
In PowerShell (or Cursor's built-in terminal on Windows, which is PowerShell by default), paste this and press Enter:
irm https://claude.ai/install.ps1 | iex
The installer runs for about 30 seconds, prints progress as it works, and tells you when it's done.

Verify it installed
Type this and press Enter:
claude --version
You should see a version number like 1.x.x. If you do, you're good — skip to Step 4.
If you get "command not found" or "not recognized as the name of a cmdlet," don't panic. This is the most common hiccup, and the fix is almost always:
Close your terminal completely, then open a new one, then try claude --version again.
The installer updates a setting your terminal only reads when it starts, so existing windows don't know about the new command yet. A fresh window sees it instantly. If it still fails after a fresh window, jump to the Troubleshooting section.
Alternative install methods (optional)
If you prefer package managers, these also work:
- macOS with Homebrew:
brew install --cask claude-code - Windows with winget:
winget install Anthropic.ClaudeCode - If you already have Node.js and prefer npm:
npm install -g @anthropic-ai/claude-code(Anthropic has marked the npm method as deprecated, but it still works as of April 2026.)
All four methods install the same tool. Pick whichever feels most comfortable.
Step 4: Sign In and Run Claude Code for the First Time
Now for the satisfying part.
Navigate to a project folder (if you're not already in one)
If you're using Cursor's built-in terminal and you opened a folder in Step 2, you're already in the right place — skip this. Otherwise, tell your terminal which folder to treat as your project:
macOS / Linux:
cd ~/Documents
Windows (PowerShell):
cd $HOME\Documents
cd stands for "change directory" — you're telling the terminal "switch to this folder." Any command you run after this will apply to files in that folder.
Start Claude Code
Type:
claude
Press Enter.
The first-run browser login
The first time Claude Code starts, it prompts you to sign in and opens your browser automatically. Use the same Claude account with your Pro/Max/Team/Enterprise subscription. Authorize the app when prompted, then close the browser tab when you see a confirmation message and return to your terminal.
If Claude Code doesn't prompt you — or you need to switch accounts later — type the following command inside the Claude Code prompt and press Enter to kick off the sign-in flow manually:
/login

Heads up: If sign-in fails or you see a "your plan doesn't include Claude Code" message, double-check that your Claude account has a qualifying subscription. Free accounts and legacy plans don't include Claude Code access — upgrade at claude.ai/upgrade and try again.
Your first prompt
Once you're authenticated, you're back at Claude Code's interactive prompt — ready for instructions. Try something simple:
Hi Claude! I just installed you. Can you list the files in this folder and tell me what's here?
Press Enter. Claude Code reads your project folder and responds.

Congratulations — you're officially running Claude Code. The install is done. Everything from here is learning what to ask.
Pro tip — pick the right model for the job. Claude Code can run on different Claude models (Opus, Sonnet, and Haiku), and the one you pick affects how fast you hit your plan's usage limits. Opus is the most capable but the most expensive — reserve it for heavy lifting like big refactors or tricky debugging. Sonnet is the sweet spot for most day-to-day work: fast, smart, and far cheaper on your limits. If you're on the Claude Pro or Teams Standard plan, default to Sonnet — you'll burn through your Opus allowance in an afternoon otherwise. Switch models any time with the
/modelcommand inside Claude Code.When in doubt: start with Sonnet, only reach for Opus when Sonnet is struggling.
To exit Claude Code, type /exit and press Enter, or press Ctrl+C twice.
Step 5 (Optional): Install the GitHub CLI
You're technically finished — but if you plan to use Claude Code for real work, installing the GitHub CLI (gh) is a near-mandatory next step. It lets Claude Code (and you) create commits, branches, and pull requests directly from the terminal, which is how most real coding workflows operate. The total setup takes about 3 minutes.
Very brief: what's GitHub?
If you're unfamiliar — GitHub is where most software source code lives online. Think "Google Drive for code." A repository (or "repo") is just a project folder that GitHub tracks. If you don't have a GitHub account, create a free one at github.com before the next step.
Install gh
macOS with Homebrew:
brew install gh
macOS without Homebrew: Download the .pkg installer from cli.github.com and double-click it.
Windows:
winget install --id GitHub.cli
Linux (Ubuntu/Debian): Follow the four-line apt setup at cli.github.com — the commands there are copy-pasteable and kept up to date.
Verify it installed
gh --version
You should see a version string. If not, close and reopen your terminal, then try again.
Sign in with gh auth login
Run:
gh auth login
You'll be asked a few questions. The beginner-friendly defaults:
- "What account do you want to log into?" → GitHub.com
- "What is your preferred protocol for Git operations?" → HTTPS (works on any network, no SSH keys to create)
- "Authenticate Git with your GitHub credentials?" → Yes
- "How would you like to authenticate GitHub CLI?" → Login with a web browser
gh prints a one-time code, opens your browser, and asks you to paste the code. Paste it, authorize the app, and come back to your terminal. You're logged in.

Claude Code can now help you create commits and pull requests the same way it helps you write code.
Troubleshooting
If something goes sideways, here's a list of the most common first-time stumbles and what to do about them.
"command not found" or "not recognized as the name of a cmdlet"
First try: Close your terminal window entirely, open a fresh one, and run claude --version again. This catches the majority of "command not found" errors right after an install. Your terminal reads PATH settings only when it starts, so a new command isn't visible until you open a new window.
Quick sidebar — what's PATH? PATH is a list of folders your terminal checks whenever you type a command. If claude is installed but its folder isn't on your PATH, your terminal answers "I don't know that command" even though the file is sitting right there on your computer.
If a fresh terminal didn't fix it (macOS / Linux): The installer puts claude in the folder ~/.local/bin, and your shell sometimes doesn't know to look there yet. Add it to PATH permanently by running these three commands, one at a time, in your terminal:
echo 'export PATH="$HOME/.local/bin:$PATH"' >> ~/.zshrc
source ~/.zshrc
claude --version
If you see a version number after the third command, you're fixed. If you get an error about ~/.zshrc not existing, you're probably on the older bash shell — swap both ~/.zshrc references for ~/.bashrc and run the commands again. (Unsure which shell you're on? Run echo $SHELL and look at the last word after the final slash.)
If a fresh terminal didn't fix it (Windows): Close all PowerShell windows (not just the one you were using), then open a new one. If that still doesn't work, restart your computer — this forces Windows to reread its environment settings.
The Claude Code installer hangs or errors out
Check that your internet connection is alive and you're not on a corporate VPN that blocks script downloads. If you are, try the alternative install methods above (brew, winget, or npm).
"Permission denied" when using the npm install method
This is the classic EACCES error. It means npm is trying to write to a system folder it doesn't have permission for. The easy fix: don't use the npm method. Use the native installer at the top of Step 3 instead — it installs to your home directory and avoids the permission issue entirely.
Browser doesn't open on first-run login
Some setups (especially Linux servers, VMs, or locked-down work laptops) don't have a default browser wired up to terminal commands. If the browser doesn't open, Claude Code prints a URL you can copy into any browser manually — including one on a different device.
"Your plan doesn't include Claude Code" after login
You're signed in with a free Claude.ai account or a plan tier that doesn't include Claude Code. Upgrade to Pro, Max, Team, or Enterprise at claude.ai/upgrade and run claude again.
gh auth login keeps failing
Confirm you're picking HTTPS and Login with a web browser. If your browser auto-fills an old GitHub account, log out of GitHub in the browser first, then retry.
Still stuck?
If you've tried the fresh-terminal trick and you're still getting errors, the Anthropic community forum and GitHub issues for anthropics/claude-code are both active and helpful. Paste the exact error message — don't paraphrase.
Your Next Steps
You've got Claude Code installed, signed in, and responding to prompts. What now?
- Explore your project. Ask Claude to summarize what's in your current folder, or explain a file you're curious about. This is the fastest way to build intuition for what Claude Code can see and do.
- Try a real task. Open something you've been meaning to tinker with — a side project, a bit of code from a course, even a configuration file you don't fully understand — and ask Claude to make a small, specific change. Watch how it proposes edits before applying them.
- Keep it handy. Any time you want a coding partner,
cdinto a folder and runclaude. That's the whole workflow.
Remember: the install is the hardest part, and you just finished it. Everything from here is practice.
Want a hands-on walkthrough for you or your team? Book a call and we'll personally help you roll Claude Code out and build it into your workflows.


