If you have heard developers talk about Claude Code and wondered what it actually does, you are in the right place. This tutorial explains how to use Claude Code from scratch: what it is, what it costs, how to install it, and how to use it safely on a real project. You do not need to be an AI expert. If you can open a terminal and run a command, you can follow along.
I use Claude Code in my own full stack work with .NET and the MERN stack, and this guide focuses on the steps that matter most when you are starting out. Every command and plan detail below is checked against Anthropic's official documentation as of November 2026.
What Is Claude Code?
Claude Code is an AI coding assistant from Anthropic that works directly inside your project. Unlike a normal chatbot, it can read your files, run commands, edit code, and work through a problem step by step while you watch and guide it.
Think of the difference this way. With a chatbot, you copy code into a chat window, read the answer, and paste the changes back yourself. With Claude Code, you describe what you want in plain English, and Claude finds the right files, proposes the change, and (with your permission) applies it.
Claude Code is not only a terminal tool. According to Anthropic's documentation, you can use it in:
- The terminal (the classic command-line version this guide focuses on)
- The web, at claude.ai/code
- The Claude desktop app, if you prefer a graphical interface
- VS Code and JetBrains IDEs, through official extensions
- Slack, GitHub Actions, and GitLab, for team and automation workflows
The core skills you learn in the terminal carry over to all of these.
Is Claude Code Free? Plans and Pricing Explained
Short answer: no, Claude Code is not included in the free Claude plan. Installing the tool costs nothing, but you need a paid plan or API access to actually use it.
Here is what Anthropic's official pricing page lists for individuals (prices in USD, excluding tax):
- Free ($0): chat on web, desktop, and mobile. Claude Code is not included.
- Pro ($20/month, or $17/month billed annually): includes Claude Code. A good starting point for students and individual developers.
- Max ($100/month): 5x the usage of Pro, for people who code with Claude most of the day.
- Ultra ($200/month): 10x Pro's weekly usage, with no 5-hour limit for verified accounts.
Team and Enterprise plans also include Claude Code. Another option is a Claude Console account, where you pay per use at API rates instead of a fixed monthly fee.
One detail beginners often miss: your Claude Code usage and your regular Claude chats share the same usage limit. Long chat sessions during the day leave less room for coding, and vice versa. Limits reset on a rolling five-hour window, with weekly limits on top. Prices can change, so always confirm on the official Claude pricing page before you subscribe.
Tip: Start with Pro. Upgrade to Max only if you regularly hit your limits during real work.
What You Need Before You Start
Make sure you have the following ready:
- A supported operating system: macOS 13.0 or later, Windows 10 (version 1809) or later, Ubuntu 20.04+, Debian 10+, or Alpine Linux 3.19+
- At least 4 GB of RAM and an internet connection
- A terminal: Bash, Zsh, PowerShell, or CMD all work
- An account: Claude Pro, Max, Team, or Enterprise, or a Claude Console account
- A code project to practice on. A small personal project is ideal for your first session.
On native Windows, Anthropic recommends installing Git for Windows so Claude Code can use Git Bash. It is optional; without it, Claude Code uses PowerShell instead.
How to Install Claude Code (Step by Step)
Step 1: Run the Installer for Your System
Open a terminal and run the command for your operating system. The native installer is Anthropic's recommended method because it updates itself automatically in the background.
macOS, Linux, or WSL:
curl -fsSL https://claude.ai/install.sh | bash
Windows PowerShell:
irm https://claude.ai/install.ps1 | iex
Windows CMD:
curl -fsSL https://claude.ai/install.cmd -o install.cmd && install.cmd && del install.cmd
Not sure which Windows shell you are in? If your prompt starts with PS C:\, you are in PowerShell. If it shows only C:\, you are in CMD.
You can also install with Homebrew (brew install --cask claude-code) or WinGet (winget install Anthropic.ClaudeCode), but those versions do not update automatically. You will need to upgrade them yourself from time to time.
Step 2: Verify the Installation
The installer shows no progress bar, so wait for it to finish. Then open a new terminal window and run:
claude --version
If you see a version number followed by "(Claude Code)", the installation worked. If your terminal says claude is not found, the install folder is not on your PATH yet; Anthropic's troubleshooting guide explains how to fix it. For a fuller health check, run:
claude doctor
This prints read-only diagnostics about your installation and settings without starting a session.
Step 3: Start Claude Code and Sign In
Move into your project folder and start Claude Code:
cd /path/to/your/project claude
On first use, Claude Code asks you to log in. Follow the prompts to sign in through your browser. Your credentials are saved, so you will not need to log in again. If you ever need to switch accounts, type /login inside the session.
Your First Session: A Practical Walkthrough
Once you are signed in, you will see a prompt where you can type in plain English. Here is a simple, safe sequence to get comfortable.
1. Ask Claude to Explain Your Project
Start with questions that only read your code. They change nothing, so they are a great way to see how Claude works:
what does this project do? where is the main entry point? explain the folder structure
You do not need to paste files into the chat. Claude Code reads the files it needs on its own. If you want to point it at a specific file, type @ followed by the file name.
2. Make Your First Small Change
Now try a small, low-risk task:
add a hello world function to the main file
Claude finds the right file and shows you the change. If it asks for permission, review the change and select Yes to approve it. Starting small lets you learn how Claude proposes and applies edits before you trust it with bigger work.
3. Use Git Through Conversation
Claude Code understands Git, so you can manage version control in plain English:
what files have I changed? commit my changes with a descriptive message create a new branch called feature/quickstart
Tip: Commit your work before asking Claude for large changes. That way you can always return to a known good state.
Understanding Permission Modes
Permission modes control what Claude can do without asking you first. This is the most important safety concept for beginners. You can switch modes at any time by pressing Shift+Tab, and the status bar shows which mode is active.
- Manual: Claude asks before most actions that edit files, run commands, or use the network. Best when you want to review everything.
- Accept edits: Claude can edit files and run common file commands in your project without asking. Useful when you plan to review changes afterwards with
git diff. - Plan: Claude researches and writes a plan but does not edit your source code until you approve it.
- Auto: a separate safety model reviews actions in the background instead of prompting you each time, and blocks things that look risky.
Note that in recent versions of Claude Code (v2.1.283 and later), auto mode is the default starting mode for terminal and VS Code sessions. Anthropic is clear that auto mode reduces prompts but does not guarantee safety. As a beginner, consider pressing Shift+Tab to switch to Manual mode while you learn, so you see every action before it happens.
Use Plan Mode for Bigger Tasks
For anything larger than a quick fix, Anthropic recommends a simple four-step rhythm: explore, plan, implement, commit.
- Explore: switch to plan mode with Shift+Tab (or start with
claude --permission-mode plan) and ask Claude to read the relevant code. - Plan: ask for a detailed plan, for example: "I want to add Google login. What files need to change? Create a plan." Press Ctrl+G if you want to edit the plan yourself.
- Implement: approve the plan and let Claude write the code, ideally with tests.
- Commit: ask Claude to commit with a clear message.
Skip the plan for tiny tasks like fixing a typo. A good rule from the docs: if you could describe the change in one sentence, you probably do not need a plan.
Give Claude Project Memory with CLAUDE.md
Every new session starts fresh. CLAUDE.md is a special file in your project that Claude reads at the start of every conversation, so it remembers your project's rules.
The easiest way to create one is to run this command inside Claude Code:
/init
Claude generates a starter file based on your project. Then keep it short and useful. A good CLAUDE.md might look like this:
# Commands - Run the dev server with: npm run dev - Run tests with: npm test # Code style - Use TypeScript for all new files - Use async/await instead of callbacks # Workflow - Run the tests after every change
Include things Claude cannot guess from the code: commands, team conventions, and project-specific gotchas. Leave out general advice like "write clean code". If the file gets too long, Claude may start ignoring important rules.
Essential Claude Code Commands for Beginners
You only need a handful of commands to be productive. Run these from your normal terminal:
claudestarts an interactive session.claude "task"starts a session with your first request already filled in.claude -p "query"runs a one-off question and exits.claude -ccontinues your most recent conversation in the current folder.claude -rlets you pick an older conversation to resume.
And these inside a running session:
/helpshows available commands./clearwipes the conversation so you can start a new task with a clean slate./compactshrinks a long conversation into a summary to free up space./rewind(or pressing Esc twice) restores an earlier checkpoint of your conversation, code, or both./exitcloses Claude Code.
Pressing Esc once stops Claude mid-task without losing context, so you can redirect it. Typing / shows every command and skill available to you.
How to Write Better Prompts for Claude Code
The quality of your results depends heavily on how clearly you describe the task. Compare these two requests:
- Vague: "fix the login bug"
- Specific: "users report that login fails after the session times out. Check the token refresh logic in src/auth/. Write a failing test that reproduces the problem, then fix it."
The second prompt tells Claude where to look, what the symptom is, and how to prove the fix works. A few habits that help:
- Give Claude a way to check its work. Ask it to run tests, a build, or a linter after making changes. It is the first recommendation in Anthropic's best-practices guide.
- Point to existing patterns. "Follow the pattern in UserService.cs" produces code that fits your project.
- Break big tasks into steps. Number them in your prompt.
- Ask for evidence. Request the test output or command result instead of a simple "done".
Real-World Use Cases for Claude Code
Here are practical ways students and developers use Claude Code day to day:
- Understanding a new codebase: ask "how does authentication work here?" instead of reading every file yourself.
- Debugging: paste an error message and ask Claude to find and fix the root cause.
- Writing tests: "write unit tests for the calculator functions" is a quick win on most projects.
- Refactoring: for example, converting callback-based code to async/await.
- Documentation: asking Claude to update the README with setup instructions.
- Code review: "review my changes and suggest improvements" before you open a pull request.
Claude Code also connects to external tools through MCP (Model Context Protocol), and it pairs well with automation platforms. If you are interested in workflow automation, my n8n tutorial for beginners is a natural next step.
Limitations to Keep in Mind
Claude Code is powerful, but it is not magic. Keep these limits in mind:
- It can make mistakes. It may produce code that looks right but misses edge cases. Always review changes and run your tests.
- Context fills up. Every file Claude reads uses space in its context window. Very long sessions can make Claude "forget" earlier instructions, which is why
/clearbetween unrelated tasks helps. - Usage limits apply. Heavy sessions can use up your plan's allowance, especially on Pro.
- Checkpoints are not a backup. Rewind only tracks edits made by Claude's file tools, not changes made through shell commands. Keep using Git.
- Availability depends on location. Claude Code works only in Anthropic's supported countries.
Common Beginner Mistakes to Avoid
- Mixing unrelated tasks in one session. Use
/clearwhen you switch topics. - Correcting Claude over and over. After two failed corrections, clear the session and write a better first prompt using what you learned.
- Writing a huge CLAUDE.md. Keep it short so the important rules stand out.
- Skipping verification. If you cannot test it, do not ship it.
- Starting with a big feature. Practise on small tasks first to build intuition.
Frequently Asked Questions
Is Claude Code free to use?
No. The installer is free, but using Claude Code requires a paid Claude plan (Pro, Max, Ultra, Team, or Enterprise) or a Claude Console account with API credits. The free Claude plan does not include Claude Code.
Do I need Node.js to install Claude Code?
Not with the recommended native installer. Node.js 22 or later is only needed if you choose the optional npm installation method.
Can I use Claude Code without the terminal?
Yes. You can use Claude Code in the Claude desktop app, on the web at claude.ai/code, or inside VS Code and JetBrains IDEs.
Does Claude Code work on Windows?
Yes. It runs natively on Windows 10 (1809+) and Windows 11, or inside WSL. Installing Git for Windows is recommended but optional.
Is my code safe with Claude Code?
You stay in control through permission modes. In Manual mode, Claude asks before editing files or running commands. Review changes, keep your work in Git, and avoid the bypass-permissions mode outside isolated environments such as containers.
Conclusion: Your Next Steps
Learning how to use Claude Code comes down to a few simple habits: install it with the native installer, start with small read-only questions, switch to Manual mode while you learn, use plan mode for bigger changes, and keep a short CLAUDE.md for your project's rules. Most importantly, always give Claude a way to verify its work.
Here is a simple plan for this week:
- Install Claude Code and run
claude --version. - Open a small personal project and ask "what does this project do?"
- Run
/initto create your first CLAUDE.md. - Ask Claude to write tests for one function, then run them.
If you want help bringing Claude AI into your own business workflows, take a look at my Claude AI automation services.
Official References
- Claude Code Quickstart (Anthropic)
- Claude Code Advanced Setup and System Requirements (Anthropic)
- Choose a Permission Mode (Anthropic)
- Best Practices for Claude Code (Anthropic)
- Claude Plans and Pricing (Anthropic)
- Claude Code 101 course (Claude Academy)



