KNLCXY/dsh-github ↗★ 0

dsh-github

GitHub tools for DeepSeek Harness: call the REST API, commit many files in one commit, create repos, and check who the token belongs to. The token lives in the plugin's own settings — never in the repo, never in a tool result. 适合需要Agent直接操作GitHub仓库,且要求Token安全存储的用户。

패키지
dsh-github
호환성
미검증
Harness peer 범위
^0.1.5-rc.2 || ^0.2.0-rc.1
Cordis peer 범위
^4.0.2
버전
0.4.1
라이선스
MIT
최근 업데이트
2026. 10. 23.

같은 패키지 이름의 다른 저장소

설치

$npx -p @deepseek-ai/dsh dsh plugin --profile web add github:KNLCXY/dsh-github

填 token(唯一的配置步骤)

打开 设置 → GitHub,把 token 粘进第一个输入框,点保存。

输入框说明
GitHub token只有示例占位符 ghp_xxxxxxxxxxxxxxxxxxxx,没有默认值;不填就是没配
API 地址留空用 https://api.github.com;只有 GitHub Enterprise 才需要改
代理留空 = 直连。GitHub 直连超时的网络填 http://127.0.0.1:7897

也可以直接写文件(等价,改完下一轮工具调用即生效,不用重启):

// ~/.dsh/storages/dsh-github/settings.json
{
  "token": "ghp_xxxxxxxxxxxxxxxxxxxx",
  "apiBase": "https://api.github.com",
  "proxyUrl": "http://127.0.0.1:7897"
}

token 怎么建、要什么权限

你想干什么最小权限
只读仓库、看 issue / PRContents: Read(+ Issues: Read)
提交文件(github_push_files)Contents: Read and write
建仓库、设 topics再加 Administration: Read and write
用 classic token 图省事勾一个 repo 就全有了
  • fine-grained: → 选仓库 → 配上面几项 → Generate
  • classic: → 勾 repo → Generate

建议设过期时间(7–30 天)。不用了随时在同一个页面 Revoke。