今日已更新 200 条资讯 | 累计 27375 条内容
关于我们

suddo – sudo password prompts without leaving your AI agent's chat

sunu15712 2026年08月03日 11:37 0 次阅读 来源:Dev.to

# suddo (superuser don't do) Sometimes AI needs to run commands with sudo (installing a package, reading a file in /etc, etc). But most MCP clients don't support creating a PTY, so you end up having to open a separate terminal just to type your password: claude code $ sudo cat /etc/hosts AI: blabla password: > ! sudo cat /etc/hosts AI: please open a new terminal. Annoying. With suddo: AI calls the tool `execute_command` The server asks you, rejects, or allows it based on your rules If allowed: If you don't have a valid sudo timestamp, it asks for your password The command runs safely More detail and usage: https://github.com/sunu15712/suddo

本文内容来源于互联网,版权归原作者所有
查看原文