Running coding agents without handing them my credentials blog.antonio.cx · 41 p...
HN Best 200 @best
Running coding agents without handing them my credentials blog.antonio.cx · 41 points · 12 comments · HN thread
TL;DR The author describes lend, a tool he built that lets coding agents on a remote VM run specific commands on his laptop (such as gh or op-backed secret lookups) only after he approves each request with Touch ID. Credentials stay on the laptop, and the agent gets only the command output. The post also covers his setup with herdr and Ovis for running several agents in parallel from a phone or browser.
- Agents run on disposable VMs (picd at pico.sh) while SSH keys, 1Password and logged-in gh/cloud CLIs stay on the laptop.
- lend sits in front of the existing SSH agent socket; the VM sends a command request over that socket and the laptop runs it after a policy check and local approval.
- Policy is a JSON file on the laptop with default deny, per-executable approval modes (biometric:inline, biometric), optional args_prefix, and secrets injected from 1Password via op read.
- An MCP server exposes run_local_command to Claude Code, and a PermissionRequest hook routes other agent prompts to the laptop approval dialog.
- Known limits: an approved shell or interpreter effectively grants arbitrary execution, caller details shown in prompts are unverified, and there is no PTY support; macOS biometric approval only.
Discussion The thread is a mix of skeptical and comparative comments. Several commenters point to alternatives they already use, including KeePassXC with scripts, Docker sandboxes with secret injection, nono, smolvm, Agent Vault, and pass. The most substantive pushback questions whether a tap-to-approve dialog gives a meaningful informed choice, with one reply arguing the benefit is keeping credentials out of the chat transcript. The mood is pragmatic and mildly critical rather than enthusiastic, with a few commenters simply sharing their own setups.
- Approval dialogs don't give an informed choice, so the design adds little (some): One commenter argues that giving the agent access to what the keys enable, with an approve tap in front, is not meaningfully safer, and that the alert shows too little to judge the request.
- Keeping secrets out of the transcript is the real benefit (a few): A reply counters that the main value is that credentials never enter the chat transcript or the agent's context, which is a meaningful separation even if the agent can still trigger actions.
- Existing local vault tools already do this well enough (some): Several commenters say they use KeePassXC, pass, or similar tools with read-only, minimal-scope tokens and avoid destructive credentials for agents.
- Other sandboxes and proxies already offer secret injection (some): Commenters point to Docker sandboxes, nono, smolvm and Agent Vault as existing options, with one noting that proxy-based tools bypass Tailscale nodes.
- Unprivileged local user accounts beat remote VMs (a few): One commenter prefers a separate unprivileged account on their own machine to avoid VM latency and setup effort, and shares a tool called skynot.
- Interest in HTTP-level secret injection (a few): One commenter asks whether lend can route arbitrary HTTP requests and inject secrets, which would be more useful than command-level approval.
Links from the comments
- Docker sandboxes documentation on setting secrets for injection.
- Agent Vault, an existing tool mentioned as a prior alternative that its company is ending.
- skynot, a tool for setting up an unprivileged user account for an agent.
#aiAgents #credentialSecurity #sshAgent #devTools #claudeCode