Prerequisites
- Node.js 18 or later (nodejs.org)
- An Anthropic account (sign up at claude.ai)
Install Claude Code
Install the After installation, Claude Code places a
@anthropic-ai/claude-code package globally using your preferred package manager.claude binary on your PATH. Verify it is available:Navigate to your project
Claude Code works inside your project directory. Change into any existing codebase — Claude Code will read the files there to understand the context.
You can run
claude from any directory. Starting from your project root gives Claude Code the most context to work with.Start Claude Code
Run The first time you run Claude Code, it will prompt you to authenticate with your Anthropic account. Follow the on-screen instructions to complete the OAuth flow in your browser.Once authenticated, you will see the Claude Code prompt:
claude with no arguments to open the interactive REPL:Try your first task
Type a natural language request at the prompt. Claude Code will read relevant files, plan what to do, and ask for confirmation before making any changes.Here are a few tasks that work well as a first interaction:Understand the codebase:Refactor code:Edit files:Run tests and fix failures:Git workflow:Claude Code will show you its plan and ask for your approval before writing files or running commands. Review the proposed changes and confirm to proceed.
Initialize a CLAUDE.md (optional but recommended)
CLAUDE.md is a file in your project root that Claude Code reads at the start of every session. It lets you document project-specific context — build commands, code conventions, required environment variables — so Claude Code always has the right background without you repeating it.Generate one automatically:CLAUDE.md for you.Example prompts that work well
The following prompts demonstrate the range of tasks Claude Code handles effectively. Code understandingNext steps
Installation
All install methods, platform notes, authentication, and troubleshooting.
Slash commands
Built-in commands like /init, /bug, /commit, and /help.
Memory and context
Use CLAUDE.md to give Claude Code persistent project knowledge.
MCP servers
Connect Claude Code to external tools and APIs via MCP.