Start
Quickstart
Install Sofuu, run a first JavaScript agent loop, and compile it into a standalone executable in under five minutes.
On this page5 sections
Sofuu ships as one native binary. This page installs it, runs a small JavaScript program that touches memory, a native tool, and an agent definition, then packages that program as an executable.
$ curl -fsSL https://sofuu.xyz/install | shmacOS arm64 and Linux x86_64 / arm64. Verifies the release checksum before installing.
Before you start
Sofuu publishes builds for macOS arm64 and Linux x86_64 / arm64. The runtime does not need Node.js, Python, or a background daemon; the one-line installer downloads the binary for the current platform and verifies its checksum.
You need a terminal and one of:
curl(for the install script)- Node.js and npm (for the npm install path only)
Verify the install
sofuu doctor
doctor prints a health check for the binary, the platform, QTSQ memory linkage, provider configuration, and model paths. Optional components can be missing and the runtime still starts; Troubleshooting explains each line of the report.
sofuu --version
Run a first script
Create a file named quickstart.js:
// quickstart.js — memory, a native tool, and an agent definition
const brain = sofuu.memory.open("./brain.qtsq", 768);
brain.remember(
sofuu.ai.embedLocal("runtime"),
"AI runtime. One native binary.",
);
// Recall in the same 768-dimension embedding space
const [hit] = brain.recall(sofuu.ai.embedLocal("speed"), 1);
// A native tool runs in-process behind the policy layer
const sys = sofuu.tools.execute("system_info", {});
// Define an agent without needing a model to inspect its shape
const agent = sofuu.agent.define({
name: "assistant",
system: "Cite sources.",
tools: ["coding", "memory", "web"],
});
console.log(hit.text, "•", sys.platform || process.platform, "• agent:", agent.name);
Run it with the runtime:
sofuu run quickstart.js
Output on macOS arm64:
AI runtime. One native binary. • darwin • agent: assistant
Compile a standalone binary
The same script can be packaged as a native executable:
sofuu compile quickstart.js -o my-agent
./my-agent
The output is a single file that embeds the runtime and the script. Compiler profiles, embedded brain archives, and the supported platform matrix are covered in the compiler guide.