QoderAI/dsh-qoder-cloud-agents ↗★ 3

dsh-qoder-cloud-agents

DeepSeek Harness plugin that runs sessions and delegated tasks on Qoder Cloud Agents sandboxes

包名
dsh-qoder-cloud-agents
兼容性
待验证
Harness 依赖范围
>=0.2.0-0 <0.3.0
Cordis 依赖范围
>=4.0.0-0 <5
版本
0.1.0
许可证
MIT
最近更新
2026年10月29日

安装

$npx -p @deepseek-ai/dsh dsh plugin --profile web add github:QoderAI/dsh-qoder-cloud-agents

安装与配置

  1. 克隆仓库并构建安装包(npm pack 会先执行构建):

    git clone https://github.com/QoderAI/dsh-qoder-cloud-agents.git
    cd dsh-qoder-cloud-agents
    npm ci
    npm pack
    

    得到 dsh-qoder-cloud-agents-0.1.0.tgz。把它放到一个固定目录(例如 ~/dsh-plugins/),profile 里记录的是这个路径。

  2. 安装到 dsh 的 web profile(其他 profile 换成对应名字),路径必须是绝对路径:

    dsh plugin --profile web add ~/dsh-plugins/dsh-qoder-cloud-agents-0.1.0.tgz
    

    Mac / Windows 客户端:在侧边栏「插件」→ 安装插件,填 tgz 的绝对路径。

    安装时 dsh 会用 pnpm 从 npm 源拉取插件的运行时依赖 Qoder Cloud Agents TypeScript SDK,需要能访问 npm 源或其镜像。

  3. 把令牌写进 ~/.dsh/.env,不要写进仓库或 yml 配置:

    echo 'QODER_PAT=pt-' >> ~/.dsh/.env
    echo 'QODER_GIT_TOKEN=' >> ~/.dsh/.env   # 公开仓库、只读可以不配
    chmod 600 ~/.dsh/.env
    
  4. 通用 Git(GitHub 跳过):打开 ~/.dsh/profiles/web/cordis.patch.yml,加上用户名。文件里已有 id: qoder-cloud-agents 时只在它的 config 下补字段;文件只有一行 [] 时先删掉它:

    - id: qoder-cloud-agents
      name: dsh-qoder-cloud-agents
      config:
        gitUsername: your-git-user
    
  5. 其他可选配置也写在同一段 config 下(patch 会整体替换 config,已有字段要一起保留):

    - id: qoder-cloud-agents
      name: dsh-qoder-cloud-agents
      config:
        baseURL: https://api.qoder.com/api/v1/cloud
        environmentId: env_xxx        # 不填:首次使用时弹窗选择并记住
        agentId: agent_xxx            # 不填:自动选择或新建插件管理的 Agent
        repository: auto              # auto | none
        branchPrefix: qoder-cloud-agents/
        archiveOnFinish: false        # true:子代理回合结束后归档云端 session
        timeoutMs: 7200000            # 单次委派上限,超时会取消云端回合
    

    全部字段见 src/index.ts 中的 Config。

  6. 重启 dsh:在 dsh web 的终端按 Ctrl+C 停掉再运行 dsh web;客户端用户完全退出(⌘Q)后重新打开。dsh 只在启动时读取插件和令牌。