Wisdoverse/dsh-git-auth-plugin0

dsh-git-auth

DSH 宿主工具包:用于管理 glab / gh 授权以及 SSH 密钥的生成与配置。

AI 分析

核心用途是简化 Git 托管平台的授权管理。适合需要在 DSH 环境中频繁与 GitHub/GitLab 交互、管理 SSH 密钥的开发者。

套件
dsh-git-auth
版本
0.1.0
授權
MIT
最近更新
2026年9月4日

安裝

$npx -p @deepseek-ai/dsh dsh plugin --profile web add github:Wisdoverse/dsh-git-auth-plugin

Configuration

Open Settings → Plugins → Plugin configuration, or edit the git-auth section in the DSH settings document (normally $DSH_HOME/settings.yaml).

SettingDefaultAccepted value
ghHostgithub.comBare GitHub hostname, optionally with a port
glabHostgitlab.comBare GitLab hostname, optionally with a port
commandTimeoutMs60000Integer greater than or equal to 1
sshPathEmptyDirect child of /.ssh; empty means /.ssh/id_ed25519
sshCommentEmptyDefault comment passed to ssh-keygen
sshAddAgentfalseWhether generated keys are loaded with ssh-add by default
git-auth:
  glabHost: gitlab.example.com
  commandTimeoutMs: 60000
  sshPath: id_ed25519
  sshComment: developer@example.com
  sshAddAgent: true

Settings are resolved at tool-call time, so host-side settings-file updates do not require a plugin reinstall. DSH may restrict settings writes from remote browsers; edit the host settings file if the UI is read-only.

sshPath is a shared default name resolved separately inside every session workspace. ssh_key generate also writes that repository's local core.sshCommand; use action: configure to bind an existing key. That command uses /.ssh/known_hosts, so it also works when the DSH process has no HOME.