AI

opencode安装使用

# 1. 安装

官网 (opens new window)

npm install -g opencode-ai

# 2. 配置

# 2.1. Windows配置

C:\Users\zouyu\.config\opencode\opencode.json
{
  "$schema": "https://opencode.ai/config.json",
  "plugin": [
    "@prevalentware/opencode-goal-plugin",
    "opencode-multi-openai-auth@latest",
    "oh-my-openagent@latest"
  ],
  "provider": {
    "tw-llm-proxy": {
      "models": {
        "deepseek-v4-flash": {},
        "deepseek-v4-pro": {},
        "glm-5.2": {},
        "gpt-5.6-luna": {},
        "gpt-5.6-sol": {},
        "gpt-5.6-terra": {},
        "gpu-deepseek-v4-flash": {}
      },
      "name": "tw-llm-proxy",
      "options": {
        "ANTHROPIC_API_KEY": "you key",
        "apiKey": "you key",
        "baseURL": "you url"
      }
    }
  }
}

# 2.2. skill安装

npx lazycodex-ai install
上次更新: