Claude Code 2025: Complete Guide (Setup, Commands, Pricing)
Claude Code is Anthropic's official agentic coding CLI — it runs in your terminal, edits files, executes commands, and manages git, all driven by Claude's 200k-token context window. Here's everything you need to install it, configure it, and use it effectively.
What Is Claude Code?
Claude Code is Anthropic's official agentic coding tool. Unlike Cursor (a GUI IDE) or GitHub Copilot (an autocomplete extension), Claude Code is designed as a terminal-first agent that can:
- Read your entire codebase (up to 200k tokens of context)
- Edit multiple files in a single session
- Run shell commands, tests, and git operations
- Use MCP (Model Context Protocol) servers for external tool integrations
- Work inside VS Code and JetBrains IDEs via the Claude Code extension
It's built by Anthropic and runs exclusively on Claude models (claude-sonnet-4-6, claude-opus-4, etc.). Claude Code is the reference implementation of how to build an agentic coding workflow on top of Claude.
Installation
Claude Code is distributed as an npm package. You need Node.js 18+.
# Install globally npm install -g @anthropic-ai/claude-code # Verify installation claude --version # Start a session claude
On first launch, Claude Code opens a browser window to authenticate with your Anthropic account. Alternatively, set the environment variable:
export ANTHROPIC_API_KEY=sk-ant-...
VS Code extension: Search for "Claude Code" in the VS Code Marketplace. After installing, Claude Code appears as a sidebar panel — no terminal switching required. The extension uses the same auth as the CLI.
Key Slash Commands
Claude Code has a set of built-in slash commands for session management and workflow control:
| Command | What it does |
|---|---|
| /help | Show all available commands and keyboard shortcuts |
| /compact | Compress the conversation history to free up context window space |
| /clear | Clear all conversation history and start fresh |
| /status | Show current model, context usage, and session info |
| /model | Switch the Claude model mid-session |
| /review | Ask Claude to review recent changes or the current diff |
| /init | Generate a CLAUDE.md file for the current project automatically |
You can also define custom slash commands in your CLAUDE.md or project configuration for common workflows (e.g., /deploy, /test-all).
Keyboard Shortcuts
| Shortcut | Action |
|---|---|
| Ctrl+C | Interrupt the current Claude response mid-stream |
| Escape | Cancel a pending tool call (before Claude executes it) |
| ↑ / ↓ | Navigate through conversation history |
| Ctrl+R | Reverse search through previous prompts |
| Tab | Autocomplete file paths and command names |
Setting Up CLAUDE.md
CLAUDE.md is the most important configuration file for Claude Code. It acts as a persistent system prompt injected at the start of every session in that directory. Run /init to auto-generate one, or write it manually:
CLAUDE.md
# CLAUDE.md example You are working on a TypeScript + React SPA. - Use functional components with typed props (no 'any') - Test with Vitest + Testing Library - Prefer named exports; Tailwind for styling - Never commit secrets or .env files
Claude Code reads CLAUDE.md from multiple locations in order:
- Your home directory
~/.claude/CLAUDE.md(global rules) - Your project root
./CLAUDE.md(project rules) - Subdirectory CLAUDE.md files (module-specific rules)
MCP Integrations
Claude Code supports MCP (Model Context Protocol) servers, letting you connect Claude to external tools: databases, GitHub, Jira, file systems, browser automation, and more. MCP servers are configured in ~/.claude/settings.json:
{
"mcpServers": {
"github": {
"command": "npx",
"args": ["-y", "@modelcontextprotocol/server-github"],
"env": { "GITHUB_TOKEN": "ghp_..." }
}
}
} Once configured, Claude can call GitHub APIs, query databases, or control a browser — all within a single Claude Code session. Explore available MCP servers at prismix.dev/mcp.
Pricing (2025)
| Plan | Price | Claude Code Access |
|---|---|---|
| Claude Pro | $20/mo | Included — usage limits apply (resets daily) |
| Claude Max 5x | $100/mo | 5× higher limits than Pro |
| Claude Max 20x | $200/mo | 20× higher limits — best for heavy daily use |
| API key (BYOK) | Pay per token | claude-sonnet-4-6: $3/MTok in, $15/MTok out |
For occasional use, Pro ($20/mo) is sufficient. Heavy users who run multi-hour coding sessions should evaluate Max — the per-session cost of API tokens adds up quickly at scale.
Claude Code vs Cursor vs GitHub Copilot
| Feature | Claude Code | Cursor | GitHub Copilot |
|---|---|---|---|
| Interface | Terminal / VS Code panel | Full IDE (VS Code fork) | VS Code / JetBrains extension |
| Models | Claude only | Claude, GPT-4o, Gemini | GPT-4o (OpenAI) |
| Inline autocomplete | ❌ | ✅ Tab completions | ✅ Ghost Text |
| Multi-file agent | ✅ | ✅ Composer | ⚠ Copilot Workspace |
| MCP support | ✅ Native | ✅ | ❌ |
| Shell / git access | ✅ Full | ⚠ Composer only | ❌ |
| Price | $20/mo (Pro) | $20/mo (Pro) | $10/mo (Individual) |
Claude Code is the best choice for developers who want a terminal-native, deeply agentic workflow with full shell access and MCP extensibility. For more, see our Cursor guide and GitHub Copilot guide. If you're choosing between the two, read Claude Code vs Cursor.
Power User Tips
- Use /compact aggressively: Long sessions fill the 200k context window. Run
/compactafter each major task to compress history and preserve working context for the rest of the session. - Prefix tasks with context: Start messages with "In [filename], ..." or "Looking at [function]..." — Claude responds better to scoped requests than vague ones.
- Use headless mode for scripting: Run
claude -p "your prompt" --output-format jsonto integrate Claude Code into CI pipelines or shell scripts. - Chain MCP + shell: Claude Code can call an MCP server (e.g., GitHub) and then run a local shell command in the same turn — making it more powerful than either alone.
- Monitor Anthropic uptime: If Claude Code stops responding, check Anthropic API status at Prismix before debugging locally.
Monitor Anthropic API Status
Claude Code depends on the Anthropic API. Track real-time Anthropic uptime, get instant email alerts on API degradations, and never wonder if an outage is on your end or Anthropic's.
Monitor Anthropic Status Free →