Open Source · Self-Hosted · MIT License

AI Memory OS
for Teams

Stop losing knowledge in Slack threads and Notion docs. xbrain gives your team a shared, persistent AI memory layer — searchable, scoped by team, verified by truth level.

Read the Docs View on GitHub
25
containers
5
truth levels
4
frontends
100%
open source

The knowledge problem every AI-first team faces

Every team using AI hits the same wall — three distinct failure modes that compound over time.

Knowledge evaporates

Every developer reinvents their own prompts. Architecture decisions made in a Slack thread disappear within weeks. The next hire asks the same questions all over again.

AI silos

ChatGPT, Claude, Cursor — each lives in its own bubble with zero shared memory. Your most useful AI conversations are trapped inside one person's chat history.

No truth layer

Is that architecture decision still valid? Was it a brainstorm or a final call? There's no way to know if information is fresh, validated, or just someone's idea from last quarter.

The Solution

One shared brain for your entire team

xbrain is a self-hosted memory layer that sits between your team and your AI tools. Every conversation, every extracted fact, every validated decision lands in one place — tagged by team, by project, by truth level.

  • Team-scoped — data stays isolated by team and project
  • Truth-leveled — every fact carries its verification status
  • Fully searchable — semantic retrieval under 500ms at P95
// xbrain architecture
LibreChat ──┐
Open WebUI ─┤──► memory-api ──► PostgreSQL 17
Chrome Ext ─┤         │          Qdrant v1.17.1
Agents ─────┘         │          Neo4j (graph)
                      │
              7 mandatory tags:
              · team_scope
              · truth_level
              · project_scope
              · visibility
              · confidence
              · source
              · validation_status
Fully self-hosted MIT Licensed Docker Compose

Everything your team needs to build with AI

Six integrated capabilities, all open-source, all running in your own infrastructure.

Persistent Team Memory

Every conversation, document, and agent output is stored with 7 mandatory tags: team scope, truth level, project, visibility, confidence, source, and validation status. Nothing gets lost.

5-Level Truth System

Facts climb the truth ladder through human-approved workflows. Direct truth_level patches return 405 — promotion is always explicit.

EPHEMERAL → WORKING → VALIDATED → CANONICAL → PUBLIC

Multi-Model, Multi-Frontend

LibreChat and Open WebUI connect to the same memory layer. Use Claude, GPT-4, or Grok in the same team — every conversation enriches the shared brain regardless of which frontend your teammates prefer.

Built-in MCP Tool Gateway

Scraper, Google Drive reader, Calendar, Deck generator — all registered via a central MCP gateway. Every tool call is audited with team_scope and user_id. Extend with your own MCP servers.

GitOps Brain Indexing

Add brain.yaml to any repo. Push to GitHub and xbrain auto-indexes the content at your chosen truth level — architecture docs, runbooks, decisions.

Temporal Knowledge Graph

Graphiti extracts facts from conversations. Neo4j stores entity relationships and lineage with timestamps. Query "what depends on entity X?" or "what changed last week?" directly from LibreChat.

Up and running in minutes

No cloud setup. No SaaS account. One Docker Compose command.

01

Deploy with Docker Compose

Clone the repo and run one command. All 25 containers — frontends, memory layer, vector store, graph DB — start together.

git clone github.com/mrboups/xbrain
docker compose up -d
02

Connect your team

Google OAuth and GitHub Org verification out of the box. Set team scopes, assign roles via RBAC. Each member gets their own data isolation.

Google OAuth
GitHub Org membership
03

Your team's brain grows automatically

Every chat, every Drive doc, every agent output is auto-tagged and stored. Graphiti extracts facts. The shared knowledge base compounds over time.

Chat conversations → memory-api
Drive docs → indexed automatically
Agent outputs → stored with provenance

Built on proven open-source foundations

No custom databases, no proprietary runtimes. Every component is a battle-tested open-source project you can run anywhere.

Frontends

LibreChat
v0.8.2-rc2 · MIT
Open WebUI
v0.9.0 · Custom OSS

Storage

PostgreSQL 17
Event store · Permissive
Qdrant v1.17.1
Vector search · Apache 2.0
Neo4j Community
Graph DB · GPL v3

Runtime

LangGraph 1.1.0
Agent runtime · MIT
FastAPI (memory-api)
Memory layer · MIT

Observability

Langfuse 3.x
LLM observability · MIT
MinIO (Chainguard)
Object storage · AGPLv3

All components are open-source. No vendor lock-in. Deploy on any machine with Docker.

Read the deployment guide