Skip to content
VI

VirtX

BetaOpen SourceApache-2.064 stars

Apache-2.0 microVM sandbox for AI agents from Brekkylab: Python, Node.js and Rust clients create libkrun Linux VMs with their own kernel and disk on a local server, a remote server or VirtX cloud, run commands as jobs with re-readable logs, open TCP ports in either direction, mount volumes that outlive the sandbox, attach the host GPU through Vulkan, and cut the network entirely.

Visit website
CategoriesAI Agent SandboxMicroVMSelf-hostedCode ExecutionTypeRuntime engineContainmentHardware VMRating3.5 / 5
Built onlibkrun
Boot rank
#30 / 119
75% of published starts are slower
Idle billing
Usage-metered
137 listings meter active runtime
State kept on pause
Disk only
Resume: A parked sandbox boots again on its next command or file write with its files as they were; the README measures a new sandbox ready to run commands in 35 ms with 1 vCPU and 128 MB on an M3 Pro Mac, and the docs publish no separate resume figure

Overview

VirtX is the runtime underneath Brekkylab's Ailoy SDK, published as a product in its own right: an Apache-2.0 client-server system that boots Linux microVMs on libkrun with no Docker and no daemon, in Python, Node.js or Rust. The same client code reaches three servers, which is the design's best idea: Client.spawn() starts virtx-stdio as a child process for local use, Client.connect() reaches a virtx-server-tcp a team runs, or VirtX cloud, so moving a workload from a laptop to a shared host to the cloud changes one line. The sandbox model is more complete than most: images are OCI, the root is a read-only image plus a per-sandbox writable layer, volumes persist across sandboxes and can mount Notion, Google Drive or OneDrive read-only, every command is a job with a log readable from any point, ports carry TCP in either direction with a PortForwarder, and the host GPU is available through Vulkan where the guest can see Virtio-GPU Venus. Parked sandboxes keep their disk and boot again on use, and a cloud sandbox left 30 days is deleted. The limits are early-days ones. The API is at 0.2 and can change between minor versions; there is no snapshot or fork primitive, only volumes; the GPU is local-only for now; there is no egress allowlist beyond network on or off; macOS needs Apple silicon, Windows needs the Hypervisor Platform feature, and cloud access is an approved early-access account. It is a strong fit for local-first agents and teams that want one runtime from laptop to cloud, and a poor fit for anyone needing pause, snapshots or memory-level forks.

Key capabilities

  • libkrun microVMs with their own kernel, no Docker or daemon
  • Python, Node.js and Rust clients over one HTTP protocol
  • Local server, remote server or VirtX cloud from one line
  • OCI images pulled from a registry or built from a recipe
  • Commands are jobs with re-readable output logs
  • Named volumes persist after a sandbox is removed
  • Mount Notion, Google Drive or OneDrive as files
  • TCP ports forwarded in either direction
  • Host GPU through Vulkan on Linux, macOS and Windows
  • network=False cuts outbound access entirely
  • Parked sandboxes keep their disk and wake on use
  • Known limits: no snapshots or forks, local GPU only, API at 0.2

virtx_quickstart.py

import asyncio
import os

from virtx import BearerAuth, Client


async def main() -> None:
    async with Client.connect(
        "https://cloud.virtx.sh",
        BearerAuth(os.environ["VIRTX_API_KEY"]),
    ) as client:
        await client.pull_image("alpine:latest").complete()
        sandbox = await client.create_sandbox("alpine:latest", network=False)
        try:
            await sandbox.exec(["echo", "Hello, world!"]).complete(print=True)
        finally:
            await sandbox.remove()


asyncio.run(main())

# On your own machine, replace Client.connect(...) with Client.spawn().

Similar alternatives

Technical specifications

Runtime architecture
Every sandbox is a libkrun microVM: a Linux guest with its own kernel on the host's hardware virtualization, with no Docker and no daemon
Runtime notes
  • The host hypervisor is KVM on Linux, Hypervisor.framework on Apple silicon macOS, and the Windows Hypervisor Platform on Windows 11 x86_64
  • The root filesystem is an overlay of a read-only OCI image and a per-sandbox writable layer; images can be pulled from a registry or built from a recipe
  • The host GPU is passed into a sandbox through Vulkan with the venus driver, exposed as Virtio-GPU Venus; unavailable on VirtX cloud for now
  • Sandboxes with nothing using them are parked: the VM stops and its disk is kept, and the next command or file write boots it again
Cold-start boot time
A new sandbox is ready to run commands in 35 ms with 1 vCPU and 128 MB on an M3 Pro Mac (project measurement); the cloud and other hosts publish no figure
Max vCPU
vcpus defaults to 4 and can be set per sandbox or changed on resize; VirtX cloud permits up to 8 vCPU and 100 vCPU across running sandboxes per organization
Max memory
memory_mib defaults to 4096 and can be set per sandbox or changed on resize; VirtX cloud permits up to 16 GiB per sandbox
Storage model
disk_gib is the writable layer over the image, 2 GiB by default and up to 1024, deleted with the sandbox; volumes keep files after removal. VirtX cloud includes 50 GiB of sandbox disks, 50 GiB of volumes and 20 GiB of custom images per organization
Network isolation
Network is on by default and reaches public addresses but not the host's loopback or private addresses; network=False blocks outbound connections and name lookups, while explicitly opened ports still work. Ports carry plain TCP, in the sandbox or on local, forwarded by a PortForwarder and never opened at a public address on VirtX cloud. The hypervisor is the isolation boundary, not namespaces; there is no documented egress allowlist, and the project does not publish an independent escape-testing report.

Lifecycle & capabilities

Filesystem persistence
Supported
Memory / disk snapshot
Not supported
Instant forking
Not supported
GPU acceleration
Supported
GUI desktop / VNC
Supported
Mobile / cloud phone
Not supported
Browser automation
Unknown
Network egress control
Supported
Pause / auto-sleep
Supported
MCP protocol server
Not supported
REST API & SDKs
Supported
Idle billing
Usage-metered
State kept on pause
Disk only
Resume latency
A parked sandbox boots again on its next command or file write with its files as they were; the README measures a new sandbox ready to run commands in 35 ms with 1 vCPU and 128 MB on an M3 Pro Mac, and the docs publish no separate resume figure
Session limit
On VirtX cloud a sandbox unused for 30 days is deleted; a server started by Client.spawn() removes its sandboxes when the program ends, and a server you run keeps them
SDKs
Python, TypeScript, Rust

Pricing model

Official Verified

Rate read 1 Dec 2026.

Pricing tiers
Free TierPay as you goEnterprise
Summary

VirtX cloud is pay as you go from credits bought ahead, with no subscription: running sandboxes are billed by the second for vCPUs at $0.0504 per vCPU-hour and memory at $0.0162 per GiB-hour, so the default 2 vCPU / 4 GiB sandbox costs $0.1656 an hour. Sandbox disks, volumes and custom images cost $0.10 per GiB-month, network traffic is not charged, and a parked sandbox pays for its disk only. Early access charges nothing and gives an approved account $10 of credits; purchased credits, once on sale, cost $10, $25, $100 or any amount from $5 to $1,000 and stay valid for 12 months. Below $0.10 no sandbox boots and at $0 an organization's sandboxes are parked with their disks kept. The SDKs, the local server and the code are free under Apache-2.0, so self-hosted use costs only the hardware, and Enterprise is by contact.

Billing unitper second of running vCPU and GiB on VirtX cloud; free on your own hosts
View official pricing page

Related architecture guides