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

# theo login

> 通過 Theo API 進行身份驗證。

```bash theme={null}
theo login
```

在瀏覽器中打開控制台,並引導你完成 API 密鑰的設置。

## 存儲方式

API 密鑰可以存儲在以下位置:

1. `THEO_API_KEY` 環境變量(推薦)
2. `~/.theo/credentials` 文件(持久化保存)

```bash theme={null}
# 方式一:環境變量
export THEO_API_KEY=theo_sk_...

# 方式二:憑據文件
mkdir -p ~/.theo
echo '{"apiKey":"theo_sk_..."}' > ~/.theo/credentials
chmod 600 ~/.theo/credentials
```


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