# Sofuu > Sofuu is a self-contained runtime for AI workloads. One native binary bundles QuickJS (ES2023, no JIT), a libuv event loop, WHATWG streams, in-process GGUF/SafeTensors inference on Metal/NEON/AVX2 (experimental engine), autonomous agent loops, a native Model Context Protocol client and server, and encrypted on-device vector memory (`.qtsq`, with opt-in Qdrant/Pinecone/pgvector adapters). Selected local workflows need no separate Python runtime or daemon. OS libraries, model files and chosen providers or servers may be needed. Sofuu is currently **0.3.0-beta**. APIs may change before a stable release. Local inference is an experimental preview. Embedded Kaze reports 0.1 while standalone Kaze is 1.0; their bytecode and features are not interchangeable. Plugins run in-process and must be trusted as code. - Docs: https://docs.sofuu.xyz - Source: https://github.com/sofuu-runtime/sofuu - License: MIT core; QTSQ memory engine open source - Full corpus: https://docs.sofuu.xyz/llms-full.txt ## Start - [Sofuu documentation](https://docs.sofuu.xyz/): A self-contained runtime for AI apps, tools, and agents. Start with the map, the install command, and the current beta boundaries. - [Quickstart](https://docs.sofuu.xyz/quickstart/): Install Sofuu, run a first JavaScript agent loop, and compile it into a standalone executable in under five minutes. - [Install](https://docs.sofuu.xyz/install/): Install the Sofuu CLI with the one-line script or npm, verify platform support, and confirm a healthy binary. - [Build from source](https://docs.sofuu.xyz/build/): Compile Sofuu and its QTSQ memory archive from source on macOS and Linux, then run the health check and test suite. ## Guides - [CLI](https://docs.sofuu.xyz/cli/): The command surface: run, compile, chat, MCP, scripts, memory, logs, and recovery. - [Compiler](https://docs.sofuu.xyz/compiler/): Package JavaScript, TypeScript, or Kaze routines as single-file native executables with profiles, embedded memory, and signing. - [Chat & sessions](https://docs.sofuu.xyz/chat/): The terminal chat assistant, project session mesh, run logs, checkpoints, and resume. - [Plugins](https://docs.sofuu.xyz/plugins/): Define local tools with typed schemas, permission allowlists, timeouts, and circuit breakers. - [Model Context Protocol](https://docs.sofuu.xyz/mcp/): Connect Sofuu to MCP servers over stdio, Streamable HTTP, or SSE, or serve tools and resources to any MCP client. - [Memory](https://docs.sofuu.xyz/memory/): On-device encrypted vector memory in QTSQ, local embeddings, recall, and opt-in remote adapters. - [Agents & tools](https://docs.sofuu.xyz/agents/): Autonomous agent loops, tool policy gates, the in-process sandbox, and the trust boundaries that apply. - [Server & inference](https://docs.sofuu.xyz/server/): Serve HTTP and SSE from the runtime, load GGUF models in-process, and understand the experimental inference boundary. - [Embed](https://docs.sofuu.xyz/embed/): Link the runtime through the C ABI, embed a Sofuu brain archive, and call into JavaScript from a host application. ## Language - [Kaze](https://docs.sofuu.xyz/kaze/): A domain-specific language for bounded agent and device routines, with explicit capabilities and deterministic limits. - [Kaze 1.0 reference](https://docs.sofuu.xyz/kaze/reference/): Tagged reference for standalone Kaze 1.0: syntax, values, routines, capabilities, errors, limits, and configuration. ## Reference - [API reference](https://docs.sofuu.xyz/api/): The global sofuu object: AI, HTTP, filesystem, web, memory, tools, MCP, and native modules. - [Troubleshooting](https://docs.sofuu.xyz/troubleshooting/): Diagnose a missing binary, model, provider key, memory key, MCP handshake, or compiler failure.