# opencode-config 个人 [OpenCode](https://opencode.ai) 配置文件,通过 LiteLLM 代理接入多家模型。 ## 使用 1. 安装 OpenCode ```bash npm i -g opencode-ai # 或 bun add -g opencode-ai ``` 2. 克隆配置到 `~/.config/opencode` ```bash git clone ~/.config/opencode ``` 3. 参考 `.env.example` 配置环境变量 ```bash export LITELLM_BASE_URL="https://your-litellm-endpoint" export LITELLM_API_KEY="your-api-key" ``` 4. 运行 `opencode`