dtfm

Approve the sudo, SSH, and cloud commands a sandboxed AI agent asks to run

Visit dtfm.dev FreeOpen source

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

    by AnthropicFreeOpen sourceCLI, Web, API
  • Claude Agent SDK

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

    by AnthropicFreeCLI
  • FastMCP

    Fast, Pythonic framework for building MCP servers and clients

    by PrefectFreeOpen sourceCLI
  • MCP Inspector

    Official visual testing tool for Model Context Protocol servers

    FreeOpen sourceWeb, CLI
  • MCP Python SDK

    Official Python SDK for Model Context Protocol servers and clients

    FreeOpen sourceCLI
  • MCP TypeScript SDK

    Official TypeScript SDK for building MCP servers and clients

    FreeOpen sourceCLI

Built a tool like dtfm? Submit it for review