What is Claude Code?

Updated 2026-08-02AI-assisted draft · citations disclosedPart of the 1,478-question editorial index· Claude Code · Source & maintenance record
Short answer

Claude Code is Anthropic's agentic coding product for inspecting a project, proposing and applying edits, running tools and commands, and working through development tasks. It is available through terminal, VS Code, JetBrains, desktop and web surfaces, but execution location, authentication, plans and feature availability differ. It does not place every repository file into every model request, run the model locally by default, or replace tests, code review and human merge ownership.

Why — the first-principles explanation

Claude Code is a coding product built around Claude models, project context and tools; it is not a separate model and not an autonomous software owner. A user supplies a goal, Claude selects or requests context, proposes actions, and Claude Code mediates file reads, edits, shell commands and connected tools. The useful unit is therefore a reviewable change that passes the project's acceptance gates—not a confident answer or a large diff.

Context is selected, not magically complete. Each session starts with a fresh context window. `CLAUDE.md` files can load project instructions, while Claude can search and read files in the working directory and any additional directories the user grants. Relevant file contents, tool results, conversation history and instructions compete for a finite context window and may be compacted. Claude Code can reason across many files, but “understands the codebase” should not be read as a guarantee that every repository file, generated artifact, dependency, secret or runtime state is present in every model request.

The action loop has two control layers. Permissions decide which tools and paths Claude may use and when approval is required. The optional Bash sandbox adds operating-system-level filesystem and network boundaries for shell commands and their child processes; it does not sandbox every Claude Code tool. `CLAUDE.md` can steer behavior, but Anthropic documents it as context rather than enforcement. Hard restrictions belong in permissions, sandbox policy, managed settings or hooks. MCP can add external tools and data, which also expands the trust, credential and prompt-injection boundary.

“Runs in the terminal” does not mean “runs the model locally.” In a local terminal or IDE session, the Claude Code client and approved tools operate on the user's machine, while prompts, selected code context and model output travel over the network to the active model provider. Claude Code on the web instead runs the task in an Anthropic-managed virtual machine and obtains repository access through its supported connection flow. Desktop can start local or cloud-oriented workflows. The surfaces share the Claude Code product layer, but session location, credentials, controls and available features are not interchangeable.

Access is also not one fixed subscription. The terminal supports Claude subscriptions, Anthropic Console access and supported enterprise providers including Amazon Bedrock, Google Cloud's Agent Platform and Microsoft Foundry. Anthropic's feature matrix says the CLI, IDE extensions, `CLAUDE.md`, MCP and local tooling work across providers, while web, mobile, Desktop, Remote Control and managed GitHub Code Review have subscription or plan boundaries. Managed GitHub Code Review is listed for Team and Enterprise; the local `/code-review` command is a separate workflow. Prices, usage limits, seats and availability change, so a static “starts at” price is not a safe definition.

Data handling depends on the account, provider and surface. Anthropic distinguishes consumer data controls from commercial terms, documents local plaintext transcript caching by default, and describes separate data flows for local and cloud execution. Before using private code, verify the active login and provider, training preference, retention, telemetry, repository connection, MCP servers and cloud environment. Claude can run tests and produce review findings, but those are evidence—not acceptance. The repository owner remains responsible for inspecting the diff, validating behavior and security, controlling credentials, and deciding whether to merge or deploy.

An example that makes it click

Suppose an authentication test fails after a dependency update. Start Claude Code on a clean branch in the repository, state the failing command and acceptance criteria, and ask it to identify only the files and runtime evidence needed. Review its plan before granting edits. Keep production secrets unavailable, approve the narrow commands required, and use permissions plus the Bash sandbox where supported. After the patch, rerun the reproduction, unit and integration tests, lint, type checks and a security scan; then inspect the diff and dependency changes yourself. If the same task is sent to Claude Code on the web, first verify the GitHub connection, cloud environment, network policy and data terms because execution moves to an Anthropic-managed VM. The result is acceptable only when the human owner confirms the evidence—not when Claude says the bug is fixed.

How to do it

  1. Choose the surface and execution location first: local terminal or IDE, Desktop, or an Anthropic-managed web session. Do not treat them as identical data or credential paths.
  2. Confirm the active authentication method with the current account settings: Claude subscription, Anthropic Console, Amazon Bedrock, Google Cloud's Agent Platform, Microsoft Foundry or an organization gateway.
  3. Classify the repository and check the current training, retention, telemetry, cloud-session and provider terms before exposing private or regulated code.
  4. Start from the correct repository, branch and working directory. Record a reproducible failure, expected behavior and the tests that decide acceptance.
  5. Keep `CLAUDE.md` concise and specific for build commands, architecture and coding conventions, but enforce hard restrictions through permissions, sandbox policy, managed settings or hooks.
  6. Ask Claude to explain its proposed scope, relevant files, assumptions and plan before a multi-file change. Never infer that every file or runtime dependency is already in context.
  7. Grant least privilege. Use explicit allow, ask and deny rules, enable the Bash sandbox where supported, and review any request to run outside its boundary.
  8. Add only trusted MCP servers, review their tools and credentials, and remember that an external tool can read data or cause side effects beyond the repository.
  9. Inspect the final diff and run independent tests, lint, type checks, security checks and any domain review required for production. A generated test that passes is not independent proof by itself.
  10. Compare live plans and providers on accepted changes, human correction time, latency, metered usage, data controls and failure recovery; re-check after material product or policy changes.

Key facts

Infographic: What is Claude Code — short answer and key facts
Visual summary — What is Claude Code?
CC
Visit Claude Code by Anthropic

Open the official product site and confirm the current access, plans and terms.

Visit official site ↗

Decide whether Claude Code fits your repository workflow

