Mindket
Tool guideClaude Code by AnthropicPaid

How to use Claude Code: what it is and how to start

Claude Code is Anthropic's coding agent. You start it with the claude command inside a project folder, and it reads your files, answers questions about them and edits them. Permission modes decide when it asks you first. It runs in a terminal, a desktop app, VS Code, JetBrains and on the web, and it needs a paid Claude plan or a Console account.

Good for
  • Questions about a codebase
  • Edits across several files
  • A plan before it edits
  • Rules that always run

At a glance

  • Claude Code works inside a project folder: it reads the files it needs, so you paste nothing in.
  • It needs a paid Claude plan, a Console account or a cloud provider. A free claude.ai account is not on the list.
  • claude --version checks the install, claude opens a chat in your folder and claude -p "question" answers once and exits.
  • Permission modes set what it may do without asking, and plan mode makes it write a plan before it edits.
All tools
On this page
  1. YouTube tutorials
  2. What Claude Code is
  3. What Claude Code is good for
  4. When to use Claude Code, and when to pick another tool
  5. How to use Claude Code, step by step
  6. An example to try
  7. Tips for better results
  8. Limits to know
  9. Learn more about Claude Code
  10. Frequently asked questions
  11. Sources

What Claude Code is

Claude Code is a coding agent made by Anthropic, the company behind Claude. An agent is a program that takes a goal, reads what it needs, proposes changes and carries them out, where a chatbot only replies with text. You start it with the claude command inside a project folder, and it works on the files in that folder.

It runs in a terminal, and Anthropic's setup page also lists a desktop app, VS Code and JetBrains, the web, Slack and CI as places it runs. It is not free. It comes with a Pro, Max, Ultra, Team or Enterprise Claude plan, with a Claude Console account, or through Amazon Bedrock, Google Cloud or Microsoft Foundry. A free claude.ai account does not include it.

What Claude Code is good for

  • Answers about a project: ask what it does, which technologies it uses and where the main entry point is, and Claude reads the files to answer, as the quickstart shows.
  • Edits across files: ask for a small change, such as a hello world function in the main file, and it finds the file and shows the change before it writes.
  • A first move on an error: start a session with a prompt such as claude "fix the build error" and it begins from that sentence.
  • A plan before any edit: plan mode makes it read your code and write a plan, and it changes nothing until you approve.
  • One-off answers: claude -p "explain this function" prints one answer and exits, which suits pipes and scripts.
  • Your own shortcuts: a skill, a folder with a SKILL.md file, becomes a slash command you type in a session.
  • Rules that always run: a hook is a shell command that runs at set points, for example to block an edit to a protected file.

When to use Claude Code, and when to pick another tool

Claude Code earns its place when the work lives in a folder of files. For chat, writing and other jobs that need no folder, a plain assistant is quicker to open.

Your jobUse Claude Code?Or try
Understand a project folder and change files in itYes, it reads the folder itselfCursor, if you want an editor window around the agent
Draft an email, summarize a PDF or talk through an ideaNo, there is no folder to work inClaude, ChatGPT or Gemini
Get suggestions while you type in an editorNot what it is forGitHub Copilot or Cursor
Work with no cloud account, on your own machineNot by default, it signs in to Anthropic or a cloud providerOllama or LM Studio, and Ollama can launch Claude Code against a local model
Connect apps and run steps on a schedule without codeNot the first choicen8n or Zapier
Give an AI app access to a database or another toolYes, through MCP servers added with claude mcpThe MCP page explains the standard

How to use Claude Code, step by step

Install Claude Code first with the commands in lesson 1. The four pictures below show what the commands printed on a Windows PC, in order.

  1. Open a new terminal and run claude --version. A version number followed by (Claude Code) means the install works. The number changes with each release, so yours will differ from this one.

    A dark terminal frame. The command claude --version is ringed in gold, and the line under it reads: 2.1.112 (Claude Code).
  2. Run claude --help to see what the command accepts. The text opens with Usage and says Claude Code starts an interactive session by default. Under Options, -c continues the last conversation in this folder, -p prints one answer and exits, and -r resumes an older conversation.

    The command claude --help, ringed in gold, above the start of its text: the Usage line, the Arguments and Options lists, and the -c, -p and -r options.
  3. The same text ends with a Commands list. mcp manages MCP servers, plugin manages plugins, update checks for a new version and doctor checks the health of the auto-updater. A newer release may list more.

    The command claude --help, ringed in gold, above the end of its text: the Commands list with agents, auth, auto-mode, doctor, install, mcp, plugin, setup-token and update.
  4. Go to a folder that holds a small README.md and run claude -p "In two sentences, what does this folder hold?". Claude reads the folder, prints one answer and returns you to the prompt. Your reply will word it differently, because it depends on your files and varies from run to run.

    The command claude -p with the question In two sentences, what does this folder hold?, ringed in gold, and a two-sentence reply that names the Pocket Recipes project, its README.md and an empty recipes.json.

Real output of Claude Code 2.1.112 on Windows, shown in a terminal frame, taken on 6 November 2026.

To chat instead of asking once, run claude in a project folder and log in when it asks. The tutorials at the top of this page show a session on screen, and the install lesson covers the login.

