Overview
The Local Brains API exposes the Allternit local brain surface. It lets clients perform keyword search across memory documents, events, and conversations; probe Ollama and embedding service health; pull local models; and manage models through the Gizzi sidecar. When no embedding service is available, search falls back to keyword search against the local SQLite memory tables.Base URL
Authentication
All endpoints require a valid bearer token in theAuthorization header. See Authentication for details.
Endpoints
Probe local brain status
q parameter, returns the status of the local Ollama instance and the models that are already pulled.
Example response
Search local memory
type filter accepts documents, events, conversations, or all (default).
Query parameters
Example request
Example response
Pull the default local brain
llama3.2:3b) over SSE.
Example curl
Example event
Get brain status
Example response
Pull a custom model
Request body
Example request
Sidecar model management
The/api/local-brain/models endpoints proxy to the Gizzi sidecar model surface.
List sidecar models
Search sidecar models
Install a sidecar model
Request body
The response is an SSE stream of installation progress events.