vcpus=2, memory_mib=2048The microVM sandbox for AI agents
Your agent gets a whole computer for every task, from your laptop to production.
pip install virtxnpm install @brekkylab/virtxcargo add virtxclaude plugin marketplace add brekkylab/virtx && claude plugin install virtx@brekkylabcodex plugin marketplace add brekkylab/virtx && codex plugin add virtx@brekkylabNot just a shell Your agent's workspace
ports=[8000]Plug in any machine
volumes=[SandboxVolume(volume, "/data")]Attach your context
gpu=TrueGPU access
Let your agent drive everything
Ship your agent as a product
- Ailoy
- OpenAI Agents SDK
- LangChain
- Claude Agent SDK
- or any agent framework
The same code, anywhere
Works inside Claude Code and Codex
Claude Code
claude plugin marketplace add brekkylab/virtx claude plugin install virtx@brekkylab
Codex
codex plugin marketplace add brekkylab/virtx codex plugin add virtx@brekkylab
Any other agent
Open llms.txt
The CSV import fails on large files. Find out why and fix it.
I'll reproduce it in a clean sandbox first.
create_sandbox("python:3.12")exec pytest tests/test_import.py1 failed: MemoryError reading a 2 GB file
The importer loads the whole file. I changed it to read in chunks.
exec pytest tests/test_import.py6 passed in 2.10s
Great, ship it.
FAQs
Something else? Ask on Discord.
How is this different from running the agent in Docker?
A container is a process on your kernel, fenced off by namespaces, so an escape through the kernel lands on your machine. VirtX boots each sandbox as a microVM with its own kernel, behind the hardware's virtualization. It boots from the same OCI images, so your Docker images work as they are. More: Running untrusted code, MicroVM vs container
Does it run on my Mac?
Yes, on Apple silicon through Hypervisor.framework. It also runs on Linux through KVM and on Windows 11 through the Windows Hypervisor Platform. Sandboxes are Linux VMs on all three.
Do I need to install a server?
No. Client.spawn() starts virtx-stdio as a child of your program and fetches it the first time. Run virtx-server-tcp when you want a bigger machine or one a team shares.
Does it support GPUs?
A sandbox can use the host GPU through Vulkan, with the loader and driver that come with every sandbox. On VirtX cloud, GPU sandboxes are not available yet.
How do I deploy my agent?
Your agent keeps running where you run it. In production it opens a sandbox for each of its users on VirtX cloud, with the API key of a production project. See the deploy page for the steps.
What does VirtX cloud cost?
See the pricing page. VirtX cloud is in early access, and the packages run on your own machine for free.
Give your agent its own computer
Free on your own machine.