← Imam's Academy

How to Use Claude Code: A Practical Step-by-Step Guide in 2026

Claude Code Isn't a Chatbot. It's a Teammate in Your Terminal.

If you're searching for how to use Claude Code, most guides hand you a list of commands and stop there. That list won't teach you the tool. I know, because my first week with it was a mess of vague prompts, half-finished files, and one afternoon where it confidently rewrote a working page into something worse. The commands are the easy part. The hard part is knowing what to ask for, in what order, and when to stop it and check its work.

Here's the short version before we get into the steps. Claude Code is Anthropic's coding agent that lives in your terminal. You open a folder, type claude, and talk to it in plain English. It reads your files, writes new ones, edits old ones, runs commands, and works with git. You don't need to know how to code to use it. You do need to know how to describe what you want, clearly, in small pieces. This guide covers the whole path: installing it, signing in, your first session, the commands that matter, the prompting habits that make it useful, and the mistakes that waste your first month.

Laptop on a desk showing code in an editor while using Claude Code

What You Need Before You Install

Three things, and the first one trips up more beginners than anything else. You need a paid Claude plan. Claude Code is not included in the free plan, so if you install it and sign in with a free account, it will not work, and the error message won't always say why. Pro costs $20 a month, or $17 a month billed yearly. Max is $100 a month, Ultra is $200, and Team is $25 per seat. Any of them includes Claude Code. If you'd rather pay per use, a Claude Console account billed at API rates works too. That's the first thing to get straight about how to use Claude Code: you're buying the plan, not a standalone app. All prices are in US dollars, before tax, and I checked them in November 2026. Anthropic changes its pricing page without much warning, so confirm on claude.com/pricing before you pay.

The second thing is a computer that meets the minimum. macOS 13.0 or later, Windows 10 version 1809 or later (64-bit), or Ubuntu 20.04 or Debian 10 or later, with at least 4 GB of RAM. That's it. You don't need admin rights, you don't need Node.js for the recommended install, and you don't need WSL on Windows. Git is optional but worth installing, because Claude Code works with git to track what it changes, and being able to undo a bad session is the safety net that lets you experiment without fear.

The third thing is a terminal. On a Mac, that's the Terminal app. On Windows, it's PowerShell or Windows Terminal. If the word "terminal" makes you nervous, relax. It's just a window where you type commands and press Enter. You will type about five commands in this whole guide, and every one of them is written out below. You don't need to memorise anything. You need to copy, paste, and read what comes back.

How to Use Claude Code on Windows, Mac, and Linux

The official installer is one command, and it's the method Anthropic recommends, because it updates itself in the background. On macOS, Linux, or WSL, open your terminal and run:

curl -fsSL https://claude.ai/install.sh | bash

On Windows, open PowerShell. Right-click the Start button, or press Win + X, and choose Terminal or Windows PowerShell. Make sure the prompt starts with PS. If it doesn't, you're in Command Prompt, which needs a different command. In PowerShell, run:

irm https://claude.ai/install.ps1 | iex

The installer shows no progress while it downloads, which feels broken the first time. It isn't. Give it a few minutes, let it finish, then close the terminal and open a new one. Now check the install worked:

claude --version

If it prints a version number, you're set. If Windows says "claude is not recognized," the installer put claude.exe in %USERPROFILE%\.local\bin and that folder isn't on your PATH yet. PATH is just the list of folders Windows searches for programs. Add that folder to your user PATH environment variable, open a new terminal, and run the version check again. On a Mac, the same problem shows up as "command not found," and the fix is the same idea: add $HOME/.local/bin to your PATH in your shell profile, then open a new terminal window.

Two other install methods exist if you prefer them. Homebrew users can run brew install --cask claude-code, Windows users can run winget install Anthropic.ClaudeCode, and if you already have Node.js 22 or later, npm install -g @anthropic-ai/claude-code works too. The catch is that Homebrew, WinGet, and npm don't auto-update, so you upgrade by hand. For a beginner, the native installer is the right default, because staying current matters with a tool that changes this fast.

How to Use Claude Code in Your First Session

Claude Code works inside a folder, so start by making one for your first project. Open your terminal, create a folder, move into it, and start Claude Code:

mkdir my-first-project
cd my-first-project
claude

