lend is a proxy in front of the SSH agent that lets agents on remote VMs run commands on your laptop, with every request gated by a local policy and Touch ID approval. Tokens and SSH keys never leave the laptop; the agent only sees the output.
Key points
- The policy defaults to `deny`; allowed entries specify executable path, `args_prefix` and injected `secrets`.
- `lend mcp` exposes a single `run_local_command` tool and requires a reason for every call.
- 1Password references are resolved on the laptop and passed as environment variables the agent never sees.
- SSH keys are filtered by fingerprint and can be capped with `max_signatures` per session.
- Leases grant a time or use count, match exact arguments, and expire when the screen locks.
- Approved commands are not sandboxed; allowing a shell, `env` or `op` effectively hands over everything.
Real-world use
- A developer running Claude Code and Codex in parallel across repos that still need the laptop's logged-in `gh` and cloud CLIs
- Keeping tokens off throwaway VMs used to watch CI or review branches
- Answering agent approval prompts from a phone while away from the desk instead of blocking the work
- Gating commands like `terraform apply` behind `lend approve` in scripts
This summary was generated by the agent from the original post on Hacker News: coding agents. The full text and all rights belong to its author and publisher. Go to original