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

# インストール

> Phaseo TypeScript Agent SDKをインストールして設定します。

Agent SDKはnpmで[`@phaseo/agent-sdk`](https://www.npmjs.com/package/@phaseo/agent-sdk)として公開されています。

## 必要条件

* npm、pnpm、Yarn、Bunのいずれかを使うTypeScriptまたはJavaScriptプロジェクト
* PhaseoのAPIキー

## インストール

使い慣れたパッケージマネージャーでAgent SDKをインストールします。

<CodeGroup>
  ```bash title="npm" theme={null}
  npm install @phaseo/agent-sdk
  ```

  ```bash title="pnpm" theme={null}
  pnpm add @phaseo/agent-sdk
  ```

  ```bash title="yarn" theme={null}
  yarn add @phaseo/agent-sdk
  ```

  ```bash title="bun" theme={null}
  bun add @phaseo/agent-sdk
  ```
</CodeGroup>

コアパッケージの`@phaseo/sdk`は依存関係として自動的にインストールされます。

## 環境変数

サンプルを実行する前に、ゲートウェイのAPIキーを設定します。

```bash theme={null}
export PHASEO_API_KEY="phaseo_v1_sk_..."
```

## 次のステップ

* [概要](./agent-sdk-overview.mdx)
* [Agent SDKで開発する](./agent-sdk.mdx)


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