Skip to content

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.

    Get Started

  • Intelligent Memory


    Semantic search, hierarchical summaries, and smart context assembly. Your AI remembers what matters.

    Learn More

  • Sovereign & Private


    Self-hosted, local-first architecture. Your conversations are your intellectual property.

    Deploy Now

  • Universal Integration


    REST API, MCP protocol, Python/JS SDKs. Works with any LLM - OpenAI, Anthropic, Ollama, 100+ more via LiteLLM.

    API Reference


The Problem Sekha Solves

Every AI conversation today faces critical failures:

  1. πŸ”₯ Broken Context - Your LLM runs out of memory mid-conversation (1)
  2. 🧠 Forgotten Context - Long conversations forget everything from earlier sessions (2)
  3. ⏱️ Agent Breakdowns - AI agents fail on multi-step tasks spanning hours or days (3)
  4. 🚫 No Continuity - Each new chat starts from zero, wasting time re-explaining (4)
  5. πŸ“Š Lost Knowledge - Years of valuable interactions vanish at token limits (5)
  1. Most LLMs have 8k-128k token limits. One conversation can hit that.
  2. ChatGPT, Claude, and others lose context after 30 days or fewer messages.
  3. Agents need persistent memory to track multi-day workflows and learn from mistakes.
  4. You re-explain your project, codebase, and preferences in every new session.
  5. 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:

  1. Sekha Controller (Rust) - Core memory engine
  2. LLM Bridge (Python) - Universal LLM adapter
  3. ChromaDB - Vector similarity search
  4. Redis - Async task queue broker

Optional Components:

  • Proxy - For transparent capture
  • Ollama - For local LLMs (or use cloud providers)

Architecture Deep Dive


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)

License Details


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 adapter
  • pip install sekha-mcp - MCP protocol server for Claude Desktop

Python Installation Guide


Community & Support


Next Steps


Built for important things that actually need to be completed.
For problems that actually need to be solved.

Sekha Project β€’ GitHub β€’ January 2026