> ## Documentation Index
> Fetch the complete documentation index at: https://docs.yellow.pro/llms.txt
> Use this file to discover all available pages before exploring further.

# Install Claude Code CLI

> Set up the Claude Code command-line tool on your machine before wiring in the Yellow.pro MCP server.

> [!WARNING]
>
> Before installing an AI CLI, make sure you've completed Yellow\.pro's account setup first — connecting your wallet, creating a sub-account, and completing verification. See **[Agent Onboarding](https://docs.yellow.pro/mcp/getting-started.md)** for the full walkthrough. The steps below assume your Yellow\.pro account is already set up and you're ready to pair an AI agent to it.

> [!NOTE]
>
> **Claude Code** and **Claude Desktop** are two separate applications from Anthropic. Claude Desktop is the chat app (Chat/Cowork tabs); Claude Code is a command-line tool that runs in a terminal. The Yellow\.pro MCP server registers with Claude Code specifically — if you only have Claude Desktop installed, the steps on the [Installation](https://docs.yellow.pro/mcp/installation.md) page will not find anywhere to register.

If `claude --version` already works in your terminal, skip ahead to [Installation](https://docs.yellow.pro/mcp/installation.md). Otherwise, follow the steps below first.

## Watch the walkthrough

Prefer to follow along on video? This walkthrough covers Claude Code CLI onboarding.

[Claude Code Onboarding](https://www.youtube.com/embed/QXhh7GFg2ys)

## Step by step

**1. Install**

Run the native installer for your platform:

```bash theme={null} theme={null}
curl -fsSL https://claude.ai/install.sh | bash
```

```powershell theme={null} theme={null}
irm https://claude.ai/install.ps1 | iex
```

This downloads the `claude` binary directly — no separate Node.js or npm setup needed for this step.

**2. Verify**

Open a **new** terminal window (a window that was already open won't see the updated `PATH`), then run:

```bash theme={null} theme={null}
claude --version
```

A working install prints something like `2.1.263 (Claude Code)`.

> [!WARNING]
>
> If you see `command not found: claude`, the installer likely finished without adding itself to your `PATH`. Fix it with:
>
> ```bash theme={null} theme={null}
> echo 'export PATH="$HOME/.local/bin:$PATH"' >> ~/.zshrc && source ~/.zshrc
> ```
>
> (Use `~/.bash_profile` instead of `~/.zshrc` if your shell is bash, not zsh.) Then open a fresh terminal window and re-run `claude --version`.

> [!WARNING]
>
> If you see `claude native binary not installed`, the platform-specific binary failed to download. Re-run the installer above (not `npm install`) — this resolves it in almost all cases.

**3. Log in**

Run:

```bash theme={null} theme={null}
claude
```

This opens an interactive session and prompts you to sign in through your browser on first run. If you land on pay-per-use API billing instead of your subscription plan, run `/login` inside the session to switch.

> [!NOTE]
>
> Claude Code requires a **Pro, Max, Team, Enterprise, or Console** account — the free Claude.ai plan does not include Claude Code access.

Once logged in, exit back to your normal shell prompt (type `exit` or press `Ctrl+C`) before continuing to [Installation](https://docs.yellow.pro/mcp/installation.md) — the Yellow\.pro setup commands are regular shell commands, not something you run inside an active Claude Code session.

## Troubleshooting

> [!WARNING]
>
> **Terminal appears frozen after pasting a multi-line command.** This usually means a quote character was altered in transit (e.g. a straight `'` became a curly `'`), and the shell is silently waiting for you to close it — check whether your prompt reads `dquote>` or `quote>` instead of the normal prompt. Press `Ctrl+C` to cancel, then re-enter the commands one line at a time instead of pasting a multi-line block.

Next: continue to [Installation](https://docs.yellow.pro/mcp/installation.md) to install and register the Yellow\.pro MCP server with Claude Code.


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.