The first run opens your browser so you can sign in with your Claude account. Do it once and the credentials are stored. If you signed in with a free plan by mistake, this is where you'll find out, because Claude Code will tell you it isn't included. Sign out, sign in with the paid account, and try again.

Once you're in, you'll see a prompt and a blinking cursor. Type your first task in plain English. Not "build me a website." Something small and specific, like this:

Make a single HTML page for a bakery called Morning Crumb. It should have a heading, a short welcome paragraph, a list of three breads with prices in dollars, and a contact section with a phone number placeholder.

Watch what happens. Claude Code reads the (empty) folder, writes the file, and shows you what it did. It will probably ask you a question or two, or it will just build it and show you a summary. Either way, read the summary. Then open the file it made and look at it in your browser. That's your first loop, and it's the whole skill in miniature: describe, watch, check, correct.

Now run the command that makes every later session better:

/init

This reads your project and writes a file called CLAUDE.md, which is a short document describing what the project is, how to build it, how to test it, and what conventions it follows. Claude Code reads CLAUDE.md at the start of every session, so it stops guessing and starts remembering. Run /init in the first session of any project, and re-run it when the project changes shape. It takes a minute, and it pays for itself every session after.

How to Use Claude Code with Plan Mode

Plan mode is the habit I would build first, because it stops the most expensive beginner mistake: letting the agent edit files before you know what it plans to do. In plan mode, Claude reads your code, asks questions, and writes a plan, but it does not change anything until you approve the plan.

There are three ways to enter it. Press Shift+Tab until the status bar shows plan mode. Type /plan at the prompt, optionally with the task attached, like /plan add a contact form to the bakery page. Or start a session in it directly with claude --permission-mode plan. Any of them works. Pick one and use it for every job that touches more than a file or two.

Here's how a plan-mode session actually goes. You describe the job. Claude asks a clarifying question, maybe two. It writes a plan: which files it will change, what it will add, what it will test. You read the plan. If something is wrong, you say so, and it revises the plan. When the plan looks right, you approve it, and only then does it start editing. That pause between "here's my plan" and "go" is where beginners save hours. A bad plan caught early costs a sentence. A bad build caught late costs an afternoon.

Permission modes are the wider idea behind plan mode. Claude Code asks before it does things that change your files or run commands, unless you tell it otherwise. Early on, keep it asking. The day you find yourself approving the same safe action for the twentieth time, that's the day to loosen the rules for that specific action, not before. Never run in full auto-approve mode on a project you care about until you've watched it work carefully for weeks. Speed is not worth a deleted file.

The Ten Commands Worth Memorizing

Type / in a session and the menu scrolls past a hundred entries. Ignore most of them. These ten cover almost everything a beginner does, and they're all from Anthropic's own commands reference. A slash command only works at the very start of your message, and anything you type after the name becomes its argument.

  • /help — shows help and the available commands. When in doubt, start here.
  • /init — generates a starter CLAUDE.md for the project. First session in any repo.
  • /clear — starts a new conversation with empty context. Use it when you switch to an unrelated task, because a long, mixed conversation makes the agent slower and sloppier.
  • /compact — summarises the conversation so far to free up context. Run it when a session gets long and answers start drifting.
  • /context — shows what's filling your context window. The first thing to check when things feel slow.
  • /model — switches the model. Sonnet 5.5 is the default and the right one for most jobs. Opus 5.5 is stronger and costs more usage; save it for genuinely hard problems.
  • /plan — enters plan mode, optionally with a task already attached.
  • /usage — shows your plan's usage limits and how much you've used. Check it before a long session, not after it stops.
  • /resume — picks up a previous session. Your old conversations aren't gone when you close the terminal.
  • /rewind — steps back to an earlier point in the session, which is how you undo a bad turn without starting over.

Two keyboard shortcuts earn their keep just as fast. Shift+Tab cycles through permission modes, including plan mode. The @ symbol points at a file, so @index.html tells Claude exactly which file you mean instead of hoping it guesses. The ! prefix runs a shell command, so !ls lists the folder without leaving the session. That's the whole cheat sheet. Everything else, you learn when you need it.

How to Talk to It So It Builds What You Meant

