Skip to main content
Claude Code is Anthropic’s official CLI tool for AI-assisted software engineering. Talk to Claude directly from your terminal to edit files, run commands, search your codebase, manage git workflows, and more — all through natural language.

Quick Start

Get Claude Code running in your terminal in under 5 minutes

Installation

Install Claude Code on macOS, Linux, or Windows

Commands

Explore all slash commands available in the REPL

Tools Reference

Learn about every tool Claude can invoke on your behalf

What Claude Code can do

Claude Code is more than a chatbot in a terminal. It’s a full coding agent with access to your filesystem, shell, and version control.

Edit code

Read, write, and partially edit any file in your project using precise string replacement

Run commands

Execute shell commands, test runners, build scripts, and more — with your approval

Search codebases

Use ripgrep and glob patterns to navigate even the largest repositories instantly

Manage git

Commit, review PRs, write commit messages, and manage branches through natural language

Multi-agent workflows

Spawn sub-agents to parallelize complex tasks across your codebase

Connect to MCP servers

Extend Claude’s capabilities with Model Context Protocol servers

Get started

1

Install Claude Code

Install via npm:
npm install -g @anthropic-ai/claude-code
2

Authenticate

Log in with your Anthropic account:
claude /login
3

Open your project

Navigate to your project directory and start Claude Code:
cd my-project
claude
4

Start coding

Ask Claude anything about your codebase in plain language:
> Explain the authentication flow in this codebase
> Fix the failing tests in src/api/
> Create a PR description for my current changes
Claude Code requires an active Anthropic account. Run /login to authenticate or /doctor to check your environment setup.

Build docs developers (and LLMs) love