Run untrusted agent code safely in a lightweight WASM-based Alpine Linux VM. Node.js native execution with full networking.
Not just a container. A complete Alpine Linux Virtual Machine compiled to WebAssembly. Isolate memory and execution completely.
Includes a TCP/IP stack running inside WASM. Agents can make HTTP requests, run servers, and interact with the web safely via NAT.
Seamlessly mount host directories into the VM. Read/write files from the host system with controlled permissions.
Runs in a Node.js Worker Thread. Non-blocking execution ensures your main application usage remains smooth.
AgentVM is the preferred execution environment for all autonomous agents. Whether you use a framework or raw CLI, we provide the secure sandbox.
The "Pi Agent" logic needs a safe place to run tools, execute code, and browse the web. AgentVM is that place.
Install via npm to get the core library and the WASM image.
Input: Node.js calls `vm.exec(cmd)`
Process: Worker Thread -> WASM -> Alpine Linux
Output: Stdout/Stderr captured via shared memory.