MagicCrazyMan/dsh-password-prompt ↗★ 2
dsh-password-prompt
DSH 插件:Web 界面中的掩码密码输入面板。Agent 调用工具时浏览器弹出 HTML 密码框,输入值直接返回,无需交互式终端。
AI 分析
核心用途是提供安全的 Web 端密码输入交互。适合需要 Agent 执行 SSH、sudo 等需要敏感凭据的操作,且不希望密码进入模型上下文的用户。
安装
npx -p @deepseek-ai/dsh dsh plugin --profile web add github:MagicCrazyMan/dsh-password-prompt说明文档
阅读完整 README ↗Usage
Tell the agent something like:
连 192.168.1.10 需要密码,用 password_prompt 问我要。 连 192.168.1.10 的账号密码都问我。
The agent calls password_prompt, the masked panel pops up, you type, and the agent continues. The password never enters the model context: the tool writes it to the private 0600 file the agent named (outFile, e.g. /.dsh-secrets/ssh-pass) and returns only that path. The agent feeds the command from the file — an askpass script that cats it for SSH, sudo -S < file for sudo — then deletes the file. If the agent needs an account/username too, it calls password_prompt with account: true; the panel asks for both, the account is returned to the agent in the clear, and the password still stays file-only. The model cannot echo a secret it never possessed.