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

# Installation

> Install the TypeScript Agent SDK and its core dependency.

## Install

```bash theme={null}
pnpm add @ai-stats/sdk @ai-stats/agent-sdk
```

You can also use `npm` or `yarn` if that matches your app:

```bash theme={null}
npm install @ai-stats/sdk @ai-stats/agent-sdk
```

## Environment

Set your gateway API key before running examples:

```bash theme={null}
export AI_STATS_API_KEY="aistats_***"
```

## Next

* [Overview](./agent-sdk-overview.mdx)
* [Usage](./agent-sdk.mdx)