An example to try

Make a folder called pocket-recipes with a README.md in it, written in any editor and holding a few lines about a made-up project. Then run these two lines from the folder that contains it.

cd pocket-recipes
claude -p "In two sentences, what does this folder hold?"
  • The reply names the project from your README and mentions the files that are in the folder.
  • It stays within two sentences, since you asked for two.
  • It invents no file you do not have. If it does, ask again with the file list in the prompt.

Tips for better results

  • Start claude in the project folder, as the quickstart does, so it sees the right files. The terminal guide explains how to move there with cd.
  • Ask a question before you ask for an edit. The answer shows whether Claude has understood the project.
  • Press Esc to interrupt Claude while it works, Shift+Tab to switch the permission mode and / to list the commands.
  • Run claude -c to continue the last conversation in the folder, or claude -r to pick an older one.
  • Put standing instructions in a CLAUDE.md file. /init writes a first draft of it, as the commands page describes.
  • When it asks to approve the same safe command again and again, allow it once with /permissions. The permission modes page lists the six modes.

Limits to know

  • Access costs money or needs a cloud account. The figures sit on Anthropic's pricing page, and plans and limits change.
  • The -p flag skips the workspace trust dialog, and the help text says to use it only in directories you trust.
  • The permission mode a new session starts in depends on the version. From v2.1.283, the permission modes page says, interactive terminal and VS Code sessions start in auto mode, so check the status bar.
  • It acts on your files. Read each proposed edit before you approve it, and keep a project you care about under version control.

Learn more about Claude Code

  1. 1Claude Code course for beginners · Lesson 1 of 4How to install Claude Code and run your first sessionInstall Claude Code on macOS, Windows or Linux, check the version, log in and run your first session, with the official commands and fixes for common errors.9 min
  2. 2Claude Code course for beginners · Lesson 2 of 4Claude Code plan mode: how to ask for a plan before any editClaude Code plan mode makes Claude read your code and write a plan before it edits anything. Learn Shift+Tab, /plan, the approval choices and permission modes.8 min
  3. 3Claude Code course for beginners · Lesson 3 of 4Claude Code slash commands: the built-in ones and how to write your ownLearn the Claude Code slash commands worth knowing, then write a custom command as a skill: where the file goes, arguments, who can run it and how to reload it.8 min
  4. 4Claude Code course for beginners · Lesson 4 of 4Claude Code hooks: how to set up your first hook, step by stepClaude Code hooks run your own commands at set points in a session. Add a notification hook, check it with /hooks, then learn matchers, exit codes and blocking.9 min

Frequently asked questions

Is Claude Code free?

No. It comes with a paid Claude plan or a Console account, or through Amazon Bedrock, Google Cloud or Microsoft Foundry. A free claude.ai account does not include it, and Anthropic's pricing page has the current figures.

Do I need to know how to code to use Claude Code?

Not to start. The terminal guide shows a first-time user how to open a terminal, and it says Claude can help you begin a project when you have none. You will read more code than you write, so expect to approve edits you only partly follow.

What is the difference between Claude and Claude Code?

Claude is Anthropic's assistant for chat, writing and analysis. Claude Code is its coding agent, started with the claude command in a project folder, where it reads and edits files. A Claude plan can cover both.

Does Claude Code work on Windows?

Yes. It runs natively in PowerShell or CMD, or inside WSL, and it needs no administrator rights. The four pictures on this page come from a Windows PC.

How do I stop Claude Code from changing files without asking?

Switch to plan mode. Press Shift+Tab until the status bar shows plan mode on, type /plan, or start with claude --permission-mode plan. Claude then reads and plans but edits nothing until you approve the plan.

Can I run Claude Code on a local model?

Yes, through Ollama. Its ollama launch claude command sets Claude Code up against your own Ollama server, and you pick a model when it asks. The Ollama page on Mindket covers the rest.

What does claude -p do?

It prints one answer and exits instead of opening a chat. The help text calls it useful for pipes, which means you can send its answer to another program.

Sources

  1. Claude Code docs: Quickstart (read November 4, 2026)https://code.claude.com/docs/en/quickstart
  2. Claude Code docs: Advanced setup (read November 4, 2026)https://code.claude.com/docs/en/setup
  3. Claude Code docs: Terminal guide for new users (read November 4, 2026)https://code.claude.com/docs/en/terminal-guide
  4. Claude Code docs: Commands (read November 4, 2026)https://code.claude.com/docs/en/commands
  5. Claude Code docs: Choose a permission mode (read November 4, 2026)https://code.claude.com/docs/en/permission-modes
  6. Claude Code docs: Extend Claude with skills (read November 4, 2026)https://code.claude.com/docs/en/skills
  7. Claude Code docs: Automate actions with hooks (read November 4, 2026)https://code.claude.com/docs/en/hooks-guide
  8. Ollama Docs: CLI reference (read November 5, 2026)https://docs.ollama.com/cli

Share this lesson

Install Claude Code and run a first session

Lesson 1 gives the official install command for your system and walks through the login.

Start the lesson

This lesson as Markdown · All tools · All courses