Free guide

Claude Code setup guide + best commands

Claude Code is Anthropic's AI coding agent for your terminal. It reads your project, edits files, runs commands and handles git, and you just tell it what you want in plain English.

You'll need a paid Claude plan (Pro, Max, Ultra, Team or Enterprise) or an Anthropic Console account. The free Claude plan doesn't include Claude Code.

1. Install (2 minutes)

curl -fsSL https://claude.ai/install.sh | bash

2. First run

cd your-project
claude

Log in when asked. Then type /init: Claude scans your project and writes a CLAUDE.md file with your stack, commands and conventions. It reads this file at the start of every session, so it's the single best thing you can do on day one.

3. Commands worth memorizing

CommandWhat it does
/initCreates CLAUDE.md, the project's memory
/clearFresh conversation. Use it when switching tasks
/compactSummarizes a long chat to free up context
/contextShows what's filling up the context window
/modelSwitch models
/rewindUndo back to an earlier point (code and chat)
/resumePick up a past session
/memoryEdit what Claude remembers (CLAUDE.md)
/permissionsChoose which tools and commands are pre-approved
/reviewCode review of your changes
/usageSee your usage and cost
/mcpManage connected MCP servers

4. Shortcuts

KeyWhat it does
Shift+TabCycle modes, including plan mode (Claude plans first and edits only after you approve)
EscStop Claude mid-task
Esc EscWith an empty prompt: open the rewind menu
@Reference a file, e.g. @src/app.ts
!Run a shell command directly, e.g. !npm test
Ctrl+V / Alt+VPaste a screenshot (macOS/Linux / Windows), or drag and drop an image

5. Run it from scripts

claude -p "explain this repo"One-shot answer, then exit, great for scripts
claude -cContinue your last conversation
claude --resumeChoose a past session to resume
claude updateUpdate to the latest version

6. Give it superpowers with MCP

MCP servers connect Claude Code to other tools. Two favorites:

๐ŸŽญ Playwright: control a real browser

Claude can open your app, click around, fill forms and check that things actually work.

claude mcp add playwright -- npx @playwright/mcp@latest

๐Ÿ“š Context7: up-to-date library docs

Pulls current documentation for the libraries you use, so Claude doesn't write code for an old API version.

claude mcp add --transport http context7 https://mcp.context7.com/mcp

Check context7.com for the latest setup options.

See what's connected with claude mcp list.

7. Prompts that get better results

1 Plan before coding

Read the relevant files and make a plan to [add user login]. Don't write any code yet, show me the plan first.

2 Let it verify its own work

Fix [the failing checkout test]. Run the tests after each change and keep going until they all pass.

3 Learn a new codebase fast

Give me a tour of this codebase: the main folders, how a request flows through the app, and the 5 files I should read first.

8. Level up later

Subagents: specialized helpers with their own context window that report back a summary, keeping your main chat clean.

Skills: a SKILL.md file in .claude/skills/<name>/ with instructions Claude uses when relevant, or that you call with /name.

Hooks: shell commands that run automatically at set moments, e.g. a formatter after every edit.

Official docs: code.claude.com/docs

Saved you some time? โšก

Like and save the post so you have this guide when you need it.

๐ŸŽ Share the post to your story and tag me to get the bonus pack in your DMs.

Back to Instagram