This commit is contained in:
2026-09-11 06:20:11 +08:00
parent 8065f42563
commit e80aa747e5
12 changed files with 396 additions and 1259 deletions

View File

@@ -36,6 +36,33 @@ source ~/.bashrc # 如果使用 zsh,改为 source ~/.zshrc
hermes --version
```
## 配置环境变量
将 `OPENAI_API_KEY` 环境变量设置为 Token Plan 个人版专属 API Key。
1. 在终端中执行以下命令,查看默认 Shell 类型。
```bash
echo $SHELL
```
2. 根据 Shell 类型设置环境变量:
```bash
# 将 YOUR_API_KEY 替换为 Token Plan 个人版 API Key
echo 'export OPENAI_API_KEY="YOUR_API_KEY"' >> ~/.zshrc
```
```bash
# 将 YOUR_API_KEY 替换为 Token Plan 个人版 API Key
echo 'export OPENAI_API_KEY="YOUR_API_KEY"' >> ~/.bash_profile
```
3. 执行以下命令使环境变量生效。
```bash
source ~/.zshrc
```
```bash
source ~/.bash_profile
```
## 配置接入凭证
通过 `hermes config set` 命令配置接入参数,根据所选方案填入对应的 Base URL 和 API Key: