Prerequisites & installation
Claude Code is a CLI tool installed via npm. You need Node.js 18+ and a terminal. That's it.
node --version in your terminal. If you see v18 or above, you're ready. If not, download the LTS version from nodejs.org.sudo, your global npm directory needs fixing. Run npm config get prefix. If it's under /usr/local or /usr, follow the npm docs to change it to a user-owned directory. This saves headaches later.Connect to Anthropic
Claude Code needs access to Claude's API. You have two paths depending on how you're set up.
claude and it guides you through browser-based login.claude. On first run it confirms your authentication method. Max subscribers see a browser login prompt; API key users see a confirmation that the key is recognized.Your first real session
The fastest way to learn Claude Code is to use it on a real project, even a small one. Here's a proven sequence for your first 20 minutes.
"The first thing I ask Claude Code is always: summarize this codebase and tell me anything surprising you find."
Common first-session workflow from experienced Claude Code users/help to see all commands. Key ones for today: /clear resets context, /undo reverts the last file change, /diff shows what changed, /exit ends the session. These work in any conversation state.CLAUDE.md: teach Claude your project
Every time Claude Code starts a session it reads CLAUDE.md from your project root. This is how you give it persistent, project-specific knowledge that survives across sessions.
npm run dev, test commands, deploy scripts), architectural decisions that aren't obvious from the code, things it should never do (don't modify this file, always use this pattern), and context about the team or domain.CLAUDE.md inside any subdirectory. Claude reads both the root one and the directory-specific one when you're working in that folder. Useful for monorepos where each package has different rules.Practice prompts & day checklist
Three more prompts to try today, then check off what you completed.
-
Installed Claude Code with
npm install -g @anthropic-ai/claude-code -
Verified the install with
claude --version - Authenticated (Max subscription or API key) and reached the > prompt
- Ran the codebase summary prompt on a real project
- Made at least one small edit and reviewed the diff before accepting
- Created or drafted a CLAUDE.md file for my project
-
Tried at least one slash command (
/help,/clear, or/undo)
Day 02 complete
You're installed, authenticated, and have a real session under your belt. Tomorrow is Day 03: Reading & Understanding Code. You'll learn the prompts that make Claude a genuine codebase expert on your project.
Keep CLAUDE.md open in your editor. You'll be adding to it throughout the 30 days.