Open-Sourcing Towel: A Local Proxy to Hide API Keys from Coding Agents
Patient_Path_6809 · reddit · 2026-08-02
A developer open-sourced a CLI tool called Towel (twl) to address a critical security risk in coding agents: the ability to read and expose live API keys from a project's .env file.
How It Works
Towel acts as a localhost proxy. It keeps the real API key hidden and provides the agent with a fake key and a local URL. When a request is made, Towel swaps the fake key for the real one on the way out, directing it only to the registered API.
Security Boundaries
This tool is not a sandbox; the agent can still use the live API (e.g., creating charges) through the proxy during the session. Its core value lies in removing the credential itself, ensuring that anything the agent logs, prints, or leaks is effectively useless. It is currently in alpha, Linux-only, and unaudited.
More from coding & agent
- Hugging Face releases RL-tuned Inkling-2-Mini: same Terminal-Bench score in 25min instead of 60 — yb2698 · 2026-12-02
- Open-Source Local MCP Server Connects Claude to D2L Brightspace, Read-Only — Illustrious_Key_9888 · 2026-12-02
- Domain Trust: A Security API and MCP Server for AI Agents to Vet Domains Before Interacting — Significant_Text8102 · 2026-12-02
- Subsola: a free open-source 3D map of underground utilities in 10 US cities, built with Claude Code — anselm · 2026-12-02
- "CI/CD is dead": Developer lays out the AI Software Factory replacing traditional pipelines — Pavan_Belagatti · 2026-12-02
- Codex lead confirms upgraded harness not shipped yet; current one 'will seem primitive in 2-3 months' — VraserX · 2026-12-02