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

# Install Claude Code

> Install Claude Code on your machine so you can use AI chat in Lunagraph.

Lunagraph uses Claude Code to power its AI chat feature. If you try to use the chat without Claude Code installed, you'll get an error. Follow the steps below to set it up.

<Note>
  Claude Code requires a Claude subscription (Pro or Max).
</Note>

## Video walkthrough

<iframe src="https://www.loom.com/embed/d07a992b4e4049c8bcc1ffdeb6e5d094" frameBorder="0" allowFullScreen style={{ width: "100%", aspectRatio: "16/9", borderRadius: "0.5rem" }} />

## Install Claude Code

<Steps>
  <Step title="Open Terminal">
    Terminal is a built-in app on your Mac that lets you run commands. You can find it by pressing **Cmd + Space**, typing **Terminal**, and pressing Enter.
  </Step>

  <Step title="Install Claude Code">
    Follow the official installation instructions for your operating system in the [Claude Code docs](https://code.claude.com/docs/en/overview).

    The docs will walk you through downloading and installing Claude Code on your machine.
  </Step>

  <Step title="Complete the setup">
    After the installation finishes, you may see setup notes in the terminal. Follow the instructions — copy any lines it tells you to run, paste them into the terminal, and press Enter.
  </Step>

  <Step title="Log in to Claude">
    Type `claude` in your terminal and press Enter. It will prompt you to log in — you'll be taken to a browser window to authorize with your Claude account.
  </Step>

  <Step title="Restart Lunagraph">
    Once the login is successful, quit Lunagraph and reopen it. The AI chat should now work.
  </Step>
</Steps>
