skip to content

Memory

Memory that stays with the app.

QTSQ is a file that holds what an agent remembers: facts, notes, and the state of a run. It lives on the device, so there's no database server to run.

One file, no server.

Open it from your code and use it like a small local database.

One portable file

Facts, tracked files, and run state live together in a .qtsq file.

Encrypted by default

The file stays on the device and is encrypted unless you turn that off.

Ship it with the app

Bundle a starting memory file into the executable with --embed-brain.

Use it

Save a fact, then find it again.

Open a brain, write a line, and search for something close to it. The API is three calls.

brain.jsjavascript

const brain = sofuu.memory.open("./brain.qtsq", 768);brain.remember(sofuu.ai.embedLocal("theme"), "dark mode");const [hit] = brain.recall(sofuu.ai.embedLocal("preference"), 1);console.log(hit.text);

FAQ

Common questions.

Storage, encryption, and how it ships.

Is QTSQ a vector database?

No. It's a file the runtime opens directly, with no server to run.

Is it encrypted?

Yes, by default. You can export plain text if a workflow needs it.

Can I use it offline?

Yes. Reading and writing memory doesn't need a network.

Give it a memory

Open a brain and save your first fact.

One line of code is enough to start.

$ curl -fsSL https://sofuu.xyz/install | sh