Wisdoverse/dsh-git-auth-plugin ↗★ 0

dsh-git-auth

DSH host tool bundle: manage glab / gh authorization and SSH keys 适合需要在DSH环境中安全管理代码托管平台凭证与密钥的开发人员。

패키지
dsh-git-auth
호환성
미검증
Harness peer 범위
^0.1.1-rc.2
Cordis peer 범위
^4.0.1
버전
0.1.0
라이선스
MIT
최근 업데이트
2026. 10. 5.

설치

$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.

Key names ending in .pub, .gitignore, and known_hosts are reserved. Public-key output validates a complete OpenSSH public key and omits its comment; the on-disk comment is preserved, and showing a public-only file remains supported.