1
0
forked from agents/opencode
Files
opencode-config/README.md

29 lines
472 B
Markdown

# 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` 配置环境变量
```bash
export LITELLM_BASE_URL="https://your-litellm-endpoint"
export LITELLM_API_KEY="your-api-key"
```
4. 运行 `opencode`