Zekra is a shared long-term memory service for AI agents, accessible via MCP (Model Context Protocol) to any agent (such as Claude Code, Codex, Gemini, Cursor, or a self-built agent cluster). Its core idea is: what one session learns, the next session already knows.
Main capabilities
- Retain/Recall: Uses hybrid retrieval, combining dense vectors and multilingual BM25 (via RRF fusion), and adds salience adjustment, reranking, and 1-hop entity expansion. The write decision step (ADD / UPDATE / INVALIDATE / NOOP) updates contradictory facts rather than storing duplicates. Forget operations use soft invalidation, and history remains queryable.
- Multiple namespaces: One namespace per project or team, with per-agent authorization and access tokens (cbt_…), enforced server-side.
- Knowledge graph: Extracts entities and typed relationships from memories, supporting traversal, neighbors, paths, ontology queries, and the graph "spine".
- Data sources: Connectors (text, markdown, crawler, github, sql, webhook) pull external content, chunk it, and retain it through the same write pipeline.
- Chat with citations: A tool-calling agent that uses the brain's own recall/search/graph/retain as tools, answering with citations and auditable traces.
- Other features: Knowledge gaps, secret vault, activity log, and a web console for managing everything.
- Tiered storage: Redis L1 working memory cache, hot Postgres layer, cold object storage layer.
How to use
- Sign up at app.zekra.dev, create a brain and generate a token, then connect your agent. The CLI is at fadymondy/zekra-cli.
- Self-host with Docker Compose: requires Docker Compose v2 and about 6 GB of disk space for embedding and reranking models. Open http://localhost:3020 and sign up. The stack runs Postgres 17 (with VectorChord), a one-time schema job, the Go API, the Next.js console, and two CPU TEI servers (embedding and reranking), downloading models on first startup. Then generate a token under Admin → Tokens and run
zekra auth login --url http://localhost:3020 --token cbt_…. For public deployment, place a TLS reverse proxy in front and set APP_URL. All settings are detailed in docs/self-hosting.md and DEPLOY.md.
MCP tools
Includes memory_retain, memory_recall, memory_get, memory_forget, memory_share, memory_edit, graph_, memory_gaps, brain_ (list, authorization, tokens, chat), secret_, and datasource_. For the full reference, see the MCP server and contracts/tools.md.
Use cases
Suitable for AI agent workflows that need to maintain memory across sessions, such as coding assistants, team collaboration agents, and question-answering systems that need to cite sources.
Limitations
Self-hosting requires a Docker environment and about 6 GB of disk space. Public deployment requires configuring a TLS reverse proxy. The software uses the AGPL-3.0-only license; if you run a modified version as a network service, you must provide the source code to users. For commercial licensing, contact info@3x1.io. Other specific limitations are not provided.