lend: running coding agents without handing them your credentials
The author wrote about lend[1], a proxy that sits in front of an SSH agent[2]. It lets coding agents on a remote virtual machine run commands on the author's laptop with the author's approval. Credentials such as the gh login stay on the laptop, so the agent gets the command's output but never the token.
Each request is checked against a policy file on the laptop that lists allowed commands and SSH keys, and everything else is denied. The author approves each request with Touch ID[3], and the biometric:inline setting puts the prompt directly in the request dialog. Lend can also run as an MCP[4] server for Claude Code, with one tool, run_local_command, that requires a reason for each call. The approval dialog shows the full executable path, arguments, working directory, reason and remote process details, and the reason and caller details are marked as unverified.
After an SSH reconnect the forwarded socket path changes, so the author keeps a stable symlink. A script in ~/.ssh/rc on the virtual machine updates the symlink, and running agents can keep using the same path.
Read the original blog.antonio.cxDiscussion
Discussion
Commenters disagree. Some say that letting an agent run commands with your credentials still gives it what those credentials can do, and that the approval dialog does not give enough information for an informed choice. Others describe their own setups, such as a second laptop with a custom HTTP API, keepassxc-cli, fnox, Docker sandbox secret injection and Agent Vault.
Links from the post and discussion
- fnox, CLI for encrypted secrets, recommended in comments fnox.jdx.dev
- Agent Vault, a tool one commenter used before github.com
- skynot, a tool for unprivileged agent user accounts github.com
- Docker sandboxes secret injection docs, from a comment docs.docker.com
Sources
-
blog.antonio.cx
Running coding agents without handing them my credentials

