opencode

安装

# 对于macOS
# v2
curl -fsSL https://opencode.ai/v2/install | bash
# v1
curl -fsSL https://opencode.ai/install | bash

# 对于Windows
npm install -g @opencode/cli

配置

设置非常驻模式

用来启用代理模式,防止出现无法应用代理的情况

注意仅对v2有效,v1不会常驻后台

opencode service set disabled true