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

작성자

카테고리:

← 피드로
DEV Community · sunu15712 · 2026-08-03 개발(SW)

sunu15712

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

Enter fullscreen mode Exit fullscreen mode

Annoying.

With suddo:

AI calls the tool `execute_command`

The server asks you, rejects, or allows it based on your rules

Enter fullscreen mode Exit fullscreen mode

If allowed:

  1. If you don’t have a valid sudo timestamp, it asks for your password

  2. The command runs safely

More detail and usage: https://github.com/sunu15712/suddo

원문에서 계속 ↗

코멘트

답글 남기기

이메일 주소는 공개되지 않습니다. 필수 필드는 *로 표시됩니다