Give your AI agent a sealed sandbox to run code and a private memory

Let your agent run code in a throwaway Linux machine and remember what it learns, encrypted so only you can read it.

Make an API keyCreate free account

Uses

SandboxesEncrypted memoryStoragePeople building AI agents

How it works

  1. Make an API key, a storage key and a file key (newFileKey() makes one; keep it in your password manager).
  2. Create a sandbox with no internet, run the agent's code in it, then delete it.
  3. Save what the agent learns with memory.remember() and look it up later with memory.recall().

The code

TypeScript, with the Zuzo SDK. Your API key and spending limit come from the console; the docs cover every option.

import { Zuzo } from "@zuzo/sdk";

const zuzo = new Zuzo({
  apiKey: process.env.ZUZO_API_KEY!,
  fileKey: process.env.ZUZO_FILE_KEY!,
  storage: { endpoint: "https://s3.nokycgpu.com", accessKeyId: "ZUZO...", secretAccessKey: "..." },
});

// A sealed machine with no internet, for at most an hour
const box = await zuzo.sandboxes.create("agent-box", { network: "none", hours: 1 });
const run = await zuzo.sandboxes.run(box.id, "python3 -c 'print(sum(range(101)))'");
console.log(run.stdout); // 5050
await zuzo.sandboxes.remove(box.id);

// Memory is encrypted and searched on this machine
const memory = zuzo.memory();
await memory.remember("The user's reports go out in GBP, not USD.", ["preferences"]);
const [best] = await memory.recall("which currency for reports?");
console.log(best?.text);

Questions

Can the sandbox's owner see what my agent runs?

No. Its memory is encrypted by the chip (AMD SEV-SNP), so the machine's owner can't look inside.

Can Zuzo read my agent's memory?

No. Memories are encrypted on your machine with your file key before they're stored. Lose the key and nobody can read them, us included.

How is a sandbox billed?

By the second, until you delete it or its hours run out.

More for agent builders