Skip to content

Claude Setup

Following official docs: https://docs.anthropic.com/en/docs/claude/setup

Installation Steps

  1. Install via NPM
npm install -g @anthropic/claude
  1. Set API Key
export ANTHROPIC_API_KEY=your_key_here
  1. Initialize Project
claude init

Understanding the Context Window

Context Window

200K tokens = Your working memory System prompt (3.1k tokens) System tools (11.5k tokens) Your messages and code

Key Commands

The most common Claude commands you'll use:

# Start Claude in your project
claude

# Create an agent
claude agent create ui-expert

# Use an agent for a task
claude --agent ui-expert "build portfolio site"

View Full Command Reference →


<!-- End of content -->