From cc388353001b306e1a7c0971a264eeb468ea9c54 Mon Sep 17 00:00:00 2001 From: imbytecat Date: Fri, 20 Mar 2026 10:31:22 +0800 Subject: [PATCH] =?UTF-8?q?docs:=20=E5=B1=95=E5=BC=80=E7=8E=AF=E5=A2=83?= =?UTF-8?q?=E5=8F=98=E9=87=8F=E9=85=8D=E7=BD=AE=E8=AF=B4=E6=98=8E?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- README.md | 13 ++++++++++--- 1 file changed, 10 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index 86b86e4..b5118fe 100644 --- a/README.md +++ b/README.md @@ -18,11 +18,18 @@ git clone ~/.config/opencode ``` -3. 参考 `.env.example` 配置环境变量 +3. 复制 `.env.example` 为 `.env` 并填写环境变量 ```bash - export LITELLM_BASE_URL="https://your-litellm-endpoint" - export LITELLM_API_KEY="your-api-key" + cp .env.example .env ``` + | 变量 | 必填 | 说明 | + |------|------|------| + | `LITELLM_BASE_URL` | 是 | 模型服务端点 | + | `LITELLM_API_KEY` | 是 | 模型服务密钥 | + | `EXA_API_KEY` | 否 | [Exa](https://exa.ai) 搜索,提供联网能力 | + | `CONTEXT7_API_KEY` | 否 | [Context7](https://context7.com) 文档查询,提供库文档检索 | + | `OPENCODE_GIT_BASH_PATH` | 否 | Windows 用户需指定 Git Bash 路径,否则工具调用可能异常 | + 4. 运行 `opencode`