The microVM sandbox for AI agents

Your agent gets a whole computer for every task, from your laptop to production.

pip install virtx
Sandbox

Not just a shell Your agent's workspace

Ports

Let your agent drive everything

  1. displayopen VS Code
  2. displayopen Chrome
  3. displayopen Blender
  4. browserfill in a form
  5. phoneopen an app
  6. deviceuse its port
Deploy

Ship your agent as a product

Your agentbuilt with
  • Ailoy
  • OpenAI Agents SDK
  • LangChain
  • Claude Agent SDK
  • or any agent framework
SDK

The same code, anywhere

Where the sandbox runs
import asyncio
from virtx import Clientfrom virtx import Client, CommandAuthfrom virtx import BearerAuth, Client

async def main():
    client = Client.spawn()    client = Client.connect(url, CommandAuth("uvx", ("virtx", "token", "--json")))    client = Client.connect("https://cloud.virtx.sh", auth=BearerAuth(key))
    await client.pull_image("python:3.12").complete()
    sandbox = await client.create_sandbox("python:3.12")
    await sandbox.exec(["python", "-c", "print(6 * 7)"]).complete(print=True)

asyncio.run(main())
Coding agents

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.py

1 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.py

6 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.