Compare commits

..

9 Commits

Author SHA1 Message Date
838e615af6 merge upstream 2026-03-19 07:02:12 +00:00
fa7a9e1fe7 merge upstream 2026-03-18 06:57:30 +00:00
de299e0261 merge upstream 2026-03-16 01:34:09 +00:00
e6cf0e18f2 merge upstream 2026-03-11 02:17:20 +00:00
fe4d4f2c83 merge upstream 2026-03-06 06:36:13 +00:00
1a25662a90 merge upstream 2026-03-05 02:22:37 +00:00
b297f3b713 merge upstream 2026-03-04 10:15:55 +00:00
bc349dd01c chore: 将主题从 system 修改为 everforest 2026-03-02 13:31:33 +08:00
6e81723e4f chore: 将 .env 文件添加到 .gitignore 2026-03-02 13:31:21 +08:00
3 changed files with 2 additions and 32 deletions

1
.gitignore vendored
View File

@@ -4,3 +4,4 @@ bun.lock
.DS_Store
Thumbs.db
.env

View File

@@ -1,31 +0,0 @@
# opencode-config
个人 [OpenCode](https://opencode.ai) 配置文件。
## 使用
1. 安装 OpenCode
```bash
npm i -g opencode-ai
# 或
bun add -g opencode-ai
```
2. 克隆配置到 `~/.config/opencode`
```bash
git clone <repo-url> ~/.config/opencode
```
3. 参考 `.env.example` 将以下环境变量配置到系统中
| 变量 | 必填 | 说明 |
|------|------|------|
| `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`

View File

@@ -1,4 +1,4 @@
{
"$schema": "https://opencode.ai/tui.json",
"theme": "system"
"theme": "everforest"
}