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

# Install

> Install agentgg from npm, or build it from source. It requires Node.js 20 or later.

## Install from npm

```bash theme={null}
npm install -g agentgg
```

## Verify the install

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

## Install from source

<Steps>
  <Step title="Clone the repository">
    ```bash theme={null}
    git clone https://github.com/agentgg-dev/agentgg
    ```
  </Step>

  <Step title="Enter the directory">
    ```bash theme={null}
    cd agentgg
    ```
  </Step>

  <Step title="Install dependencies">
    ```bash theme={null}
    pnpm install
    ```
  </Step>

  <Step title="Build the CLI">
    ```bash theme={null}
    pnpm --filter agentgg build:bundle
    ```
  </Step>

  <Step title="Link the global command">
    ```bash theme={null}
    cd packages/cli && pnpm link --global
    ```

    Run `pnpm setup` once first if pnpm has no global bin directory.
  </Step>
</Steps>

The global `agentgg` command links to `packages/cli`. A later build needs no re-link.

## Requirements

* Node.js 20 or later.
* pnpm 9 or later for a source install.
