cd /news/developer-tools/suddo-sudo-password-prompts-without-… · home topics developer-tools article
[ARTICLE · art-84232] src=dev.to ↗ pub= topic=developer-tools verified=true sentiment=· neutral

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

A developer has released suddo, an open-source tool that enables AI agents to run sudo commands without leaving the chat interface. It works by having the AI call an execute_command tool, which prompts the user for permission and password directly in the chat, eliminating the need for a separate terminal. The project is available on GitHub.

read1 min views1 publishedAug 3, 2026

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

── more in #developer-tools 4 stories · sorted by recency
── more on @suddo 3 stories trending now
sponsored brought to you by zahid.host 4,200+ EU-deployed projects
reading about agents? ship yours in a single git push.

Run your AI side-project on zahid.host

EU-based hosting, git-push deploys, automatic HTTPS, no cold starts. Free tier with a custom domain — perfect for shipping the agent you just read about.

$git push zahid main
Live at https://your-agent.zahid.host
Get free account → Pricing
from €0/mo · no card required
LIVE [news/suddo-sudo-password-…] indexed:0 read:1min 2026-08-03 ·