Sekha: Universal AI Memory Controller¶
The Memory System That Never Forgets - Build AI That Remembers Everything
-
Infinite Context Windows
Never hit token limits again. Conversations span days, weeks, months, or years with perfect continuity.
-
Intelligent Memory
Semantic search, hierarchical summaries, and smart context assembly. Your AI remembers what matters.
-
Sovereign & Private
Self-hosted, local-first architecture. Your conversations are your intellectual property.
-
Universal Integration
REST API, MCP protocol, Python/JS SDKs. Works with any LLM - OpenAI, Anthropic, Ollama, 100+ more via LiteLLM.
The Problem Sekha Solves¶
Every AI conversation today faces critical failures:
- π₯ Broken Context - Your LLM runs out of memory mid-conversation (1)
- π§ Forgotten Context - Long conversations forget everything from earlier sessions (2)
- β±οΈ Agent Breakdowns - AI agents fail on multi-step tasks spanning hours or days (3)
- π« No Continuity - Each new chat starts from zero, wasting time re-explaining (4)
- π Lost Knowledge - Years of valuable interactions vanish at token limits (5)
- Most LLMs have 8k-128k token limits. One conversation can hit that.
- ChatGPT, Claude, and others lose context after 30 days or fewer messages.
- Agents need persistent memory to track multi-day workflows and learn from mistakes.
- You re-explain your project, codebase, and preferences in every new session.
- Your intellectual capital - research notes, decisions, insights - disappears.
The Solution¶
Sekha gives AI persistent, searchable, infinite memory - like a second brain that never forgets.
graph LR
A[User/Agent] -->|Conversations| B[Sekha Controller]
B -->|Stores| C[SQLite + Chroma]
B -->|Via LLM Bridge| D[LiteLLM]
D -->|Any LLM| E[OpenAI/Ollama/Claude/100+]
C -->|Retrieves| B
B -->|Context| A
style B fill:#4051b5
style C fill:#2d3748
style D fill:#805ad5 Sekha sits between you and any LLM, capturing every interaction and intelligently retrieving relevant context when needed.
Key Features¶
βΎοΈ Infinite Context - Conversations spanning millions of messages
π Semantic Search - Find conversations by meaning, not just keywords
π§ Smart Assembly - Auto-build perfect context from past interactions
π Hierarchical Summaries - Daily β Weekly β Monthly rollups
π·οΈ Organization - Labels, folders, importance scoring
π Sovereign - Self-hosted, local-first, your data never leaves
π LLM Agnostic - Works with 100+ LLMs via LiteLLM
β‘ Production Ready - 80%+ test coverage, Docker deployment, sub-100ms queries
Use Cases¶
Career-spanning AI assistant
- Track projects across months/years
- Remember every decision and rationale
- Build expertise over time
- Never re-explain context
Code assistant that evolves
- Remembers entire codebase evolution
- Tracks architectural decisions
- Learns team conventions
- Assists with debugging across sessions
Persistent research companion
- Maintains context across studies
- Connects insights from papers
- Tracks methodology evolution
- Builds knowledge graph over time
Self-improving autonomous agents
- Learn from every interaction
- Never repeat mistakes
- Track multi-day workflows
- Share knowledge between agent instances
Quick Start¶
Recommended: Docker Compose
# Clone deployment repo
git clone https://github.com/sekha-ai/sekha-docker.git
cd sekha-docker/docker
# Start full stack
docker compose -f docker-compose.yml -f docker-compose.full.yml up -d
# Verify health
curl http://localhost:8080/health
What gets deployed:
- β Sekha Controller (Rust) - Memory orchestration engine
- β LLM Bridge (Python) - Required LLM adapter via LiteLLM
- β ChromaDB - Vector embeddings storage
- β Redis - Celery broker for async tasks
- π§ Ollama (optional) - Local LLM, or use OpenAI/Anthropic/others
- π§ Proxy (optional) - Transparent capture layer
Full Installation Guide Python Packages
Architecture¶
Sekha is built for production use with world-class engineering:
βββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
β SEKHA CONTROLLER (Rust) - Memory Orchestration Engine β
β β’ REST API (19 endpoints) β
β β’ MCP Server (7 tools for Claude Desktop) β
β β’ 4-Phase Context Assembly β
β β’ SQLite (metadata) + ChromaDB (vectors) β
ββββββββββββββββββββββ¬βββββββββββββββββββββββββββββββββββββββ
β
βΌ
βββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
β LLM BRIDGE (Python) - REQUIRED β
β β’ Embedding generation (nomic-embed-text) β
β β’ Summarization & entity extraction β
β β’ LiteLLM gateway (100+ LLM providers) β
β β’ Celery async task queue β
ββββββββββββββββββββββ¬βββββββββββββββββββββββββββββββββββββββ
β
ββββββββββββΌβββββββββββ
βΌ βΌ βΌ
ββββββββββ ββββββββββββ ββββββββββββ
β Ollama β β OpenAI β β Claude β
β Local β β GPT-4 β β Sonnet β
ββββββββββ ββββββββββββ ββββββββββββ
+ 97 more LLM providers
βββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
β PROXY (Python) - OPTIONAL β
β β’ Transparent capture for generic LLM clients β
β β’ Auto-injects context from past conversations β
β β’ OpenAI-compatible API endpoint β
β β’ Web UI dashboard β
βββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
Required Components:
- Sekha Controller (Rust) - Core memory engine
- LLM Bridge (Python) - Universal LLM adapter
- ChromaDB - Vector similarity search
- Redis - Async task queue broker
Optional Components:
- Proxy - For transparent capture
- Ollama - For local LLMs (or use cloud providers)
Open Source & Sovereign¶
Dual License Model:
- AGPL-3.0 - Free forever for individuals, non-profits, academics, small businesses (<50 employees)
- Commercial License - Usage-based pricing for enterprises (contact for details)
Your data, your control:
β
Self-hosted on your infrastructure
β
No telemetry or phone-home
β
Air-gapped deployment ready
β
GDPR/HIPAA-compliant architecture
β
Full data portability (export to JSON/Markdown)
Multi-Repository Ecosystem¶
Sekha is built as a modular system:
| Repository | Purpose | Language | Status | Install |
|---|---|---|---|---|
| sekha-controller | Memory orchestration engine | Rust | β Production | Docker/Source |
| sekha-llm-bridge | LLM adapter (REQUIRED) | Python | β Production | PyPI/Docker |
| sekha-proxy | Transparent capture (OPTIONAL) | Python | β Production | Docker/Source |
| sekha-docker | Deployment configurations | Docker | β Production | Docker |
| sekha-mcp | MCP protocol server | Python | β Production | PyPI/Docker |
| sekha-python-sdk | Python client library | Python | π Publishing | PyPI |
| sekha-js-sdk | JavaScript/TypeScript SDK | TypeScript | π Publishing | npm |
| sekha-vscode | VS Code extension | TypeScript | π§ Beta | Marketplace |
| sekha-cli | Command-line interface | Go | π§ Beta | Binary |
| sekha-obsidian | Obsidian note integration | TypeScript | π§ Beta | Plugin |
Now Available on PyPI:
pip install sekha-llm-bridge- Universal LLM adapterpip install sekha-mcp- MCP protocol server for Claude Desktop
Community & Support¶
-
GitHub
-
Discord
-
Email
-
Discussions
Next Steps¶
-
Get up and running in 5 minutes
-
Production Docker deployment
-
19 REST endpoints + 7 MCP tools
-
Connect with Claude, VS Code, more
Built for important things that actually need to be completed.
For problems that actually need to be solved.
Sekha Project β’ GitHub β’ January 2026