Compare context selection, execution location, provider, permissions, data terms and cost per accepted change on the same repository tasks; keep tests and merge approval independent.

▶ The 60-second explainer (script)

What is Claude Code? It is Anthropic's agentic coding product, not a separate model and not an automatic software owner. It can inspect project files, propose edits, run approved commands and use connected tools through terminal, IDE, Desktop and web surfaces. But three boundaries matter. First, context is selected: Claude can search across a repository, yet every file and runtime dependency is not guaranteed to be in every model request. Second, a local terminal session is not local inference. The client and approved tools run on your machine, while prompts, selected code context and outputs go over the network to the active provider. Web tasks instead run in Anthropic-managed virtual machines. Third, instructions are not enforcement. `CLAUDE.md` guides Claude; permissions, sandbox policy and hooks set harder boundaries, and MCP servers add their own trust surface. Plans and features differ by login and provider, so check the live matrix instead of relying on a fixed price. Always inspect the diff, rerun independent tests and security checks, and keep merge and deployment approval with a human owner.

What authoritative sources say

Claude Code Docs — Overviewofficial — Anthropic describes Claude Code as a coding assistant that can edit files and run commands across terminal, VS Code, JetBrains, Desktop and web surfaces. source ↗
Claude Code Docs — Quickstartofficial — The official quickstart documents subscription, Console and supported cloud-provider access and shows that edits and test execution remain subject to permissions and available project tests. source ↗
Claude Code Docs — Authenticationofficial — Anthropic documents Claude.ai, Console, API-key, cloud-provider and gateway authentication, including different credential precedence and web-session authentication boundaries. source ↗
Claude Code Docs — Feature availabilityofficial — The provider and plan matrix separates local features available across providers from subscription-only surfaces and lists managed Code Review for Team and Enterprise accounts. source ↗
Claude Code Docs — Configure permissionsofficial — Claude Code permissions govern tool and path access, while sandboxing provides a separate OS-level boundary for Bash commands and their child processes. source ↗
Claude Code Docs — Securityofficial — Anthropic's security guidance describes default read-only behavior, approval controls, prompt-injection risk, MCP trust considerations, cloud safeguards and the user's responsibility to review code and commands. source ↗
Claude Code Docs — Memory and CLAUDE.mdofficial — Anthropic documents `CLAUDE.md` and auto memory as context loaded into fresh sessions and explicitly distinguishes behavioral instructions from enforced configuration. source ↗
Claude Code Docs — MCPofficial — Claude Code can connect to local and remote MCP servers, with scope, authentication and organization controls that vary by server and active login method. source ↗
Claude Code Docs — Data usageofficial — Anthropic's data-usage documentation distinguishes consumer and commercial policies, local and cloud data flows, networked model requests, provider differences and local plaintext transcript caching. source ↗
Claude Code Docs — Claude Code on the webofficial — Claude Code on the web runs tasks on Anthropic-managed cloud infrastructure and documents repository authentication, cloud environments, review workflows, isolation and limitations. source ↗
Claude Code Docs — Code Reviewofficial — Anthropic separates managed GitHub pull-request review from the local `/code-review` command and states that managed findings do not approve, block or replace the existing review workflow. source ↗

People also ask

What is Claude Code?

Claude Code is Anthropic's agentic coding product. It combines Claude models with selected project context, file and shell tools, MCP integrations, permissions and review surfaces to help inspect, change and test software.

Is Claude Code an AI model?

No. Claude Code is the product and agent harness around Claude models. The active model and provider can vary, while the client supplies project context, tools, permissions and interfaces.

Does Claude Code read the entire codebase?

It can search and read many files in approved directories, but that is not a guarantee that every file, dependency, secret or runtime state is loaded into every model request. Ask what it inspected and verify missing context with tests.

Does Claude Code run locally?

In terminal and local IDE workflows, the client and approved tools operate on your machine. Model inference is still networked: prompts, selected context and outputs go to the active provider. Web sessions instead execute in Anthropic-managed cloud virtual machines.

Where can I use Claude Code?

Anthropic documents terminal, VS Code, JetBrains, Desktop and web surfaces. They use the Claude Code product layer, but authentication, execution location, settings behavior and feature availability are not identical.

Do I need a Claude subscription, and how much does Claude Code cost?

The answer depends on the surface and login. The terminal supports eligible Claude subscriptions, Anthropic Console usage and supported cloud providers; web, Desktop and managed services have separate plan rules. Prices, usage limits and seats change, so check Anthropic's live plan and provider pages instead of relying on a fixed monthly figure.

How do Claude Code permissions and sandboxing differ?

Permissions decide which tools and paths are allowed, denied or require approval. The optional sandbox adds OS-level filesystem and network restrictions for Bash commands and their child processes. Use both where the threat model requires defense in depth.

What do CLAUDE.md and MCP do in Claude Code?

`CLAUDE.md` supplies persistent project or organization instructions as model context; it is not a hard security policy. MCP connects external tools and data. Each server, credential and tool needs its own trust and permission review.

Does Anthropic train on or store Claude Code data?

It depends on the account, provider, privacy choice and surface. Anthropic documents opt-in controls for consumer model improvement, different commercial terms, local plaintext transcript caching and separate cloud-session data flows. Check the current settings and contract for the exact repository before use.

Who is responsible for reviewing Claude Code output?

The user and repository owner remain responsible. Claude can propose tests and review findings, but you should independently reproduce the behavior, inspect the diff and commands, run the normal quality and security gates, and retain human authority over merge and deployment.

Is Claude Code's GitHub Code Review available on every plan?

No. Anthropic's current feature matrix lists the managed GitHub Code Review service for Team and Enterprise. The local `/code-review` command is a separate CLI workflow, and neither service should be treated as approval to merge.

Related questions