Hey! I started bot-bottle about 6 months ago as a way to run agents securely on my local machine. Specifically, I wanted something that was agent agnostic, and which could provide a security layer that would be easy to set up and allow me to try new harnesses and agents. I also wanted something local first, and which would support harnesses like pi that would allow me to run models without reliance on the big providers. The main contribution of bot-bottle is the idea of a "bottle". It's an easily defined, composable definition for how an agent can interact with the outside world, and doesn't depend on anything harness or model specific. Bottles help solve the "exploit through trusted channel" problem by reducing the size of that trusted channel to be as small as possible, keeping credentials away from agents, and monitoring everything that comes in and out so leaks can be detected (either in real time when easy, or later via forensics if a more complex exploit gets by so you know what happened) Mobile support was also pretty important for me and how I use coding agents, so I provided a way to interact with and unblock agents on my phone regardless of the harness or model. Let me know what you think! Feedback on the threat model and the bottle abstraction are especially welcome.
Open bot-bottle.combot-bottle.com
bot-bottle
Runs AI coding agents (Claude Code, Codex, pi) in isolated microVMs or containers. Credentials stay outside the agent; outbound requests are scanned and controlled by composable plaintext security policies (bottles).
Visit project- First shared
- Nov 11, 2026
- HN activity
- 23
Show HN@didericisNov 11, 2026
Show HN: Bot-bottle – secure runtime, DLP and remote control for local agents
Hey! About 6 months ago, I started looking for a tool to safely run coding agents on my (security sensitive) developer machine. Specifically, I wanted a tool that: - I could use regardless of the model or harness running underneath - I could build simple, composable, plaintext security policies for - Provided strong vm level isolation - Hid credentials from agents - Scanned and monitored everything going in and out of agent workspace - Allowed me to use the same mobile flow I had gotten used to with claude code, but with arbitrary harnesses I couldn't find a tool that met all of these, so I started bot-bottle. It's evolved into what I'm hoping will be the best security conscious, local first coding agent orchestrator out there. Here's how it works: Each agent runs in its own microVM (Firecracker on Linux, Apple's container on macOS, Docker as a weaker fallback), with whichever harness you want. Claude Code, Codex and pi are built in, and custom agent providers are supported (still being documented/tested). What an agent can reach is defined in a "bottle", which is just a short markdown file listing hosts, repos and which secret goes to which host. Bottles are enforced by a gateway outside the agent VM, which adds the real credentials to requests on the way out, so the agent only sees placeholders. Bottles stack, so you can keep small ones around (npm read only, one repo, one API, etc) and combine them per task. Repos can ship their own bottles, which only run after you trust their exact contents. Outgoing requests and git pushes are scanned for secrets, and everything is logged locally (you can stream it to your own endpoint as NDJSON or OCSF). Anything a bottle doesn't allow comes to you for approval, in the terminal or on your phone through an optional paired console. It's in alpha (the console especially), so UI polish is still in progress. Install: curl -fsSL https://raw.githubusercontent.com/diderisoft/bot-bottle/main/install.sh | sh Docs: https://bot-bottle.com/docs Would love feedback, especially on the threat model and on whether bottles are the right abstraction.
Community