{"slug": "suddo-sudo-password-prompts-without-leaving-your-ai-agent-s-chat", "title": "suddo – sudo password prompts without leaving your AI agent's chat", "summary": "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.", "body_md": "# suddo (superuser don't do)\n\nSometimes AI needs to run commands with sudo (installing a package,\n\nreading a file in /etc, etc). But most MCP clients don't support\n\ncreating a PTY, so you end up having to open a separate terminal\n\njust to type your password:\n\n``` bash\n    claude code                    $ sudo cat /etc/hosts\n    AI: blabla                     password:\n\n    > ! sudo cat /etc/hosts\n    AI: please open a new terminal.\n```\n\nAnnoying.\n\nWith suddo:\n\n```\nAI calls the tool `execute_command`\n\nThe server asks you, rejects, or allows it based on your rules\n```\n\nIf allowed:\n\nIf you don't have a valid sudo timestamp, it asks for your password\n\nThe command runs safely\n\nMore detail and usage: `https://github.com/sunu15712/suddo`", "url": "https://wpnews.pro/news/suddo-sudo-password-prompts-without-leaving-your-ai-agent-s-chat", "canonical_source": "https://dev.to/sunu15712/suddo-sudo-password-prompts-without-leaving-your-ai-agents-chat-2dgg", "published_at": "2026-08-03 03:37:02+00:00", "updated_at": "2026-08-03 04:15:47.465806+00:00", "lang": "en", "topics": ["developer-tools", "ai-agents", "ai-tools"], "entities": ["suddo", "Claude Code", "GitHub"], "alternates": {"html": "https://wpnews.pro/news/suddo-sudo-password-prompts-without-leaving-your-ai-agent-s-chat", "markdown": "https://wpnews.pro/news/suddo-sudo-password-prompts-without-leaving-your-ai-agent-s-chat.md", "text": "https://wpnews.pro/news/suddo-sudo-password-prompts-without-leaving-your-ai-agent-s-chat.txt", "jsonld": "https://wpnews.pro/news/suddo-sudo-password-prompts-without-leaving-your-ai-agent-s-chat.jsonld"}}