What Is Claude Code? How It Differs From Claude on the Web

Blog / Developer tools

What Is Claude Code? How It Differs From Claude on the Web

Claude Code is a coding agent from Anthropic that runs in your terminal. It can read files in your local project, change code and run commands at your request, and by default it asks you to confirm file edits and commands. The biggest difference from Claude on the web: on the web you paste content in and paste results back out, while Claude Code works directly inside your project directory.

If you want a practical answer to "what is Claude Code," remember this one line: it is a chat window with permission to read and write files and run commands, and it works inside your code repository.

What can Claude Code do?

Typical uses all happen inside a specific project directory:

  • Understand unfamiliar code: ask it to explain how a module works or which callers use a function.
  • Change code: fix a bug from a description, add a small feature, or make the style consistent across a batch of files.
  • Run commands: run tests, read the errors, and fix again based on them. You can let it run that loop on its own.
  • Handle Git chores: organize changes and draft commit messages (you confirm whether to actually commit).
  • Write project notes: with a CLAUDE.md file, you pin down project conventions that get loaded every time it starts.

Exact features and commands change between versions, so check the official documentation.

How is it different from Claude on the web?

ComparisonClaude on the webClaude Code
Where it worksA chat box in the browserThe terminal, inside your project directory
What it seesWhat you paste or uploadIt reads the files in the directory itself
Can it edit files?No, it only gives you textYes, with your approval for each change
Can it run commands?NoYes, such as running tests or builds
Context sourceThe current conversationThe current conversation plus project files and CLAUDE.md

One more point people often overlook: the web version suits Q&A, writing and analyzing material, while Claude Code suits "something in this repo needs to change." They don't conflict, and many people use both.

Who should use it, and who shouldn't?

A good fit:

  • You already write code, know the terminal and Git, and want to hand off repetitive edits, debugging and testing.
  • You have an existing project that you need to understand or change quickly.

Not a great fit yet:

  • You have never used a command line. Read Claude Code beginner tutorial: from install to your first edit first, then decide.
  • You only want to ask a few programming questions now and then. The web version or a chat inside your editor is enough.
  • You don't want to review changes. It makes mistakes, and you must read every change before accepting it, just like a code review when you write code yourself.

To compare it with editor-based tools, see Claude Code vs Cursor: how beginners should choose by way of working.

How do you connect it: official account or third-party endpoint?

Claude Code itself is only a client. It needs a model service behind it. There are two common ways to connect:

  1. The official route: log in with a Claude subscription account, or use an Anthropic API key with pay-as-you-go billing. The two are billed differently; see Claude Code with a subscription or the API: how to choose a billing method for the trade-offs.
  2. A custom endpoint: through environment variables and similar settings, Claude Code can point to a service that is compatible with the Anthropic API format, or to a cloud provider's hosted models. For setup, see Custom API endpoints for Claude Code, Codex and OpenCode.

Note that Claude's official services are limited to supported regions. Read Anthropic's terms of service and supported-regions list before you use it, and follow local laws. If an account is suspended, see Why Claude accounts get suspended: what the official terms say and what to do afterward for the official policy and the appeal channel.

Your first steps

Here is a minimal workflow you can follow:

  1. Install: follow the official installation instructions, then run claude --version in a terminal to confirm it prints a version. For steps on each operating system, see Claude Code installation guide (macOS / Linux / Windows).
  2. Go to a project directory you wouldn't mind breaking, ideally one managed with Git and with a clean working tree: cd your-project && git status.
  3. Run claude to start it, and follow the prompts to log in or configure an endpoint.
  4. Start with a read-only task, such as "explain this project's directory structure and entry files."
  5. Then ask for one very small change, look at the edit it proposes, and accept it only after you confirm it.
  6. Review with git diff. If you're not happy, roll back with git checkout.

On permissions, by default it asks every time before editing a file or running a command. Once you are comfortable, you can adjust this; see Claude Code permission modes: confirm every time or run automatically.

What if you have no overseas credit card or Claude account?

The payment, account and region requirements for the official subscription and the official API are defined by Anthropic's own documentation. If you don't meet them, you could consider a third-party gateway with a compatible interface.

AGI Plan is one such option, and it is a commercial partner of cdnping. According to its website, it is a multi-provider LLM aggregation gateway, sold as a monthly subscription, paid in RMB (Chinese yuan), with no overseas credit card needed. Tools such as Claude Code and Codex only need one endpoint address changed, and you can switch between several capability groups using the same quota. For Claude Code, this approach does not require a Claude account. The site states clearly that it is not an officially authorized channel, and some models are marked "overseas only." Check the AGI Plan models page for what is available.

Setup is roughly three steps: sign up with an emailed verification code, choose a plan and create a key, and change one setting. For details, see the AGI Plan getting started page. Prices and plans are as listed on the official pricing page.

Check whether your network works first

Many beginners get stuck at "can't connect" right after installing. Start with two places:

If it only fails on your side, then check your proxy settings; see Claude Code network requirements: domains, ports and proxy settings compared with Codex.

Next steps

Related articles

Keep reading