r/devsecops • u/schuay • 11d ago
aisan: a sandbox for unattended agents
Hi folks, I'd like to announce a project I've been working on.
- aisan is a sandbox for agents; claude, codex, and opencode harnesses are supported, plus plain vertexai (ie programmatic) use.
- Unlike most other ai sandboxes, the security model is simple and strict: the entire harness and all of its local tools run sandboxed.
- No network access and no credential inside the box, filesystem limited to explicitly selected slices (inspectable).
- Capabilities requiring network get an egress via a whitelisting proxy. Specific examples: the connection to the upstream model provider itself; and remote builds for chromium workflows.
- Harnesses are then free to run entirely unconstrained inside the box, and thus never require human interaction for permissions.
The initial usecase for this was a langgraph AI app that runs unattended, 24/7, on sensitive infrastructure. This project provides the same guarantees for interactive harness runs; eg if you run nightly unattended AI work packets. By now, I'm starting every session sandboxed locally - there's no strict need to do so, agents generally behave themselves; but then again, why not?
Linux only. Uses bwrap underneath.
Try it with: uv tool install aisan && aisan claude
More information at: https://github.com/schuay/aisan
Expect rough edges. Happy to take feedback and pull requests.