dtfm
Approve the sudo, SSH, and cloud commands a sandboxed AI agent asks to run
dtfm lets an AI agent in a container or VM run privileged commands without holding your credentials. The agent calls lmdtfy with the command and a reason. dtfm shows the request in your own terminal, and you approve, edit, or reject it. Approved commands run on your machine, and sudo, SSH, or Touch ID prompts read straight from your TTY, so neither tool sees your password. The two sides connect over a local or SSH-forwarded Unix socket, or over an end-to-end encrypted relay that you can self-host.
Key features
- Approve, edit, or reject each command, shown with the agent's reason
- sudo, SSH, and Touch ID prompts go straight to your TTY
- Keeps aws, gcloud, kubectl, and gh credentials off the sandbox
- End-to-end encrypted relay with a self-hostable server
- Escapes control and bidi characters in prompts to prevent spoofing
Similar tools

Anthropic Skills
Anthropic's public repository of example Agent Skills for Claude

Claude Agent SDK
Build custom agents on the same agent loop and tools as Claude Code

FastMCP
Fast, Pythonic framework for building MCP servers and clients

MCP Inspector
Official visual testing tool for Model Context Protocol servers

MCP Python SDK
Official Python SDK for Model Context Protocol servers and clients

MCP TypeScript SDK
Official TypeScript SDK for building MCP servers and clients