Justin McKelvey
Fractional CTO · 15 years, 50+ products shipped
Claude Code Setup Guide 2026: Install to First Shipped Feature in 30 Minutes
Quick Answer
Claude Code setup in 2026 takes about five minutes: install via the native installer (curl -fsSL https://claude.ai/install.sh | bash) or npm (npm install -g @anthropic-ai/claude-code), run claude in a project folder, and authenticate with /login using a Claude Pro ($20/month), Max ($100–200/month), or API account. The setup that actually determines whether it's useful takes another 25: a CLAUDE.md file with your conventions, one or two MCP servers, and a first task small enough to verify. This guide covers all of it — from someone who ships client work with Claude Code daily.
Updated July 2026 · Author: Justin McKelvey, fractional CTO, 50+ products shipped
Want the printable version?
Grab the free Claude Setup Guide.
Everything in this post as a step-by-step checklist — install commands, a CLAUDE.md template you can copy, and the exact MCP servers worth adding first. The same setup I use on client projects.
Free. No 47-email drip sequence.
What Is Claude Code, in One Paragraph?
Claude Code is Anthropic's coding agent that runs in your terminal. Unlike a chat window you paste code into, it has direct access to your project: it reads files, edits them, runs commands, executes your tests, and iterates on failures until things pass. You describe outcomes; it does the work and shows you diffs. It's the tool I ranked #1 for developers in my vibe coding tools guide, and it's what I build client projects with. (Full opinions in my Claude Code review.)
What Do You Need Before Installing?
A terminal, a project (existing codebase or empty folder, both fine), and a paid account. As of mid-2026, Claude Code is included with:
- Claude Pro — $20/month. Enough for light-to-moderate daily use. Start here.
- Claude Max — $100/month (5x) or $200/month (20x). For people running it hours a day. You'll know when you're that person because Pro's limits will tell you.
- API billing — pay per use. My real-world client months land around $30–50. Good for variable workloads; less predictable than a flat plan.
The free Claude.ai plan does not include Claude Code. At $20/month for a tool that regularly saves me 10+ hours a month, the math isn't close — that's roughly $2/hour for senior-level output. I've spent more on worse.
Step 1: How Do You Install Claude Code?
Two routes as of mid-2026. The native installer is what Anthropic now recommends — no Node.js required, auto-updates in the background:
# macOS / Linux
curl -fsSL https://claude.ai/install.sh | bash
The npm route still works fine if you're already in Node-land:
npm install -g @anthropic-ai/claude-code
Then move into a project and start it:
cd your-project
claude
That's the whole install. If something's broken it's almost always PATH or an ancient Node version — the native installer sidesteps both, which is why it's the default now.
Step 2: How Do You Log In?
First launch, type /login. It opens a browser, you authenticate with your Claude account (or Console account for API billing), and you're done. The credential persists across sessions. If you ever see auth weirdness after switching between plan and API billing, /logout then /login fixes 90% of it.
Step 3: Why Is CLAUDE.md the Highest-Leverage 15 Minutes?
Here's the part most setup guides skip, and it's the part that separates "neat demo" from "tool I trust with client work." CLAUDE.md is a markdown file at your project root that Claude Code reads at the start of every session. Without it, the agent infers your stack and conventions fresh every time — and infers means guesses.
Run /init and Claude Code will scan the project and draft one for you. Then edit it like documentation for a sharp new hire. Mine follow this shape:
- Stack and versions. "Rails 8, SQLite in production, Hotwire — no React." Saves you from watching an agent cheerfully add a webpack config.
- Commands. How to run tests, lint, and start the dev server. The agent uses these to verify its own work, which is the entire trick.
- Conventions with teeth. "One state management pattern. Services go in app/services. Never commit directly to main."
- Known gotchas. The stuff that burned you before. My files have a literal "learned the hard way" section, and it has paid for itself repeatedly.
Keep it under a couple hundred lines. A CLAUDE.md that's a novel gets skimmed — by the agent and by you.
Step 4: Which MCP Servers Should You Add?
MCP (Model Context Protocol) is the open standard that connects Claude Code to external tools — documentation, databases, browsers, project trackers. Adding one is a wizard:
claude mcp add
Pick from the list or paste a server command. My advice after a year of client setups: start with one or two, not twelve. A documentation server (so the agent pulls current library docs instead of trusting its training data) is the single highest-value add for most stacks. A browser or database server earns its place the first time you need it, not before. Every server you add is context the agent carries around; a wall of MCP servers mostly just feels productive.
If you're on a specialty stack, this is where it pays off fast — Flutter folks, see how the Dart MCP server changes the game in vibe coding Flutter.
Step 5: What Should Your First Project Be?
Not "build me an app." I know. But the fastest way to learn how Claude Code thinks is a task you can verify: a real bug on an existing project, a small feature plus its test, the boring script you've deferred for months. My standard first-session loop:
1. Ask it to explain before it touches anything. "Walk me through how auth works in this codebase." You learn whether it actually understands the project, and so does it.
2. One scoped task. "Add validation to the signup form email field and write a test for the rejection case." Concrete, checkable, small.
3. Read the diff. Claude Code shows you changes before committing anything. Read them. This habit is the difference between using an agent and being used by one.
4. Make it verify. "Run the tests." The agent fixing its own red tests is where the magic actually lives.
Graduate to bigger autonomous runs as trust builds. On client work I now hand it multi-file features whole — but I earned that trust one readable diff at a time, and so should you.
How Does Claude Code Compare to the Alternatives?
The short version: Cursor if you want a visual IDE and an easier first hour; Codex if you're OpenAI-committed; the full field is in best AI coding agents for 2026. Claude Code's edge is depth — codebase understanding, autonomous multi-step runs, and backend work. It's a power tool with a learning curve, not a toy with a tutorial.
What Are the Mistakes Every Beginner Makes?
Skipping CLAUDE.md. Then wondering why the agent keeps making the same wrong assumption. It's not psychic; it's literate. Write things down.
Prompting like a wish, not a spec. "Make it better" gets you a refactor you didn't want. "Extract the payment logic into a service object and keep the controller under 20 lines" gets you software.
Accepting diffs unread. The output looks confident because it's always confident. Confidence is not correctness — ask me how I know, or just read what happens to unreviewed AI code in production.
Shipping without a security pass. Claude Code writes better code than any other agent I've tested, and it will still happily implement the insecure thing you asked for. Before anything touches real users or real money, run the 20-point security checklist.
Your 30-Minute Setup, Recapped
Minutes 0–5: install (native installer or npm), claude, /login. Minutes 5–20: /init, then edit CLAUDE.md with your stack, commands, and conventions. Minutes 20–25: claude mcp add for one documentation server. Minutes 25–30: first scoped task, read the diff, make it run the tests. That's the whole setup — everything past this is reps.
Take it with you
The Claude Setup Guide: this post as a working checklist.
Install commands, a copy-paste CLAUDE.md template, my recommended first MCP servers, and the first-session workflow — the exact setup I run on client projects.
Want to see what Claude Code looks like on real production work — not demos? Vibe Coding with Claude covers my full client workflow. And if you've already got an AI-built app that needs adult supervision before launch, book a free strategy call — I'll tell you honestly whether it's shippable or a rescue.
Get the Free AI Content Toolkit
A curated selection of the only 3 AI tools you actually need to run a 6-figure consulting business.
Frequently Asked Questions
- How do you install Claude Code in 2026?
- The recommended method as of mid-2026 is the native installer — curl -fsSL https://claude.ai/install.sh | bash on macOS/Linux — which needs no Node.js and auto-updates. The npm route (npm install -g @anthropic-ai/claude-code) still works if you already live in the Node ecosystem. Then run claude in your project directory and authenticate with /login.
- How much does Claude Code cost?
- Claude Code is included with Claude Pro at $20/month for light-to-moderate use, and Max plans at $100/month (5x limits) or $200/month (20x limits) for heavy daily work, as of mid-2026. You can also pay per-use via API billing — my typical client-work months land around $30–50. There's no standalone free tier; the free Claude.ai plan doesn't include Claude Code.
- What is a CLAUDE.md file and do you need one?
- CLAUDE.md is a markdown file at your project root that Claude Code reads at the start of every session — your stack, conventions, commands, and known gotchas. You don't strictly need one, but without it the agent re-infers your setup every session and improvises where you have opinions. Run /init to generate a starting version, then edit it like it's documentation for a sharp new hire.
- How do you add MCP servers to Claude Code?
- Run claude mcp add inside Claude Code — it launches an interactive wizard where you pick or paste a server. MCP (Model Context Protocol) servers connect Claude Code to external tools: documentation lookups, databases, browsers, project trackers. Start with one or two you'll actually use; a wall of MCP servers slows sessions down and mostly just feels productive.
- Is Claude Code better than Cursor for beginners?
- Cursor is easier to start with because it's a visual editor — you watch changes happen in files. Claude Code is a terminal agent, which is a steeper first hour but stronger for autonomous multi-step work, backend tasks, and large refactors. If you've never used a terminal, start with Cursor. If you're comfortable in a shell, Claude Code's ceiling is higher.
- What should your first Claude Code project be?
- Something real but low-stakes: a bug fix on an existing project, a small feature with a test, or a script you've been putting off. Avoid 'build me an entire app' as prompt one — you'll get something impressive-looking that you can't maintain. Small, verifiable tasks teach you how the agent thinks before you trust it with anything that matters.
More on Vibe Code Rescue
Vibe Coding Flutter Apps in 2026: Tools, Workflow, and What Breaks
Yes, you can vibe code a Flutter app in 2026 — FlutterFlow, Claude Code, and Cursor with the Dart MCP server all work. Here's the honest tool comparison and where mobile vibe coding falls apart.
7 Best Lovable Alternatives in 2026 (From a CTO Who Fixes These Apps)
Lovable's credit limits and React-only opinions push a lot of builders to shop around. I ranked 7 Lovable alternatives by what actually ships — with real pricing and honest trade-offs.
7 Best Replit Alternatives in 2026 (Ranked by What Actually Ships)
Replit's credit-based Agent pricing surprises a lot of founders. I ranked 7 Replit alternatives by production readiness and real monthly cost — here's which one fits your situation.
7 Cursor Alternatives Worth Your Money in 2026 (Tested on Real Projects)
Shopping for a Cursor alternative? I've run all seven of these — Claude Code, Copilot, Windsurf, Codex, Replit, Lovable, Bolt — on real client codebases. Here's the honest verdict per use case.
Written by
Justin McKelvey
Fractional CTO & AI consultant in Austin, TX. 15 years building software, 50+ products shipped, $53M+ in client revenue generated. I help $1M–$50M founders ship production software and automate operations with AI — without hiring a full-time executive team.
Work with me