01
Day 1 · Session 5

Setup & Configuration

45 min · Install, authenticate, and verify Claude Code

Before the Workshop

To save time, please complete these before Day 1:

Objectives

By the end of this lab, you will have:

Step 1: Install Claude Code 10 min

Prerequisites

Installation

# Install globally via npm
npm install -g @anthropic-ai/claude-code

# Verify installation
claude --version

Authentication

# Login to your Anthropic account
claude auth login

Follow the browser prompts to authenticate.

Step 2: Create Test Project 5 min

# Create a test directory
mkdir claude-test && cd claude-test

# Initialize a simple project
npm init -y

# Create a basic file structure
mkdir src
echo "console.log('Hello from Claude Code!');" > src/index.js

Step 3: Initialize Claude Code 10 min

# Start Claude Code
claude

# Run the init command
/init

Claude will ask questions about your project. Answer them to generate a CLAUDE.md file.

Verify CLAUDE.md

Open the generated CLAUDE.md and review:

Step 4: First Task 15 min

Ask Claude to do something simple:

You: "Create a function that adds two numbers, with TypeScript types and a test file."
Observe
  • How does Claude approach the task?
  • What files does it create?
  • Does it follow the patterns in CLAUDE.md?

Verify

# Run the generated test (if applicable)
npm test

Try Plan Mode

/plan

Now ask Claude to do something:

You: "Add error handling to the add function"

Notice how Claude proposes a plan instead of immediately executing. Review the plan, then approve it.

Switch back:

/auto

This is the difference between reviewing-then-executing (Plan) and just-executing (Auto). Start with Plan mode for learning; switch to Auto when you trust the patterns.

Step 5: Explore Commands 5 min

Try these commands to understand what's available:

/help          # See all commands
/config        # View your configuration
/cost          # See token usage
/doctor        # Diagnose any issues

Checkpoint ✓

Before moving on, confirm:

  • Claude Code is installed and authenticated
  • You have a project with a CLAUDE.md
  • You've completed at least one task with Claude
  • You understand basic slash commands

Troubleshooting

"Command not found: claude"
Authentication issues
Claude seems slow