Guide
What Is Claude Code?
A plain-English guide to Claude Code, Anthropic's coding agent: what it is, how it works, where it runs, which plans include it, how its usage limits work, how it differs from Codex, GitHub Copilot and Cursor, and its risks.
Quick answer: Claude Code is Anthropic’s AI coding agent: you describe a task in plain English, and it reads your codebase, edits files, runs commands and tests, and makes git commits until the job is done. It runs in the terminal, in VS Code and JetBrains IDEs, in a desktop app, in the browser at claude.ai/code, in the Claude mobile apps and in Slack (Anthropic). It is included with every paid Claude plan, from Pro at $20 a month, and is not included on the Free plan (Anthropic pricing). In the Stack Overflow Developer Survey 2026, 65.5% of 12,255 respondents had used Claude Code in the past year, more than any other coding agent in the survey. The one caveat: on a subscription it shares one usage allowance with your Claude chats, so long coding sessions can reach the plan’s five-hour and weekly limits.
Definition: Claude Code is an agentic coding tool made by Anthropic. Instead of suggesting the next line of code, it takes a goal, such as “fix the failing login test”, and works through it: it searches the project, plans the change, edits files, runs the code and checks the result, within permission rules you control. It uses Anthropic’s Claude models.
This page explains one product. To compare coding tools, see best AI for coding, which ranks Claude Code against OpenAI Codex, GitHub Copilot, Cursor and others; for editors, see best AI IDE. For the Claude chat app, see the Claude app guide.
What is Claude Code?
Anthropic describes Claude Code as “an agentic coding tool that reads your codebase, edits files, runs commands, and integrates with your development tools” (Anthropic).
The important word is agentic. AI autocomplete tools suggest the next few lines and leave the developer to do everything else. Claude Code works more like a developer who has been handed a ticket: it decides which files to read, makes the changes, runs the tests, reads the errors, fixes them and reports back. For a broader explanation of the idea, see what is agentic AI.
Claude Code vs Claude vs the Claude models
Three things share the Claude name, and they are easy to mix up.
| Name | What it is | Who it is for |
|---|---|---|
| Claude app | Anthropic’s chat assistant on the web, desktop and mobile, which also runs multi-step tasks on your files and apps | Everyone |
| Claude Code | Anthropic’s coding agent, which works directly inside a software project | Developers, and people without a coding background who are building software |
| Claude models | The AI models underneath both, such as Claude Fable 5.2, Claude Opus 5.5, Claude Sonnet 5.5 and Claude Haiku 5.5 | Both products, plus developers using the Claude API |
The model is the brain; Claude Code is the set of hands and tools around it. Inside Claude Code, the model can open files, run the code and see what actually happens, rather than working only from what has been pasted into a chat.
Is Claude Code free?
No. Claude Code is included with every paid Claude plan, starting with Pro at $20 a month or $200 a year, and the Free plan does not include it (Anthropic pricing). Developers can also pay per token through an Anthropic Console (API) account instead of a subscription (Anthropic). The full plan breakdown is in Claude Code pricing and plans below.
How does Claude Code work?
Claude Code works in a loop: it reads, plans, acts, checks the result and repeats until the task is finished or it needs your input.
What happens when you give Claude Code a task
- You describe the goal. You type a request in plain English in your terminal, IDE, the desktop app or the browser: “add a dark mode toggle to the settings page”.
- It explores the project. Claude Code searches and reads the relevant files itself. You do not paste code into a chat box.
- It plans. In plan mode it writes out a plan first, which you can approve or change before any file is touched.
- It acts with tools. Claude Code edits files, runs shell commands, installs packages, runs tests and uses git. Each of these is a tool call.
- It checks its own work. It reads test output, error messages and logs, and fixes what broke.
- It works within your permission settings. In Manual mode it asks before editing files or running commands; in auto mode, a separate classifier reviews each action before it runs (see Permissions, auto mode and sandboxing).
- It reports back. When it is done, it summarises what changed, and it can write the commit message or open a pull request.
Because the model does the reading and deciding, the request matters. Anthropic’s best-practice guide recommends naming the file, describing the symptom and saying what “fixed” looks like up front, and giving Claude a check that comes back pass or fail, such as a test file, a build, a linter or a screenshot to compare against a mockup, so it can verify its own work (Anthropic).
What Claude Code can do
Anthropic’s documentation lists these jobs (Anthropic):
- Write tests and fix failing ones
- Build features and fix bugs across many files
- Make git commits and open pull requests
- Connect to outside tools and data through the Model Context Protocol (MCP)
- Follow project instructions stored in a
CLAUDE.mdfile - Run skills and hooks that automate repeat work
- Split work across subagents and background agents
- Run in scripts and pipelines with
claude -p - Run scheduled tasks in the cloud, on the desktop or with
/loop - Hand a session from one surface to another, such as from the terminal to the web
- Run inside CI pipelines on GitHub Actions and GitLab
Where Claude Code runs
Claude Code is one product with several front doors, all using the same agent (Anthropic).
| Surface | What it looks like | Suits |
|---|---|---|
| Terminal (CLI) | A text interface you start by typing claude in a project folder | Developers who work in the command line; scripting and automation |
| VS Code extension | A panel inside Visual Studio Code, which also installs in Cursor | Developers who want to see diffs in their editor |
| JetBrains plugin | A plugin for IntelliJ IDEA, PyCharm, WebStorm and other JetBrains IDEs (needs the CLI installed separately) | Developers who work in JetBrains IDEs |
| Desktop app | A standalone app for macOS, Windows (x64 and ARM64) and Ubuntu or Debian (in beta) | People who would rather not use a terminal |
| Web and mobile | claude.ai/code in the browser, plus the Claude iOS and Android apps | Starting or checking tasks away from your computer |
| Slack | Mention @Claude in Slack with a bug report and get a pull request back | Teams handing off small fixes from a conversation |
| CI and code review | GitHub Actions, GitLab CI/CD and automatic code review on every GitHub pull request | Automated fixes and reviews |
The desktop app needs a paid subscription, and most surfaces need a Claude subscription or an Anthropic Console account (Anthropic). The terminal, VS Code and JetBrains versions can also run through third-party cloud providers, including Amazon Bedrock, Google Cloud’s Agent Platform (formerly Vertex AI) and Microsoft Foundry (Anthropic).
Anthropic launched a web version of Claude Code, with a sandboxing feature, on 20 October 2025 (Wikipedia). On 17 September 2026 it opened a beta of redesigned Projects to select Pro and Max subscribers who use cloud sessions in Claude Code: a coordinator splits a job into parallel threads, each a cloud session working on its own branch and copy of the repository, and every thread adds to and draws from a shared memory (Anthropic).
How to install Claude Code
Anthropic’s documented install commands are (Anthropic):
| System | Command |
|---|---|
| macOS, Linux, WSL | curl -fsSL https://claude.ai/install.sh | bash |
| Windows PowerShell | irm https://claude.ai/install.ps1 | iex |
| Homebrew (macOS) | brew install --cask claude-code |
| WinGet (Windows) | winget install Anthropic.ClaudeCode |
After installing, open a project folder in your terminal and type claude; claude --version confirms the install. Native installs update themselves in the background, while Homebrew and WinGet installs do not, and Homebrew’s stable claude-code cask is typically about a week behind the latest release. On native Windows, Anthropic recommends installing Git for Windows so Claude Code can use its Bash tool; without it, Claude Code uses PowerShell instead.
If you would rather not use a terminal at all, the desktop app and claude.ai/code need no command-line install.
Claude Code pricing and plans
Claude Code is included in every paid Claude plan, and it draws on the same usage allowance as the rest of the plan. Anthropic’s help centre says the limits “are shared across Claude and Claude Code, meaning all activity in both tools counts against the same limits” (Anthropic).
| Plan | Price | Claude Code | Usage allowance |
|---|---|---|---|
| Free | $0 | Not included | Limited usage every five hours and every week |
| Pro | $20 a month, or $200 a year ($17 a month) | Included | The baseline (1x) |
| Max | $100 a month | Included | 5x Pro usage every five hours and every week; $100 a month in API credits |
| Ultra | $200 a month | Included | 10x Pro usage every week, with no five-hour limit for verified accounts; $200 a month in API credits |
| Team, Standard seat | $25 per seat a month, or $20 billed annually | Included | More usage than Pro |
| Team, Premium seat | $125 per seat a month, or $100 billed annually | Included | 5x a Standard seat |
| Enterprise | $20 per seat a month billed annually (20-seat minimum) | Included | Seat price plus usage at API rates |
| API (Anthropic Console) | Pay per token | Included | No plan limit; you pay for what you use |
Prices are Anthropic’s list prices, excluding tax (Anthropic pricing). On 30 October 2026 Anthropic renamed its two top plans: Max 5x became Max and Max 20x became Ultra, with prices unchanged at $100 and $200 (TNW). For a fuller comparison of the consumer plans, see Claude Pro vs Max. Per-token API prices for each model are on the model pages and in best LLM APIs.
How Claude Code usage limits work
Subscription plans meter usage in two ways (Anthropic):
- A five-hour session limit on Pro and Max. Verified Ultra accounts have no five-hour limit.
- A weekly limit, which caps total use across the week.
Every file Claude Code reads and every step it takes uses tokens, so a long agent run on a large codebase uses far more of the allowance than a short chat. For how tokens are counted, see what are AI tokens.
Which plan do you need for Claude Code?
| If you… | Consider | Why |
|---|---|---|
| Are trying Claude Code or use it a few times a week | Pro ($20) | The cheapest plan that includes Claude Code, on every surface |
| Reach the five-hour limit most working days | Max ($100) | 5x the Pro allowance in every five-hour window and every week |
| Run Claude Code for most of the working day, or run agents in parallel | Ultra ($200) | 10x Pro weekly and, once verified, no five-hour limit |
| Run it in scripts and CI, or want exact cost control | API (Console) | Pay per token with no plan ceiling |
| Buy for a company | Team or Enterprise | Central billing, admin controls, Premium seats for heavy users |
Which models does Claude Code use?
Claude Code runs Anthropic’s own Claude models. Anthropic’s documentation names Claude Fable 5.2, Opus 5.5, Sonnet 5.5 and Haiku 5.5 (Anthropic), and you can switch model inside a session.
- Claude Fable 5.2, released on 9 November 2026, is Anthropic’s Mythos-class model, a tier above Opus. Claude Code made it the default Fable model the same day (changelog). On Max and Ultra it can use up to half the weekly limit; on Pro it is paid for with usage credits (Anthropic pricing).
- Claude Opus 5.5, released on 22 September 2026, is the Opus model, the tier usually chosen for hard, multi-file work.
- Claude Sonnet 5.5, released on 28 September 2026, costs half as much per token as Opus 5.5 through the API.
- Claude Haiku 5.5, released on 7 October 2026, is the smallest and cheapest of the four.
For how each model performs, see its page or the AI model rankings.
Key Claude Code features explained
| Feature | What it does | Why it matters |
|---|---|---|
CLAUDE.md | A file in your project with standing instructions: coding style, test commands, things to avoid | Claude Code reads it every session, so you stop repeating yourself. See context engineering |
| Plan mode | Claude writes a plan and waits for approval before changing anything | Catches a wrong approach before it touches 30 files |
| Subagents | Claude hands parts of a task to separate agents, each with its own context | Keeps long jobs focused |
| MCP servers | Connections to outside tools and data such as GitHub, databases, design files or issue trackers, added with claude mcp add | Claude can read a ticket or a design, not only your code. See best MCP servers |
| Skills | Packaged instructions and scripts for a repeat job, loaded when relevant | Teaches Claude Code your team’s way of doing things |
| Hooks | Scripts that run automatically at set points, such as after every file edit | Enforce formatting, tests or checks without asking |
Headless mode (claude -p) | Runs Claude Code without the interactive interface, inside scripts and pipelines | Automation, batch jobs and CI |
| Background and scheduled tasks | Long jobs that keep running while you work on something else, or that run on a schedule | Hand off work and come back to the result |
| Claude Agent SDK | ”The same tools, agent loop, and context management that power Claude Code”, as a library for Python and TypeScript | Build your own agents on the same foundation (Anthropic) |
Permissions, auto mode and sandboxing
Claude Code can run real commands on your machine, so how much it may do without asking is the most important setting. Anthropic’s documentation describes several permission modes (Anthropic):
- Manual (the
defaultsetting) asks before Claude Code edits files or runs commands, and you can allow specific commands permanently. - Accept edits lets Claude Code edit files without asking, while still asking before other actions.
- Plan has Claude Code research and propose a plan without changing anything.
- Auto has a separate classifier model review each action before it runs, blocking anything that goes beyond your request, targets unrecognised infrastructure or appears driven by hostile content Claude has read. Anthropic says auto mode “reduces permission prompts but does not guarantee safety”. From 14 August 2026, auto mode became the default for new sessions on Pro, Max and Team plans; a default you set yourself, or one your organisation manages, stays in place (Anthropic).
Sandboxing is a boundary the operating system enforces around the shell commands Claude Code runs: you set which files and network domains those commands can reach. It covers shell commands only; Claude Code’s file-editing tools and MCP servers run outside it (Anthropic).
How widely is Claude Code used?
| Evidence | Result | Source |
|---|---|---|
| Developer usage | 65.5% of 12,255 respondents had used Claude Code in the past year, ahead of GitHub Copilot (58.7%), OpenAI Codex (29.5%) and Cursor (25.5%) | Stack Overflow Developer Survey 2026 |
| Merged work | 91.2% of Claude Code’s recent pull requests were merged, against 85.5% for OpenAI Codex and 68.1% for GitHub Copilot | Amplifying, November 2026 edition |
| Human review | 30.5% of merged Claude Code pull requests in a sample of significant repositories had a human reviewer | Amplifying, sample from 30 July to 28 August 2026 |
For how these figures compare across every major coding tool, see best AI for coding.
One example shows the kind of work people hand it. Hardware Busters reported on 12 October 2026 that Linux creator Linus Torvalds had published an experimental kernel branch for which the code, the test programs and the first draft of his write-up came from Claude Code working under his direction. On his laptop, eight threads making small reads of the same file completed roughly three times as many reads per second; the branch was not merged (Hardware Busters).
Claude Code vs Codex, GitHub Copilot and Cursor
Claude Code’s main rivals take different approaches. This is a short orientation; the full ranking, with benchmarks and prices, is on best AI for coding.
| Tool | Made by | How it works | Models |
|---|---|---|---|
| Claude Code | Anthropic | Agent in the terminal, IDE, desktop, web and Slack | Claude only |
| OpenAI Codex | OpenAI | Agent in the terminal, IDE and cloud; cloud tasks come back as pull requests | OpenAI only |
| GitHub Copilot | GitHub (Microsoft) | Completions, chat and a coding agent built into GitHub and most editors | Several vendors |
| Cursor | Anysphere | An AI-first code editor with its own agents | Several vendors and its own Composer models |
Claude Code vs Codex. In Amplifying’s November 2026 study, 91.2% of Claude Code’s recent pull requests were merged, against 85.5% for Codex (Amplifying), and Claude Code had more than twice Codex’s usage in the Stack Overflow survey (65.5% against 29.5%). Codex had opened about 9.1 million public pull requests by 13 November 2026, more than any other agent PR Arena tracks; PR Arena does not track Claude Code.
Claude Code vs Cursor. They are not either-or. Cursor is an editor; Claude Code is an agent that also runs inside Cursor through its VS Code extension.
Claude Code vs the Claude app. If you are not writing software, the Claude app is the relevant product: it runs multi-step tasks on documents and apps without a terminal. Claude Code is for work that lives in a code repository. People who start with prompt-to-app builders often move to a coding agent once a project outgrows them; see vibe coding and best AI app builders.
Risks and limits of Claude Code
Claude Code can act on your machine and your accounts, and that is where the risks are.
- It can be wrong with confidence. Claude Code can write code that runs and passes its own tests but does the wrong thing, or introduces a security hole. Read the diff before you merge: in Amplifying’s sample, a person had reviewed only 30.5% of the merged Claude Code pull requests (Amplifying).
- It acts with your permissions. Whatever your account can reach, an agent with broad permissions can reach too. The sandbox limits shell commands only, not file edits or MCP servers (Anthropic). Keep secrets out of the project and give the agent only the access the task needs.
- Install it only from official sources. On 29 October 2026 a tampered update to the Claude Code extension was distributed through Cursor’s extension marketplace for close to 12 hours; Cursor said it affected at most 5,000 users, and the update added an attacker’s SSH key to their machines. Anthropic said its own systems were not compromised, and the update did not reach Microsoft’s VS Code Marketplace or Open VSX (The Hacker News).
- Output can carry a watermark. Text from supported Claude models carries an invisible statistical watermark; Anthropic says code carries less of it than other text. See what is AI watermarking.
- API costs have no ceiling. Pay-per-token use is not capped by a plan. Agents that run for a long time on the larger models can spend real money, so set spending limits in the Console.
A short history of Claude Code
| Date | Event |
|---|---|
| 24 Feb 2025 | Claude Code launches as a limited research preview alongside Claude 3.7 Sonnet (Anthropic) |
| May 2025 | Generally available alongside the Claude 4 models (Wikipedia) |
| 20 Oct 2025 | A web version launches, with a sandboxing feature (Wikipedia) |
| 14 Aug 2026 | Auto mode becomes the default for new sessions on Pro, Max and Team (Anthropic) |
| 17 Sep 2026 | Redesigned Projects beta: parallel cloud sessions with a shared memory (Anthropic) |
| 30 Oct 2026 | Max 20x renamed Ultra, with no five-hour limit for verified accounts (TNW) |
| 9 Nov 2026 | Claude Fable 5.2 becomes the default Fable model in Claude Code (changelog) |
Anthropic ships new versions of Claude Code several times a week; the changelog lists every change.
Who uses Claude Code?
- Professional developers who want an agent to take whole tasks, not just suggest lines.
- Developers who work in the terminal, for whom the CLI fits existing habits, scripts and CI.
- Teams on GitHub or GitLab who want automated fixes and reviews on pull requests.
- Founders and people without a coding background building software who need to work in a real codebase; the desktop app and claude.ai/code remove the terminal.
It is not built for work that does not involve code; the Claude app handles documents, research and everyday tasks. And because Claude Code runs only Claude models, it does not suit a company that has standardised on another vendor’s models.
Frequently asked questions
What is Claude Code in simple terms?
Claude Code is an AI agent from Anthropic that writes and fixes software for you. You describe what you want in plain English, and it reads your project, edits the files, runs the code and tests, and makes git commits, within permission rules you set. It runs in the terminal, in VS Code and JetBrains, in a desktop app, in the browser, in the Claude mobile apps and in Slack.
Is Claude Code free?
No. Claude Code is included with every paid Claude plan, starting with Claude Pro at $20 a month or $200 a year, and it is not included on the Free plan. Developers can also use it with an Anthropic Console account and pay per token instead of buying a subscription.
What is the difference between Claude and Claude Code?
Claude is Anthropic’s chat assistant for everyday questions, writing and tasks on your files and apps. Claude Code is Anthropic’s coding agent, which works directly inside a software project, running commands and editing code. Both use the same Claude models and, on a paid plan, share one usage allowance.
Do I need to know how to code to use Claude Code?
No, but it helps. Claude Code can build working software from plain-English instructions, and the desktop app and claude.ai/code remove the need for a terminal. Someone who cannot read code, though, cannot check what it built, so beginners should keep projects small, use version control and ask Claude Code to explain its changes.
Does Claude Code work in VS Code?
Yes. Claude Code has an official VS Code extension, which also installs in Cursor, and a plugin for JetBrains IDEs such as IntelliJ IDEA, PyCharm and WebStorm. The JetBrains plugin needs the Claude Code command-line tool installed separately.
How much does Claude Code cost per month?
Claude Code costs $20 a month on Claude Pro, $100 a month on Max with five times Pro’s usage, and $200 a month on Ultra with ten times Pro’s weekly usage and no five-hour limit for verified accounts. Team seats that include Claude Code cost $25 a month for Standard and $125 for Premium, or $20 and $100 billed annually.
What are Claude Code’s usage limits?
Claude Code shares your plan’s usage allowance with your Claude chats. Pro and Max have a five-hour session limit and a weekly limit; Ultra has a weekly limit and, once the account is verified, no five-hour limit. Max gives five times Pro’s usage, and Ultra gives ten times Pro’s weekly usage. Long agent runs on large codebases use the allowance fastest, because every file read and every step uses tokens.
Which model does Claude Code use?
Claude Code uses Anthropic’s own Claude models: Claude Fable 5.2, Claude Opus 5.5, Claude Sonnet 5.5 and Claude Haiku 5.5. You can switch model during a session. Claude Code does not run models from OpenAI, Google or other companies.
How does Claude Code compare with GitHub Copilot?
In the Stack Overflow Developer Survey 2026, 65.5% of respondents had used Claude Code in the past year against 58.7% for GitHub Copilot. In Amplifying’s November 2026 study, 91.2% of Claude Code’s recent pull requests were merged against 68.1% for Copilot’s. Copilot is built into GitHub and most editors and has a free plan. For prices and the full ranking, see best AI for coding.
How does Claude Code compare with Codex?
In Amplifying’s November 2026 study, 91.2% of Claude Code’s recent pull requests were merged against 85.5% for OpenAI Codex, and Claude Code had more than twice Codex’s usage in the Stack Overflow survey (65.5% against 29.5%). Codex had opened about 9.1 million public pull requests by 13 November 2026, more than any other agent PR Arena tracks.
Is Claude Code safe to use?
Claude Code is as safe as the permissions you give it. Manual mode asks before it edits files or runs commands, and auto mode has a classifier review each action, but Anthropic says auto mode does not guarantee safety, and an agent can still write insecure code or reach anything your account can reach. Review changes before merging, keep secrets out of the project, and install it only from Anthropic’s official installers and marketplaces.
Can Claude Code run on Windows?
Yes. Claude Code installs on Windows through PowerShell or WinGet, runs inside WSL, and has a desktop app for Windows x64 and ARM64. Anthropic recommends installing Git for Windows so Claude Code can use its Bash tool; without it, Claude Code uses PowerShell.