Why not a VM, Docker Sandboxes or Claude Code's sandbox?
A VM or a sandbox is a wall. The hard part is what you let through it.
If your keys go in with the agent, they can go out with it, and
anything it sends to an allowed host goes out unread. bot-bottle is
the wall plus the door: a gateway that holds the keys, allows only
what the task needs, scans what leaves and gates every push. When the
agent needs more, you approve it from your terminal or phone.
Describe the task, and the bottle is drafted for you, for any agent.
Do I have to design a policy for every task?
No. Bottles compose: keep a base bottle for your stack, and a task
adds only what it needs on top. The architect reuses your bottles
and proposes the difference, so you review a few lines, not a whole
policy. Repos can ship bottles too, which run once you trust them.
Less time drawing boundaries, and the boundary is just as strong.
How easy is scoping API access?
A route per host, as narrow as the task needs. Routes are read-only
until you list methods, and allow narrows
one to paths and headers, so an agent can read issues without being
able to delete a repo. Repos are read-only unless granted
:write. The gateway adds the token per route, and
anything the bottle left out comes to you as an approval.
Will it work with my setup?
It runs your agent's own harness, with the login you already
have, on your machine. Repos come in through git-gate, packages
install from the usual registries, and a bottled agent can be
resumed later with its session. On macOS a bottle can also run
containers of its own.
What does --auto grant?
Only the bottle it proposes, which reuses your bottles and adds what
the task needs. Nothing is saved. Anything it left out
is blocked and comes to you as an approval while the agent
works.
Does it always run in a microVM?
On Linux with KVM it uses Firecracker; on macOS, Apple's
container. Hosts with neither can fall back to
Docker, where the agent shares the host kernel. The gateway is
still the only way out, but the isolation is weaker.
bot-bottle doctor shows which backends are ready.
How strong is the secret scanning?
There are two layers. Your real tokens never enter the VM, so
there's nothing there to steal: that part is structural. On top
of that, outbound requests and every push are scanned for
credential-shaped strings. The first is a guarantee. The second
catches mistakes, not an agent set on hiding a secret.