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 the Authorization header. See Authentication for details.

Endpoints

Probe local brain status

When called without a q parameter, returns the status of the local Ollama instance and the models that are already pulled.

Example response

Search local memory

Searches memory documents, events, and conversations using keyword search. The type filter accepts documents, events, conversations, or all (default).

Query parameters

Example request

Example response

Pull the default local brain

Streams an Ollama pull for the default local brain model (llama3.2:3b) over SSE.

Example curl

Example event

Get brain status

Returns the availability of Ollama and the embedding service, plus capability flags.

Example response

Pull a custom model

Pulls an arbitrary Hugging Face GGUF model through Ollama. The response is an SSE stream of pull progress events.

Request body

Example request

Sidecar model management

The /api/local-brain/models endpoints proxy to the Gizzi sidecar model surface.

List sidecar models

Returns the sidecar model list. Response shape matches the Gizzi sidecar contract.

Search sidecar models

Install a sidecar model

Request body

The response is an SSE stream of installation progress events.

Remove a sidecar model

Error codes