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

# 使用 Agno Platform 进行认证

> 设置认证以开始监控、追踪性能指标和管理您的 Agno 工作空间。

有两种方法可以使用 Agno 进行认证：

1. 使用 CLI 设置命令 (`ag setup`)
2. 在您的环境中手动设置 API 密钥

### 方法一：CLI 认证

最快的认证方式是使用 Agno CLI：

```bash theme={null}
ag setup
```

此命令将打开您的浏览器以使用 Agno Platform 进行认证并自动配置您的工作空间。

### 方法二：手动 API 密钥设置

或者，您可以手动设置您的 API 密钥：

1. 从 [app.agno.com/settings](https://app.agno.com/settings) 获取您的 API 密钥。
2. 在您的环境中设置 API 密钥。

<CodeGroup>
  ```bash Mac theme={null}
  export AGNO_API_KEY=ag-***
  ```

  ```bash Windows theme={null}
  setx AGNO_API_KEY ag-***
  ```
</CodeGroup>
