47 model prices

    Guide

    How to Use Claude Code: 2026 Guide

    Step-by-step guide to Anthropic Claude Code CLI: install, MCP, hooks, slash commands, agent workflows.

    2 min read

    Claude Code is Anthropic's official terminal-based AI coding agent. This guide gets you productive in 30 minutes.

    Step 1 — Install

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

    macOS / Linux. Windows: use WSL.

    Step 2 — Authenticate

    First claude run opens browser for Anthropic login. Pro/Max subscribers or API credit users authenticate here.

    Step 3 — First Session

    cd your-project
    claude
    

    Ask: "Analyze this project and summarize the architecture."

    Step 4 — Slash Commands

    • /clear: new session (context reset)
    • /cost: tokens used this session
    • /model: switch Sonnet ↔ Opus

    Step 5 — Add MCP Servers

    claude mcp add github
    

    Adds GitHub MCP — issues, PRs, repo search. Supabase, Postgres, Stripe MCPs available too.

    Step 6 — Hooks for Automation

    Edit ~/.claude/settings.json:

    {
      "hooks": {
        "PostToolUse": [
          {"matcher": "Edit", "hooks": [{"type": "command", "command": "pnpm tsc --noEmit"}]}
        ]
      }
    }
    

    Runs pnpm tsc --noEmit after every Edit.

    Is Claude Code Free?

    No — requires Anthropic Pro/Max ($20/month) or API credit. Heavy users: Max plan ($100/month).

    Cursor vs Claude Code?

    Cursor is a visual editor; Claude Code is a CLI agent. They're complementary, not competing.

    Does Claude Code Work Offline?

    No — calls Anthropic API.

    Next Step

    Read Cursor vs Claude Code to decide which to start with.

    Newsletter

    The week in AI and developer tools, in one email.

    New models, tool releases and price changes. Once a week.