> ## 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.