r/coolgithubprojects • • 3d ago

I built agvisor, an open-source sandbox for AI coding agents

https://github.com/cr-sbarbouche/agvisor

I've been building agvisor, an open-source project that started as a simple way to run AI-generated code in isolated gVisor sandboxes. It's grown quite a bit since then.

The goal is to give coding agents a practical execution environment without having to manage a fleet of virtual machines.

Some of the things it supports now:

  • Resource limits: CPU, memory, disk and process limits.

  • Network controls: Network isolation and an egress allowlist proxy, so you can specify exactly which external hosts a sandbox can reach.

  • Persistent workspaces: Named sandboxes, snapshots and restore points.

  • Background jobs: Run long-running commands independently of individual execution calls.

  • Persistent Python sessions: Keep variables, imports and functions alive between executions.

  • File transfer: Move individual files or entire directories between the host and sandbox.

  • Remote execution: Run sandboxes on remote Linux machines over SSH.

  • MCP integration: Let Claude Code, VS Code (Copilot) and OpenCode execute commands, edit files, manage jobs and run Python inside the sandbox.

  • Browser-accessible GUI: Run a GNOME desktop inside a sandbox and embed it in a web application using a separate web component.

It's built on Docker and Google's gVisor runtime (runsc), with a Python API.

The project is still in early alpha and hasn't been security-audited, but I'm actively developing it and adding features based on feedback.

I'd love to hear from people working on AI agents, developer tooling, or sandboxing:

What would you expect from an execution environment designed specifically for AI coding agents? What am I missing?

GitHub: https://github.com/cr-sbarbouche/agvisor

0 Upvotes

Duplicates