Lightweight
WebAssembly, not Linux: each VM has its own memory, file system and environment, with no guest OS. Code can be tens of kilobytes; a VM starts in as little as 2 ms.
Run your agents and their tools on Golem, and serve their artifacts—files, pages, and simple apps—to users. Each agent runs in a lightweight WebAssembly VM. After a crash, node restart, rescaling or long wait, the whole VM resumes mid‑function with its memory and files. Tools running entirely on Golem execute exactly once, under permissions agents can't bypass.
Golem runs every agent and each Golem tool call in its own WebAssembly VM. Every call out of a VM goes through Golem, which enforces your permissions and records external interactions so the VM can resume anywhere.
WebAssembly, not Linux: each VM has its own memory, file system and environment, with no guest OS. Code can be tens of kilobytes; a VM starts in as little as 2 ms.
A waiting VM is suspended, using no CPU or memory, for minutes or months. After a crash or node restart it resumes with its memory and files, without repeating completed calls.
A VM reaches its own files, the network, secrets and other VMs only through Golem's permission checks, which apply to AI-generated code just as to yours.
Golem runs your agent’s harness—the code that manages model calls, context, and tools—durably. Existing agents in supported languages can run unchanged; Pi is one example.
const Email = z. object({ id: z. string(), body: z. string() })
const Label = z. enum([ 'urgent', 'billing', 'other'])
export const Triage = defineAgent({
name: 'TriageAgent',
// each inbox gets its own agent, in its own WebAssembly VM:
id: { inbox: z. string() },
methods: {
triage: method({
input: { emails: z. array(Email) },
returns: z. record(z. string(), Label),
}),
},
}). implement({
init: ({ id }) => ({ inbox: id.inbox }),
methods: {
async triage({ emails }) {
const labels: Record<string, z. infer<typeof Label>> = {}
for ( const email of emails) {
const label = Label. parse( await classify(email.body))
// it resumes here after a crash, with memory and files:
await applyLabel( this.inbox, email.id, label)
labels[email.id] = label
}
return labels