Skip to content
OpenSmartRoute
Skillv1.0.0

opencode-openspace-setup

在 Windows 11 上完整安装和配置 OpenCode + OpenSpace + oh-my-openagent,包括 MCP 连接、免费模型分配、全局 AGENTS.md 规则配置

by ligc2017(0) 0 installs
Free
Sign in to install

Free account. Installing gives you the manifest plus copy-paste snippets.

See reviews

About

Imported from ligc2017/OpenSpace-SkillFile-md (opencode-openspace-setup/SKILL.md). Install upstream with npx skills add ligc2017/OpenSpace-SkillFile-md --skill opencode-openspace-setup. Copyright stays with the author.

OpenCode + OpenSpace 集成配置技能

适用场景

在 Windows 11 AMD64 上从零开始搭建 OpenCode + OpenSpace AI 编程工作流。

技术栈

  • opencode-ai (v1.4+)
  • oh-my-openagent (v3.16+)
  • OpenSpace MCP Server (Python)
  • Node.js / npm

关键步骤

1. 安装依赖

npm install -g opencode-ai
npm install -g oh-my-opencode
npm install -g oh-my-opencode-windows-x64 --force
git clone https://github.com/HKUDS/OpenSpace.git C:\OpenSpace
pip install -e C:\OpenSpace

2. opencode.json 配置

路径:C:\Users\Administrator\.config\opencode\opencode.json

{
  "$schema": "https://opencode.ai/config.json",
  "model": "opencode/qwen3.6-plus-free",
  "plugin": ["oh-my-openagent@latest"],
  "mcp": {
    "openspace": {
      "type": "local",
      "command": ["python", "-m", "openspace.mcp_server"],
      "environment": {
        "PYTHONPATH": "C:\\OpenSpace"
      }
    }
  }
}

3. 运行 oh-my-openagent 安装器(无付费订阅)

npx oh-my-opencode install --no-tui --claude=no --openai=no --gemini=no --copilot=no --opencode-zen=no --opencode-go=no --zai-coding-plan=no

4. oh-my-opencode.json 模型分配(免费模型)

路径:C:\Users\Administrator\.config\opencode\oh-my-opencode.json

模型分配策略(按 agent 职责):

  • opencode/big-pickle:hephaestus, prometheus, metis + ultrabrain/deep 类别
  • opencode/minimax-m2.5-free:oracle, momus, atlas, sisyphus-junior
  • opencode/nemotron-3-super-free:librarian, explore + writing/unspecified-high
  • opencode/gpt-5-nano:multimodal-looker + quick/visual/artistry

5. 验证

opencode mcp list          # 应显示 openspace connected
oh-my-opencode doctor      # 应只有可选工具警告

注意事项

  • 所有 github-copilot/ 前缀模型需要 GitHub Copilot 订阅,无订阅时必须替换为 opencode/ 前缀
  • oh-my-opencode-windows-x64 平台包版本可能落后于主包,用 --force 安装后功能正常
  • OpenSpace MCP 通过 python -m openspace.mcp_server 启动,需要设置 PYTHONPATH

Use it

Copy one of these into your project. Installing also returns the manifest and these snippets.

yaml
targets:
  - https://api.opensmartroute.ai/api/v1/registry/ligc2017-openspace-skillfile-md-opencode-openspace-setup/manifest   # or paste the manifest below

Manifest

An Open Capability Manifest: the router reads it to know what this does, what it costs and when to pick it.

ligc2017-openspace-skillfile-md-opencode-openspace-setup.ocm.jsonjson
{
  "ocm": "1",
  "id": "ligc2017-openspace-skillfile-md-opencode-openspace-setup",
  "kind": "skill",
  "name": "opencode-openspace-setup",
  "description": "在 Windows 11 上完整安装和配置 OpenCode + OpenSpace + oh-my-openagent,包括 MCP 连接、免费模型分配、全局 AGENTS.md 规则配置",
  "publisher": "ligc2017",
  "version": "1.0.0",
  "capabilities": {
    "domains": [
      "general"
    ],
    "tags": [
      "skill-md",
      "opencode",
      "openspace",
      "setup",
      "windows",
      "mcp",
      "oh-my-openagent",
      "github"
    ],
    "languages": [
      "en"
    ]
  },
  "quality_prior": 0.6,
  "examples": [
    "在 Windows 11 上完整安装和配置 OpenCode + OpenSpace + oh-my-openagent,包括 MCP 连接、免费模型分配、全局 AGENTS.md 规则配置"
  ],
  "primary": false,
  "metadata": {
    "source": {
      "provider": "github",
      "repository": "https://github.com/ligc2017/OpenSpace-SkillFile-md",
      "path": "opencode-openspace-setup/SKILL.md",
      "ref": "17ba14f08b4c233c36e772e90b1be8465e18f782",
      "url": "https://github.com/ligc2017/OpenSpace-SkillFile-md/blob/17ba14f08b4c233c36e772e90b1be8465e18f782/opencode-openspace-setup/SKILL.md",
      "key": "ligc2017/OpenSpace-SkillFile-md/opencode-openspace-setup/SKILL.md"
    }
  },
  "instructions": "# OpenCode + OpenSpace 集成配置技能\n\n## 适用场景\n在 Windows 11 AMD64 上从零开始搭建 OpenCode + OpenSpace AI 编程工作流。\n\n## 技术栈\n- opencode-ai (v1.4+)\n- oh-my-openagent (v3.16+)\n- OpenSpace MCP Server (Python)\n- Node.js / npm\n\n## 关键步骤\n\n### 1. 安装依赖\n```powershell\nnpm install -g opencode-ai\nnpm install -g oh-my-opencode\nnpm install -g oh-my-opencode-windows-x64 --force\ngit clone https://github.com/HKUDS/OpenSpace.git C:\\OpenSpace\npip install -e C:\\OpenSpace\n```\n\n### 2. opencode.json 配置\n路径:`C:\\Users\\Administrator\\.config\\opencode\\opencode.json`\n\n```json\n{\n  \"$schema\": \"https://opencode.ai/config.json\",\n  \"model\": \"openco",
  "cost": {
    "context_tokens": 453
  }
}

Fetch it by URL: GET /api/v1/registry/ligc2017-openspace-skillfile-md-opencode-openspace-setup/manifest?version=1.0.0

Reviews

Star ratings from people who tried it. One review per account; edit yours any time.

No reviews yet. Install it, try it, and be the first to rate it.