Skip to main content
Back to Exercises
Getting Started beginner 15 min

First Claude Code Session

Install the CLI and run your first agentic session.

Objectives

  • Install Claude Code CLI
  • Authenticate with Anthropic
  • Run first prompt in a codebase
  • Understand the partnership model

Beads Tasks

Create these tasks in Beads before starting. You learn Beads by using Beads.

bd create "Install Claude Code CLI" --type=task--labels=learn,getting-started
bd create "Authenticate with Anthropic API" --type=task--labels=learn
bd create "Run first prompt in a project" --type=task--labels=learn
bd create "Explore slash commands (/help, /status)" --type=task--labels=learn

Claude Code Prompt

Copy this prompt into Claude Code to build YOUR own version:

## Setup: Track this exercise with Beads

```bash
bd create "Install Claude Code CLI" --type=task --labels=learn,getting-started
bd create "Authenticate with Anthropic API" --type=task --labels=learn
bd create "Run first prompt in a project" --type=task --labels=learn
bd create "Explore slash commands" --type=task --labels=learn
```

---

Help me set up Claude Code CLI on my system.

Walk me through:
1. Installing the claude CLI (npm install -g @anthropic-ai/claude-code)
2. Authenticating—I'll use [Claude Max plan / API key]
   - Max plan: authenticate via claude.ai account (recommended)
   - API key: get from console.anthropic.com
3. Running my first prompt in an existing project
4. Understanding key slash commands (/help, /status, /clear)

After setup, explain the partnership model:
- What Claude Code handles well (code generation, exploration, multi-file changes)
- What I should handle (judgment calls, creative direction, domain expertise)
- How to calibrate trust over time

My operating system: [macOS/Linux/Windows]
My auth method: [Claude Max / API key]

Your Solution

Write code that addresses the objectives above. Apply the principles from the Getting Started path.

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15