MemBrain — The Cognitive Layer for AI¶
Memory, judgment, threat detection, and recall — the brain functions your LLMs are missing.
MemBrain is a self-hosted cognitive layer that sits between your applications and LLM providers. It gives you full visibility and control over every AI interaction — without changing a line of code.
Quick Start¶
Point your AI client at MemBrain:
from openai import OpenAI
client = OpenAI(base_url="http://localhost:8001/v1")
response = client.chat.completions.create(
model="gpt-4",
messages=[{"role": "user", "content": "Hello!"}]
)
See the Quickstart Guide for full setup instructions.
Documentation¶
| Section | Description |
|---|---|
| Quickstart | Get up and running in 5 minutes |
| Configuration | All settings and environment variables |
| API Reference | Complete endpoint documentation |
| Providers | Supported AI providers and routing |
| Python SDK | Drop-in OpenAI SDK replacement |