rivet-dev/agentos

Give agents an operating system as a library. Runs in your existing backend – no sandboxes, VMs, or SaaS. Powered by WebAssembly & V8 isolates.

Rust

4,753

442 commits

updated Oct 12, 2026

See the code

README

agentOS

agentOS is a lightweight Linux-compatible VM runtime for isolated filesystem, process, terminal, language, and networking workloads.

This repository owns the native sidecar, VM kernel and VFS, language execution, software package format and cache, and the embedded TypeScript and Rust Core clients. Hosted orchestration adapters live in the services repository and consume the public or same-version service integration surface from here.

Software

Software is an immutable v2 .aospkg artifact. Core can install a verified remote URL or a trusted local package path.

The process-wide cache is content-addressed by digest. Release tooling uploads the catalog to S3-compatible object storage and emits a manifest of relative artifact URLs, digests, and sizes. Runtime software is not resolved from npm.

Quickstart

npm install @rivet-dev/agentos-core
import { AgentOs } from "@rivet-dev/agentos-core";

const vm = await AgentOs.create();
try {
  await vm.filesystem.writeFile("/tmp/hello.txt", "hello\n");
  console.log((await vm.process.exec("cat /tmp/hello.txt")).stdout);
} finally {
  await vm.dispose();
}

Embedded Core supports trusted local .aospkg paths, host-backed mount plugins, external VM providers, and host bindings.

Development

pnpm install --frozen-lockfile
pnpm build
pnpm check-types
cargo check --workspace

Rebuild the complete command catalog and stage the local object-store release layout with:

just tools-rebuild
just software-artifacts-dry-run

Public documentation lives at agentos-sdk.dev.

agent
ai
javascript
llm
sandbox
v8
wasm
webassembly

rivet-dev/agentos

Give agents an operating system as a library. Runs in your existing backend – no sandboxes, VMs, or SaaS. Powered by WebAssembly & V8 isolates.

Rust

4,753

442 commits

updated Oct 12, 2026

See the code

README

agentOS

agentOS is a lightweight Linux-compatible VM runtime for isolated filesystem, process, terminal, language, and networking workloads.

This repository owns the native sidecar, VM kernel and VFS, language execution, software package format and cache, and the embedded TypeScript and Rust Core clients. Hosted orchestration adapters live in the services repository and consume the public or same-version service integration surface from here.

Software

Software is an immutable v2 .aospkg artifact. Core can install a verified remote URL or a trusted local package path.

The process-wide cache is content-addressed by digest. Release tooling uploads the catalog to S3-compatible object storage and emits a manifest of relative artifact URLs, digests, and sizes. Runtime software is not resolved from npm.

Quickstart

npm install @rivet-dev/agentos-core
import { AgentOs } from "@rivet-dev/agentos-core";

const vm = await AgentOs.create();
try {
  await vm.filesystem.writeFile("/tmp/hello.txt", "hello\n");
  console.log((await vm.process.exec("cat /tmp/hello.txt")).stdout);
} finally {
  await vm.dispose();
}

Embedded Core supports trusted local .aospkg paths, host-backed mount plugins, external VM providers, and host bindings.

Development

pnpm install --frozen-lockfile
pnpm build
pnpm check-types
cargo check --workspace

Rebuild the complete command catalog and stage the local object-store release layout with:

just tools-rebuild
just software-artifacts-dry-run

Public documentation lives at agentos-sdk.dev.

agent
ai
javascript
llm
sandbox
v8
wasm
webassembly

Project health

Latest release

0.2.22 · Sep 29, 2026

Releases this year

22

Significant stargazers

(top 24 of 130)

Inhere

461 followers · starred Apr 2026

Simon Willison

17,254 followers · starred Jul 2026

Yuan-Man

579 followers · starred Jul 2026

Alec Larson

958 followers · starred Apr 2026