Newer
Older
aicoding / yarn / config / opencode.json
{
  "$schema": "https://opencode.ai/config.json",
  "model": "alibaba-cn/qwen3.8-max",
  "provider": {
    "bailian-payg": {
      "npm": "@ai-sdk/anthropic",
      "name": "Alibaba Cloud Model Studio",
      "options": {
        "baseURL": "https://llm-725mrgwyn1rzglgb.cn-beijing.maas.aliyuncs.com/apps/anthropic/v1",
        "apiKey": "{env:ALIBABA_API_KEY}"
      },
      "models": {
        "qwen3.7-max": {
          "name": "Qwen3.7 Max",
          "options": {
            "thinking": {
              "type": "enabled",
              "budgetTokens": 8192
            }
          }
        },
        "qwen3.7-plus": {
          "name": "Qwen3.7 Plus",
          "modalities": {
            "input": ["text", "image"],
            "output": ["text"]
          },
          "options": {
            "thinking": {
              "type": "enabled",
              "budgetTokens": 8192
            }
          }
        },
        "qwen3.6-plus": {
          "name": "Qwen3.6 Plus",
          "modalities": {
            "input": ["text", "image"],
            "output": ["text"]
          },
          "options": {
            "thinking": {
              "type": "enabled",
              "budgetTokens": 8192
            }
          }
        }
      }
    },
    "alibaba-cn": {
      "options": {
        "apiKey": "{env:ALIBABA_API_KEY}",
        "baseURL": "https://dashscope.aliyuncs.com/compatible-mode/v1"
      }
    }
  },
  "mcp": {
	"chrome-devtools": {
	  "type": "local",
      "command": [
        "docker", "run", "--rm", "-i",
        "-v", "E:/Work/jftech/findash/srcs/findash-admin:/workspace",
        "chrome-devtools-mcp:node24-v1.1.1",
        "--browserUrl=http://192.168.3.236:9222"
      ],
      "enabled": false
    }
  },
  "server": {
    "port": 4096,
    "hostname": "0.0.0.0"
  },
  "permission": {
	"external_directory": {
	  "/var/store/**": "allow"
	},
	"edit": {
      "/var/store/**": "deny" 
    }
  }
}