Claude Setup¶
Following official docs: https://docs.anthropic.com/en/docs/claude/setup
Installation Steps¶
- Install via NPM
npm install -g @anthropic/claude
- Set API Key
export ANTHROPIC_API_KEY=your_key_here
- Initialize Project
claude init
Understanding the 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"
<!-- End of content -->