Skip to content- Sources: primary, discussion
- Summary: Antonio Mika's lend sits in front of the local SSH agent and adds a command execution extension, so a VM agent can ask to run gh or another allowed executable on the laptop after a Touch ID approval under a default-deny policy. Rules can inject 1Password secrets as environment variables, filter which SSH keys the VM sees, cap signatures and grant short leases, and an MCP server exposes a single run_local_command tool. The author says approved commands are not sandboxed and approving a shell or interpreter hands over arbitrary execution.
- Why it matters: It is a concrete alternative to copying tokens onto agent VMs or using ssh -A, giving per-request approval and an audit history for credentials agents need.
- Background: SSH agent forwarding lets a remote host ask your local agent to sign with your keys, but any process on that host can use every loaded key without prompting or logging. lend reuses the agent protocol's extension mechanism, as ssh-rev-exec and op-forward did before it, and adds policy and local approval on the laptop side.
- Comments: The Hacker News thread drew 112 points and 72 comments.