Claude Code: The AI Coding Assistant That Lives in Your Terminal

Published
Reading
7 min

What Claude Code actually does in a terminal, how it differs from an editor plugin, and where an agent that reads and edits your repo earns its keep.

What is Claude Code

Claude Code is an AI-powered coding tool made by Anthropic (opens in a new tab) (the company behind Claude (opens in a new tab)). Think of it as a smart coding partner that sits right inside your terminal or code editor: you tell it what you want in plain English, and it writes code, edits files, runs tests, and even creates pull requests for you.

What makes Claude Code different from tools like GitHub Copilot (opens in a new tab) or Cursor (opens in a new tab) is that it works as a full agent. It does not just autocomplete one line at a time: it can plan out an entire feature, write code across multiple files, test it, fix errors, and iterate until the job is done. All while keeping you in the loop for approvals.

If you are interested in how Claude's AI capabilities extend beyond coding into everyday knowledge work, check out our guide on Claude Cowork.

Claude Code terminal interface

Where Can You Use Claude Code

Claude Code is not limited to just one place. You can use it in:

Claude Code onboarding screen

What You Need Before Installing

Before you get started, here is what you will need:

  • A computer running macOS 13 or later, Windows 10 or later, or a modern Linux distribution (Ubuntu 20.04+, Debian 10+)
  • 4GB of RAM or more
  • An internet connection
  • A paid Claude subscription: Claude Code is not available on the free plan. You will need one of these:
PlanPriceBest for
Claude Pro (opens in a new tab)$20/monthIndividual developers getting started
Claude Max (opens in a new tab)$100 to $200/monthHeavy daily usage
Claude Teams (opens in a new tab)$150/person/monthDevelopment teams
Claude EnterpriseCustom pricingLarge organizations

If you are on Windows, you will also need Git for Windows (opens in a new tab) installed first.

How to Install Claude Code

This is the simplest way. It installs Claude Code and sets up automatic updates so you always have the latest version.

On a Mac or Linux, open your terminal and paste:

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

On Windows, open PowerShell (search for "PowerShell" in the Start menu) and paste:

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

That is it. The installer handles everything.

Option 2: Homebrew (Mac Only)

If you already use Homebrew (opens in a new tab) (a popular Mac package manager), you can install with:

bash1 line
brew install --cask claude-code

Option 3: WinGet (Windows Only)

If you prefer WinGet (opens in a new tab) on Windows:

powershell1 line
winget install Anthropic.ClaudeCode

Verify It Worked

After installation, check that everything is set up correctly:

bash1 line
claude --version

You should see a version number printed. You can also run claude doctor to check for any issues with your setup.

Your First Session

Step 1: Open a Project

In your terminal, navigate to any project folder you want to work on:

bash1 line
cd ~/my-project

Step 2: Start Claude Code

Simply type:

bash1 line
claude

The first time you run this, a browser window will open asking you to log in with your Claude account (opens in a new tab). Once you have logged in, your credentials are saved locally: you will not need to log in again.

Step 3: Start Talking

Now you can type your request in plain English. Try something like:

  • "What does this project do?"
  • "Fix the bug in the login page"
  • "Add a dark mode toggle"
  • "Write tests for the user service"

Claude reads your entire project automatically: you do not need to manually select or upload files. It understands the structure, finds the relevant code, and makes the changes.

Key Features

It Writes Real Code, Not Just Suggestions

Claude Code does not just suggest, it acts. It reads files, writes code, runs your tests, checks the results, and iterates until the task is done. Ask it to "add authentication to this API" and it will create the middleware, update routes, write tests, and commit, checking in with you for approvals along the way.

Claude Code reads files, writes code, runs your tests, checks the results and iterates until the task is done. The commit waits for your approval.

It Understands Your Entire Codebase

No need to copy-paste code or point it at specific files. Ask "how does the payment flow work?" and it traces through all the relevant files to give you an accurate answer.

CLAUDE.md: Give It Persistent Instructions

Create a file called CLAUDE.md in your project root to tell Claude about your project's conventions, build commands, architecture, or anything else it should know. Claude reads this file at the start of every session, so it always has the context it needs.

Auto-Memory

Claude Code remembers things across sessions. It saves useful context it learns (like build commands, debugging insights, and your preferences) and recalls them automatically next time. You can manage this with the /memory command.

Connects to Your Tools (MCP)

Through the Model Context Protocol (MCP) (opens in a new tab), Claude Code can connect to external tools and services: query databases, manage GitHub issues, read Slack messages, access Figma designs, and more. There are 200+ integrations available.200+External tools and services Claude Code can connect to through MCP.

Plan Mode: Review Before Acting

Type /plan to have Claude lay out its approach before touching any code. Review the plan, adjust it, and only then let it implement. Great for complex tasks where you want to stay in control.

Claude Code terminal interface

Using Claude Code in Your Editor

VS Code Extension

If you prefer working in VS Code instead of the terminal:

  1. Open VS Code
  2. Go to Extensions (Cmd+Shift+X on Mac, Ctrl+Shift+X on Windows)
  3. Search for "Claude Code"
  4. Click Install

You get inline diff viewing (see exactly what Claude wants to change), @-mention files, conversation tabs, and the ability to rewind changes if something goes wrong.

Install the VS Code extension (opens in a new tab)

JetBrains Plugin (IntelliJ, PyCharm, WebStorm)

If you use a JetBrains IDE:

  1. Open your IDE
  2. Go to Settings > Plugins > Marketplace
  3. Search for "Claude Code Beta"
  4. Click Install and restart

Quick launch with Cmd+Esc (Mac) or Ctrl+Esc (Windows). Install the JetBrains plugin (opens in a new tab)

Desktop App

If you want a standalone app (no terminal or IDE needed):

  1. Download from the official site: macOS (opens in a new tab) or Windows (opens in a new tab)
  2. Install and open it
  3. Select a folder to work in and start chatting

Claude Code onboarding

Web: No Installation Needed

Do not want to install anything? Go to claude.ai/code (opens in a new tab) in your browser. You get the same Claude Code capabilities without any local setup. Great for running long tasks without tying up your computer.

Essential Commands Cheat Sheet

Starting Sessions

What you want to doCommand
Start a new sessionclaude
Start with a taskclaude "add a search bar"
Quick one-off questionclaude -p "what does this function do?"
Continue last sessionclaude -c
Resume an older sessionclaude -r
Update Claude Codeclaude update

Inside a Session

What you want to doCommand
Get help/help
Manage memory/memory
Review plan before coding/plan
Manage tool connections/mcp
See usage and costs/cost
Clear conversation/clear
Change AI effort level/effort

Tips for Getting the Most Out of Claude Code

  • Be specific in your prompts. "Add a search bar to the header that filters products by name" works better than "add search."
  • Use CLAUDE.md to document your project conventions. Claude will follow them consistently.
  • Start with /plan for big tasks. Review the approach before Claude starts writing code.
  • Trust but verify. Claude is very capable, but always review the diffs before committing.
  • Use claude -c to continue where you left off. Context carries over between sessions.

If Claude Code handles the developer side, Claude Cowork is its counterpart for everyday knowledge work: organizing files, building spreadsheets, creating presentations, and automating tasks, all without writing a single line of code.

Resources