The difference between people who love Claude Code and people who quit it is almost never the tool. It's the prompt. The agent is literal in a way that surprises beginners. It does what you said, not what you meant, and the gap between those two is where the frustration lives. Four habits close that gap.

Give it one job, not five. "Build me a website with a blog, a shop, a contact form, and a newsletter signup" is five jobs wearing one sentence. The agent will do all five, badly, and you'll spend longer fixing them than building them would have taken. Give it one job. When that job works, give it the next one. Small, finished steps beat big, half-finished ones every time.

Name the result, not the method. Don't say "use flexbox." Say "the three cards should sit side by side on desktop and stack on mobile." Don't say "write a function." Say "when the user clicks the button, the price should update without reloading the page." You know what the thing should do. Let the agent pick how. The one exception is when you have a real constraint, like "this must work without any JavaScript," in which case say so plainly.

Always include a test step. End your request with how you'll check it. "After you build it, open the page and tell me if the form works." "Run the build command and fix any errors." "Show me the three things that changed." An agent that has to prove its work catches its own mistakes. An agent that just writes files and stops does not.

Correct it like a colleague, not like a search box. When something comes back wrong, don't start a new session and retype the whole request. Say what was wrong and what you wanted instead. "The heading is too big, and the button should say 'Get the free pack' instead of 'Submit'." Short, specific corrections are the fastest way to a good result, and they're how the session builds up shared context instead of starting from zero each time.

Close-up of colourful code on a dark computer screen

Five First Projects That Actually Teach You the Tool

Reading about how to use Claude Code teaches you nothing. Building five small things teaches you everything. Do them in this order, because each one adds one new skill.

1. A one-page landing page. Pick a real subject, a bakery, a coaching service, your own portfolio. Ask for a heading, three sections, and a contact form. This teaches you the basic loop: describe, watch, check, correct. It also gives you something you can show someone, which matters more than it sounds.

2. A file sorter. Ask it to write a small script that moves files in a folder into subfolders by type: images into one folder, documents into another. This teaches you that Claude Code isn't only for websites. It's for the boring jobs too, and the boring jobs are where it saves the most time.

3. A content repurposer. Give it a blog article you wrote and ask it to turn it into five short social media posts, each under a character limit you set. This teaches you how to feed it existing files with @, and how to set constraints it actually follows.

4. A bug fix in a real project. Take something you built, break one thing on purpose, or find a real bug, and ask it to find and fix it. Describe the symptom, not your theory about the cause. "The button does nothing when I click it" is a better prompt than "I think the event listener is wrong." This teaches you debugging, which is the skill that separates users from power users.

5. A small automation. Ask it to build a script that reads a spreadsheet, or a text file, and produces a summary. Something you do by hand every week. This is the project that shows you what Claude Code is really for. Not party tricks. The repetitive job you hate, done by an agent you built in an afternoon.

Do one a day for a week. By the fifth, you'll stop thinking of it as a chatbot and start thinking of it as a junior developer who never sleeps and needs clear instructions. That's the right mental model. Treat it like a smart colleague who knows nothing about your project until you tell them, and you'll get good work out of it.

How to Use Claude Code Every Day Without Burning Your Limits

Subscription plans don't have unlimited use. They have a rolling five-hour window and a weekly limit, and higher plans get more of both. Anthropic doesn't publish the exact numbers, and they shift with demand, which is annoying but honest. What matters is the habit, not the number. Learning how to use Claude Code inside its limits is what keeps it cheap.

First, check /usage before a long session. If you're near the edge of the five-hour window, do the small job now and the big job after the window resets. Second, use /compact when a session gets long. A bloated conversation burns context, and context is what your limits are made of. Third, use /clear between unrelated tasks. A fresh conversation is cheaper and sharper than a long one carrying three jobs at once. Fourth, pick the right model. Sonnet 5.5 handles most work. Reaching for Opus 5.5 on every job drains your limits faster for no benefit, the same way buying the strongest tool for every job wastes money.

When you do hit the wall, the message is plain: limit reached. Wait for the window to reset, or switch to the API for that job if you have a Console account. Don't buy a bigger plan in frustration. Upgrading from Pro to Max costs $80 more a month for five times the usage, and that's worth it only if you hit Pro's limits most weeks. If you hit the wall once, that's a busy day, not a reason to upgrade. If you hit it every Tuesday, that's the signal.

