Noob-stupid/dsh-github-login
DeepSeek Harness 生态的 GitHub 可视化登录工具(零终端):采用设备码流程,令牌与 gh CLI 同步 | 适用于 DSH 生态,无需终端的 GitHub 可视化登录方式
Project Overview项目介绍
This is a DSH-native plugin that enables zero-terminal GitHub OAuth login via the standard device flow. All authorization steps run inside a built-in Chromium webview window, which shares the same network stack as the user’s system browser, so it avoids common login issues caused by mismatched proxy configurations between the terminal and browser. It can be installed directly into DSH with a single command, which automatically registers host loopback endpoints that let DSH check current login status and open the login window on demand. It also syncs the obtained access token to the local GitHub CLI configuration automatically after a successful login.
The plugin is primarily built for DSH users that need authenticated access to GitHub from within DSH development workflows. The most common integration is with the dsh-plugin-hub plugin management panel, where logging in via this tool increases the GitHub API search rate limit from 10 requests per minute to 30. The standard workflow starts when DSH triggers the login flow, which spawns the standalone login window. Users can complete authorization either in the embedded webview or their external browser, and the resulting token is saved to a standard file path that any DSH tool can access for making authenticated GitHub requests.
To build the plugin from source, you first need to install Node.js and npm on your local machine, then run npm install to pull the Electron dependency, which is pre-configured to use a domestic mirror for users located in China. After installing all dependencies, you can run npm start to launch the tool directly for local testing, or run npm run dist to package it into a single portable executable file for regular use. The project is released under the permissive MIT open source license, and it currently has the help-wanted tag, meaning maintainers are actively looking for new contributors to help fix outstanding issues.
这是专为DeepSeek Harness(DSH)开发的GitHub登录原生插件,基于GitHub设备授权流程实现,整个授权流程在内置窗口内完成,和用户浏览器共用同一网络通道,不受终端代理配置差异影响。它可以通过一条DSH命令直接安装启用,同时向DSH宿主提供了环回接口,支持查询登录状态、唤起登录窗口,还能同步登录状态到gh CLI。
面向需要在DSH生态中完成GitHub授权的开发者,最典型的使用场景是配合dsh-plugin-hub插件管理面板使用,登录后可以提升GitHub插件市场的搜索配额,从每分钟10次提升到30次。用户只需唤起登录窗口后跟随提示完成授权即可,授权成功后令牌会保存在本地配置文件,同时同步写入gh CLI的配置文件,让gh命令行直接可用。
本插件基于Electron开发,打包后生成独立单文件可执行程序,用户也可以通过npm安装依赖后自行运行或打包。它复用了GitHub CLI的公开OAuth客户端ID,申请的授权权限包含repo、workflow、gist等常用范围。项目采用MIT许可证开源,项目标记了help-wanted标签,欢迎开发者贡献代码解决现存问题。
请帮我安装这个 DSH 插件。安装前先完成【兼容性检查 + 安全性检查】,检查通过再动手。
插件:dsh-github-login(Noob-stupid/dsh-github-login)
仓库:https://github.com/Noob-stupid/dsh-github-login
本站详情页:https://www.yhbd.top/plugins/noob-stupid-dsh-github-login/
本站登记:类型 plugin · 归类 原生 DSH 插件 · 许可证未声明 · ⭐ 5 · 最近提交 2026-08-16 · 主语言 HTML
按下面顺序执行,每步先把结论告诉我,再进入下一步:
【1 兼容性检查】
① 我这边:DSH 版本、Node 版本、操作系统、当前 profile(web / desktop)。
② 读它的 README、package.json、插件 manifest,列出它要求的 DSH 版本 / Node 版本 / 操作系统 / 外部依赖 / 需要另外先装的运行时。
③ 逐条比对,结论只写「满足 / 不满足 / 未知」三种;不满足的给出可行替代方案。
④ 检查是否和我已装的插件冲突:命令名重复、skill / tool 重名、端口占用、重复注册的 MCP server。
【2 安全性检查】
① 仓库可信度:和上面「本站登记」是否一致;star / fork 数、创建时间、最近提交,是否归档或长期停更。
② 安装脚本:逐行看 package.json 的 preinstall / install / postinstall,以及 install.sh、setup.ps1 之类脚本。出现 curl|bash、下载后直接执行、混淆代码、访问与插件功能无关的域名,立刻停下来告诉我,不要继续装。
③ 依赖:列出新增依赖,标出无人维护、或与知名包拼写近似的可疑包(typosquatting)。
④ 权限与副作用:它会读写哪些目录、访问哪些域名、需要哪些 DSH 权限(filesystem / network / shell / clipboard 等),以及怎么卸载和回滚。
⑤ 如果它要求 sudo / 管理员权限,或权限明显超出功能所需,先停下来问我。
【3 安装】
上面两步没有「不满足」和「高危项」时才执行;用官方推荐方式安装,不要自行提权。
【4 汇报】
用表格输出:检查项 / 结论 / 依据 / 是否需要我决策。拿不准的一律写「未知」并说明要我怎么确认——不要猜,也不要替我决定。
Send this message to DSH in your current session: it verifies compatibility and security first (answering met / not met / unknown item by item) and only installs once everything checks out — it will stop and ask you if it finds a high-risk item. The box scrolls; the copy is the full prompt. CLI install commands may not be accurate across systems, so DSH is the safer route.把上面这条消息直接发给当前会话里的 DSH:它会先核对兼容性与安全性(逐条给「满足 / 不满足 / 未知」),确认没问题再安装,有高危项会停下来问你。框内可滚动,复制到的是完整提示词;安装命令不一定准确,发给 DSH 更稳。
- No license declared - all rights reserved by default; ask the author before commercial use or redistribution未声明开源许可证 —— 默认「保留所有权利」,商用或再分发前先问作者
- Only 5 stars - very few users, little community feedback星标只有 5,几乎没人在用,遇到问题缺少社区反馈
DSH walks through these 9 checksDSH 会逐条核对这 9 项
Compatibility兼容性
- DSH, Node, OS and profile requirementsDSH 版本 / Node 版本 / 操作系统 / profile 是否满足要求
- External dependencies and runtimes (Electron / Python / Docker, ...)外部依赖与运行时(Electron / Python / Docker 等)是否齐备
- Conflicts with installed plugins: command names, skill / tool names, ports, duplicate MCP registration与已装插件是否冲突:命令名、skill / tool 重名、端口占用、重复 MCP 注册
Security安全性
- Repo matches the facts registered here; archived or abandoned?仓库是否与页面登记一致,是否归档或长期停更
- Safety of preinstall / install / postinstall and install.sh / setup.ps1preinstall / install / postinstall 与 install.sh、setup.ps1 是否安全
- curl|bash, download-then-execute, obfuscation, unrelated domains → stop immediatelycurl|bash、下载即执行、混淆代码、无关域名 → 立刻停止
- Typosquatting or unmaintained packages among the new dependencies新增依赖里有没有 typosquatting 或无人维护的包
- Requested permissions vs. what the feature actually needs申请了哪些权限、是否超出功能所需(filesystem / network / shell / clipboard)
- Any sudo / admin requirement, plus uninstall and rollback是否要求 sudo / 管理员权限,以及卸载与回滚方式
Anything uncertain must be marked unknown with a note on how to confirm it. This site's signal screen is a static snapshot, not a security audit.拿不准的必须标「未知」并说明要我怎么确认。本站的信号筛查是静态快照,不能替代安全审计。
Or use CLI install (for developers)或使用命令行安装(适合开发者)
CLI Install命令行安装
dsh plugin --profile web add github:Noob-stupid/dsh-github-login
把 Noob-stupid/dsh-github-login 加入你的 DSH 配置(web profile)即可启用。
READMEREADME
DSH GitHub Login —— 独立的 GitHub 可视化登录插件
一个零终端的 GitHub 登录小工具:打开窗口 → 生成设备码 → 授权 → 完成。 设备码流程在窗口内(Chromium 网络栈)执行,与你的浏览器共用同一网络通道—— 浏览器能打开 GitHub,这里就能完成登录,不受终端/代理配置差异影响。
安装(DSH 插件模式)
一条命令装进 DSH,并自动启用宿主端插件(提供登录状态接口 + 一键唤起登录窗口):
dsh plugin --profile web add github:Noob-stupid/dsh-github-login
宿主端环回接口:
GET /github-auth/status→{ok, loggedIn, login}(只含账号名,绝不下发令牌)POST /github-auth/open→ 唤起登录工具窗口(本机存在 exe 时直接启动)
独立工具用法(不带 DSH 也行):
功能
- 窗口内授权:授权页直接内嵌在窗口里(
<webview>),带 前进 / 后退 / 刷新 按钮, 也可以一键改用外部浏览器打开; - 登录成功后令牌保存在
~/.dsh/github-auth.json; - 同时同步进 gh CLI 的
~/.config/gh/hosts.yml,gh 命令行立即可用(keyring 存在时 gh 以 keyring 优先); - 托盘常驻:随时查看账号状态 / 一键退出登录;
- 复用 GitHub CLI 的公开 OAuth client_id(
178c6fc778ccc68e1d6a),权限范围repo workflow gist read:org。
用法
npm install # 安装 electron(已配置国内镜像)
npm start # 直接运行
npm run dist # 打包为便携版单文件 exe(dist/DSH-GitHub-Login.exe)
与 dsh-plugin-hub 配套
dsh-plugin-hub(插件管理面板)会读取 本工具写入的同一份令牌文件:登录后面板的 GitHub 市场显示"已登录 GitHub:<账号>", 且服务端回退通道自动带认证(搜索配额 10 → 30 次/分钟)。
集成到其他应用(如桌面客户端)
把它当作一个独立进程调用即可:登录状态通过同一份文件(~/.dsh/github-auth.json)
共享,任何 DSH 生态工具都能读取:
spawn('<path>/DSH-GitHub-Login.exe', [], { windowsHide: false })
之后用 gh auth status 或直接读取 ~/.dsh/github-auth.json 验证登录状态。
原理
GitHub Device Flow:
POST https://github.com/login/device/code→user_code+device_code- 在窗口内嵌浏览器(或外部浏览器)打开
https://github.com/login/device,输入user_code授权 - 按 GitHub 给出的
interval轮询POST https://github.com/login/oauth/access_token - 拿到
access_token→ 主进程落盘 + 写入 gh 配置
Showing the opening section of the README — the full document lives in the repository以上为 README 开头摘要,完整文档在仓库内 · View the full README on GitHub →在 GitHub 查看完整 README →
Q00/ouroboros
crafter-station/petdex
anywhere-labs/Agents-Anywhere
amlyczz/dsh-agy-link
opencues/opencues
chaos-03x/dsh-agy