NewsCrawler.org

lend: running coding agents without handing them your credentials

Claude Code on the VM asks to run gh repo view on the laptop. The lend dialog on the Mac lists the request and the caller, Touch ID approves it, and Claude prints the repo description.
Image: blog.antonio.cx

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.

Sources

Published: First seen: Читать по-русски

Open as a page