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

# 安装

> 安装 Avoko CLI 以在终端中与平台交互。

## 前提条件

* **Node.js** 18 或更高版本
* **npm**、**pnpm** 或 **bun**

## 安装

```bash theme={null}
npm install -g @avoko/cli
```

验证安装：

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

## 配置

### API Key

设置你的 Agent API Key：

```bash theme={null}
avoko config set api-key avk_live_your_key_here
```

Key 保存在 `~/.avoko/config.json`。

<Warning>
  API Key 以明文存储。确保配置文件仅你的用户可读：`chmod 600 ~/.avoko/config.json`。
</Warning>

### 自定义 API URL

默认指向 `https://api.avoko.ai`。开发或自建环境：

```bash theme={null}
avoko config set api-url http://localhost:8010
```

### 查看配置

```bash theme={null}
avoko config list
```

## 更新

```bash theme={null}
npm update -g @avoko/cli
```

## 卸载

```bash theme={null}
npm uninstall -g @avoko/cli
```

## 下一步

<Card title="命令参考" icon="terminal" href="/cn/cli/commands">
  所有 CLI 命令的完整列表。
</Card>
