# Step 2: Install Claude Code and point it at your repo

> Pagebee Academy, part 1 (Set up). Claude Code is an agent that works in a folder on your own computer: it reads your code, runs commands, writes changes and commits them. No platform in between.

Time: 10 minutes. Cost: From $20 a month (Claude Pro).

## Why it matters

Claude Code runs in your terminal, inside your repo. It reads the files, runs the app, fixes what breaks and commits as it goes. Because it works on your machine and your repo, everything it makes is yours the moment it makes it.

The terminal looks intimidating for about ten minutes. After that it's a chat window that can also run your code. If you'd really rather not, the Claude desktop app has a **Code** tab that runs the same agent in a normal window, and [claude.ai/code](https://claude.ai/code) runs it in the browser against your GitHub repos.

Claude Code needs a paid Claude plan. **Pro** at $20 a month is enough to start. Move up to **Max** at $100 when you notice yourself hitting the limits most days.

## Do this

1. Subscribe to Claude Pro (or higher) at [claude.com/pricing](https://claude.com/pricing). The free Claude plan doesn't include Claude Code.
2. Open Terminal (on a Mac, press Cmd and Space and type Terminal) and run the official installer. It updates itself from then on.

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

3. On Windows, open PowerShell (not Command Prompt) and run:

```
irm https://claude.ai/install.ps1 | iex
```

4. Close the terminal, open a new one, and check it installed:

```
claude --version
```

5. Go into the repo you cloned in step 1 and start Claude Code. The first time, it opens your browser to sign in with your Claude account.

```
cd ~/code/tally-app
claude
```

6. Paste the prompt below. When Claude Code asks for permission to run a command or edit a file, read what it wants to do and approve it. Then refresh your repo on GitHub and look for the new commit.

## Paste into Claude Code

```text
Look around this repo and tell me what's here. Then add a .gitignore suitable for a Node.js and Next.js project, making sure .env files and node_modules are ignored. Commit it with a clear message and push to GitHub.
```

If it can't push, run `gh auth status` in a normal terminal. Step 1's `gh auth login` is what lets Claude Code push.

## The trap: Approving everything without reading it

Claude Code asks before it runs commands for a reason. Read each one for the first week. You'll learn what normal looks like, and you'll catch the rare `rm -rf` or the push to the wrong branch before it happens. Once you trust a command, you can tell it to stop asking for that one.

## Using something else

Codex (OpenAI) and Cursor work in your own repo too, and every step here works with them. Avoid tools that only build inside their own hosted workspace.

## Sources

- [Claude Code: set up](https://code.claude.com/docs/en/setup)
- [Claude Code: overview](https://code.claude.com/docs/en/overview)
- [Claude pricing](https://claude.com/pricing)

Checked 24 November 2026. https://pagebee.ai/academy/claude-code