Four Mistakes That Waste Your First Month

Approving everything without reading it. The agent shows you a diff, a summary of what it changed, before it applies it. Read it. Every time. The one time you don't read it is the time it renames a file you needed or deletes a section you wrote. The diff is short. The recovery is not.

Working without git. If your project isn't in git, you have no undo button. Initialise a repository, commit before you start a session, and commit after each working step. Then a bad session costs you one command, git checkout ., instead of an evening of rebuilding. This is the single most valuable habit in this whole guide.

Asking for the whole project in one prompt. I said this already, and I'm saying it again, because it's the mistake I made most. A 500-word prompt describing an entire app produces a 500-line answer full of guesses. Five 100-word prompts, each describing one finished piece, produce five pieces that work. Small steps are not slower. They're faster, because you spend less time fixing.

Trusting output you haven't tested. Claude Code writes code that looks right and doesn't run. It writes facts that sound right and aren't true. It invents a function name that doesn't exist and uses it confidently. None of this is malice. It's a language model predicting the next likely thing. Your job is the test step. Run the code. Open the page. Click the button. Check the fact. The human pass is the product, and skipping it is how broken work ships.

What It Costs, Honestly

Pro at $20 a month is where almost everyone should start, and it's where I started. It's enough for a few focused sessions a week, which is how most beginners actually use it. Max at $100 is for daily builders who hit Pro's limits most weeks. Ultra at $200 is for people running agents all day or leaving long runs going overnight. The API is for spiky use, automation, or products you're selling, where you pay per token instead of per month. Sonnet 5.5, the model most sessions run on, costs $2 per million input tokens and $10 per million output tokens.

The honest maths is simple. If Claude Code saves you ten hours in a month, Pro has paid for itself at any freelance rate worth having. Ten hours is two decent sessions. And if you want to learn how to use Claude Code for paid work, start by selling one small automation to one local business. The question isn't whether $20 is worth it. It's whether you're giving it jobs that save real time, or asking it to do party tricks. Give it one real job, test what it makes, and keep the workflow that saves you time.

Questions People Ask About Claude Code

Do I need to know how to code to use Claude Code? No. That's the whole point of it. You describe what you want in plain English, and it writes the code. What helps is knowing what you want clearly enough to describe it. If you can explain a job to a person, you can explain it to Claude Code.

Is Claude Code free? No. The free plan doesn't include it. The cheapest way in is Pro at $20 a month, or the API if your usage is light and spiky. If you try to sign in with a free account, it won't work, and that's the single most common reason a first login fails.

Can I use it on Windows? Yes. The native installer runs in PowerShell with one command, and Claude Code works in Windows Terminal. You need Windows 10 version 1809 or later, 64-bit, and 4 GB of RAM. No admin rights, no Node.js, no WSL required.

What happens if it breaks my project? If your project is in git, you undo it in one command. If it isn't, you rebuild it by hand, which is why this guide keeps saying: commit before you start. The agent is careful, but it is not perfect, and git is the safety net that makes experimenting cheap.

Can it work on a project I didn't start? Yes, and that's one of its best uses. Open any folder, run /init, and it reads the codebase and explains it back to you. Ask it to find a bug, add a feature, or explain a file you don't understand. It learns the project from the files, not from you.

The Short Version

That's how to use Claude Code: install it with one command, sign in with a paid plan, run claude inside a project folder, and describe one small job in plain English. Run /init so it remembers your project. Use plan mode for anything bigger than a file or two. Learn ten commands, keep your prompts small and specific, test everything it makes, and keep your project in git so a bad session costs you a command instead of an evening. Start on Pro at $20 a month, and let the limits tell you when to move up.

The tool is not the hard part. Describing what you want, clearly, in small pieces, is the hard part, and it's a skill that gets better fast. Build the five starter projects above, one a day, and by the end of the week you'll know whether Claude Code earns its place in your workflow. For most people who give it real jobs, it does.

If you want the agent workflows that turn this skill into something you can sell, the AI Agent Starter Kit has the plug-and-play setups I use for first builds, and the free AI Creator Prompt Pack gives you 64 copy-ready prompts to practise with. Start with the free pack, build your first project, and see what the tool does for you before you spend anything more.

Keep Reading

Two guides that go with this one: