← Back to Registry

In-Memory

File System

Mount an ephemeral in-memory directory. Fast scratch space that is discarded when the VM is destroyed.

Configuration

Built into the SDK — no separate install. Enable it with plugin: { id: "memory" } in your VM config.

import { agentOS, setup } from "@rivet-dev/agentos";
import pi from "@agentos-software/pi";
 
const vm = agentOS({
  software: [pi],
  mounts: [
    { path: "/home/agentos/scratch", plugin: { id: "memory", config: {} } },
  ],
});
 
export const registry = setup({ use: { vm } });
View documentation