Running coding agents without handing them my credentials
An engineer built lend, a proxy tool that lets remote AI coding agents execute privileged commands and access secrets locally via biometric approval without exposing credentials on VMs.
read it It offers a concrete architectural approach and open-source tool for solving credential leakage in remote AI agent workflows, complete with policy and MCP integration.
summary
The author built lend to prevent remote AI coding agents running on throwaway VMs from accessing sensitive credentials directly. The proxy intercepts execution and signing requests, checks them against a local policy file, and prompts the user for Touch ID confirmation on their laptop before running the command locally. It supports injecting secrets from 1Password and integrates with the Model Context Protocol, ensuring tokens never touch the remote VM. Commenters debate whether this security boundary is sound given the broad capabilities of approved commands.
key points
- lend functions as an SSH agent proxy that routes remote execution requests back to the host machine for local processing.
- Every request requires explicit local biometric approval and must match a strict JSON policy defining allowed executables and arguments.
- It can securely inject secrets from 1Password into commands at runtime without exposing the underlying tokens to the agent.
who should read it
Software engineers and systems developers building secure workflows for remote AI coding agents.
discussion mixed
consensus
Commenters generally appreciate the problem being addressed but heavily critique the security model, arguing that human approval fatigue and powerful CLI tools create a false sense of security against prompt injection.
pushback
Several users argue that container/microvm sandboxing or dedicated hardware setups are vastly superior alternatives to proxying capabilities back to a trusted local machine.
I just don’t think I agree with these designs at all. Everyone seems to be super laser focused on “not allowing their AI to have keys” when basically giving their AI direct access to what the keys enable, optionally adding a layer of ceremony in front where you tap “approve”. I’m looking at the alert that is shown there and I don’t see anything that makes me feel like it allows for an informed choice at the time of it popping up. So then, what’s the benefit?
It articulates the core skepticism of the thread, pointing out that human approval layers provide little safety if the underlying tools retain powerful capabilities.
Generated by an LLM from the article and thread. Check the sources before relying on it.