Mind Layer
Persistent memory for AI characters and agents. Store what a user tells you, recall it in a later conversation, and inspect the context supplied to the model.
The standalone edition runs on your machine. It is Apache-2.0, with no Sonzai account or subscription required.
Try it with Moss.
Moss is the included character demo. Share a fact, ask about it later, and open the reply to see what it recalled. Story interactions change its traits using explicit game rules.
With Go 1.26 or later installed, run:
git clone https://github.com/sonz-ai/mind-layer.git
cd mind-layer
make demoOpen http://127.0.0.1:8090. The first build downloads dependencies. Offline mode uses scripted dialogue and keyword recall; configure a model provider for open-ended chat.
Add memory to your application.
Use the local REST API or Go library to save memories and personality settings for each agent and user. An embedded database keeps them across restarts.
Keyword search runs locally. For semantic search or generated replies, connect a provider. Your application controls what is stored and who can access it.
This edition has its own API and a smaller feature set than the hosted Sonzai platform. Existing hosted integrations should use the hosted documentation.