
Security News
TC39 Advances Temporal to Stage 4 Alongside Several ECMAScript Proposals
TC39’s March 2026 meeting advanced eight ECMAScript proposals, including Temporal reaching Stage 4 and securing its place in the ECMAScript 2026 specification.
deepclause-agentvm
Advanced tools
Lightweight WASM-based Linux VM for AI agents - run shell commands in an isolated Alpine Linux environment
AgentVM is a lightweight Node.js library that runs a WASM-based Linux virtual machine (Alpine Linux) in a worker thread. It allows you to execute shell commands and capture their output, making it an ideal sandbox for AI agents. It is developed as part of the DeepClause project.
The virtual machine was created using the container2wasm (c2w) project.
In order to keep dependencies minimal, this project currently uses node:wasi, which is known to have some quirks and possibly security flaws.
The entire project, including network stack and hacks for making host directory mounts possible, was coded using Opus 4.5.
⚠️ DISCLAIMER: This library is highly experimental and should be used at your own risk. It is not recommended for production use. The underlying WASI implementation may have security vulnerabilities and the API may change without notice.
Latest version on npm: 0.0.5
npm install deepclause-agentvm
const { AgentVM } = require('deepclause-agentvm');
async function main() {
const vm = new AgentVM({
// Path to the VM WASM file (optional, will be installed automatically with npm)
// wasmPath: './agentvm-alpine-python.wasm'
});
await vm.start();
const result = await vm.exec('echo "Hello World"');
console.log(result.stdout); // "Hello World"
await vm.stop();
}
main();
const { AgentVM } = require('deepclause-agentvm');
async function main() {
const vm = new AgentVM({
mounts: { '/mnt/data': './my-data-folder' }
});
await vm.start();
// Write a file from the VM to the host
await vm.exec('echo "Hello from VM" > /mnt/data/greeting.txt');
// Read a file from the host in the VM
const result = await vm.exec('cat /mnt/data/greeting.txt');
console.log(result.stdout); // "Hello from VM"
await vm.stop();
}
main();
const { AgentVM } = require('deepclause-agentvm');
async function main() {
const vm = new AgentVM({ network: true }); // network is enabled by default
await vm.start(); // Network is auto-configured via DHCP
// Download from the internet
const result = await vm.exec('wget -q -O- http://example.com | head -5');
console.log(result.stdout);
await vm.stop();
}
main();
new AgentVM(options)options.wasmPath: Path to the agentvm-alpine-python.wasm file. Part of the npm package by default.options.mounts: Object mapping VM paths to host paths (e.g., { '/mnt/data': './data' }). Supports reading and writing files from the VM to the host filesystem.options.network: Enable networking (default: true). Provides full TCP/UDP NAT for internet access.options.mac: MAC address for the VM (default: 02:00:00:00:00:01).vm.start()Starts the VM worker. Returns a Promise.
vm.exec(command)Executes a shell command.
Promise<{ stdout: string, stderr: string, exitCode: number }>vm.stop()Terminates the VM.
See example/vercel-agent.js for an example of how to use AgentVM as a tool for an AI agent.
The WASM image is built from a Docker container using container2wasm:
git clone https://github.com/nicolo-ribaudo/container2wasm.git
cd container2wasm
go build -o c2w ./cmd/c2w
FROM alpine:latest
RUN apk add --no-cache python3
CMD ["/bin/sh"]
docker build -t agentvm-alpine-python .
./c2w agentvm-alpine-python agentvm-alpine-python.wasm
This creates the agentvm-alpine-python.wasm file used by AgentVM.
FAQs
Lightweight WASM-based Linux VM for AI agents - run shell commands in an isolated Alpine Linux environment
We found that deepclause-agentvm demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Security News
TC39’s March 2026 meeting advanced eight ECMAScript proposals, including Temporal reaching Stage 4 and securing its place in the ECMAScript 2026 specification.

Research
/Security News
Since January 31, 2026, we identified at least 72 additional malicious Open VSX extensions, including transitive GlassWorm loader extensions targeting developers.

Research
Six malicious Packagist packages posing as OphimCMS themes contain trojanized jQuery that exfiltrates URLs, injects ads, and loads FUNNULL-linked redirects.