explaingit

codenamekt/hexus

Analysis updated 2026-05-18

7PythonAudience · developerComplexity · 3/5LicenseSetup · moderate

TLDR

A local Postgres-backed vector memory layer for AI agents that uses CPU-only BERT embeddings for fast, private storage and search, works as a Hermes agent plugin or a standalone MCP server for Claude Desktop and Cursor.

Mindmap

mindmap
  root((Hexus))
    Two use modes
      Hermes agent plugin
      Standalone MCP server
    Storage
      PostgreSQL 16
      pgvector extension
      Local BERT embeddings
    Features
      Hybrid search BM25 plus vector
      Temporal decay
      TTL forgetfulness
      Entity tagging
    Performance
      7ms single embed
      2ms recall top 5
      CPU only no GPU
    Setup
      pip install hexus
      Docker MCP image
      pgvector required
Click or tap to explore — scroll the page freely

Code map

Detail Auto

An interactive map of this repo's files and how they connect — its source is parsed live in your browser. Click Visualize to build it.

filefunction / class

What do people build with it?

USE CASE 1

Give Claude Desktop persistent memory across sessions using your own Postgres database instead of a cloud memory service.

USE CASE 2

Run a fleet of Hermes agents where each agent has its own scoped memory space that doesn't interfere with other agents.

USE CASE 3

Add a private, CPU-only vector search layer to an AI coding workflow in Cursor so the agent remembers past decisions.

USE CASE 4

Store conversation summaries and tagged entities for an AI assistant and retrieve relevant context at sub-10ms latency.

What is it built with?

PythonPostgreSQLpgvectorMiniLM-L6-v2DockerMCP

How does it compare?

codenamekt/hexuscaptaingrock/krea2trainerdevopsaiguru123/awesome-agentic-devops
Stars777
LanguagePythonPythonPython
Setup difficultymoderatehardeasy
Complexity3/54/51/5
Audiencedeveloperdesignerops devops

Figures from each repo's GitHub metadata at analysis time.

How do you get it running?

Difficulty · moderate Time to first run · 30min

Requires PostgreSQL 16 with the pgvector extension enabled, a Docker Compose file is provided to spin one up.

BSD 3-Clause license, use freely for commercial or personal projects as long as you retain the copyright notice and do not use the project name for endorsement.

In plain English

Hexus is a memory system for AI agents that stores and retrieves information using your own PostgreSQL database instead of a paid cloud service. It converts text into vector embeddings using a small local language model (MiniLM-L6-v2), stores them in Postgres with the pgvector extension, and searches them at millisecond speed when an agent needs to remember something. Because all embedding happens locally on your CPU, there are no calls to an external AI service at search time. The project serves two kinds of users. If you are running a Hermes agent (an open-source multi-agent framework), you install Hexus as a Python plugin and it automatically gives each agent its own scoped memory space, called a theme, so separate agents do not overwrite each other's notes. If you want to give Claude Desktop, Cursor, or another MCP-compatible AI tool persistent memory, you run Hexus as a standalone Model Context Protocol server, either via Docker or by pointing Claude's config file at the Docker image. Beyond basic vector search, the tool includes hybrid search that combines vector similarity with keyword matching (BM25), a temporal decay feature that makes older memories less prominent over time, a TTL option that automatically forgets entries after a set period, entity tagging, and conversation summaries. The README reports a single embed taking 7.4 milliseconds and a top-5 recall taking 2 milliseconds on a basic CPU with no GPU. Setup requires a running PostgreSQL 16 instance with the pgvector extension enabled. A Docker Compose file is included to spin one up quickly. The Hermes plugin path is a single pip install. The MCP server path involves adding a short JSON block to Claude's desktop config file. Hexus is licensed under the BSD 3-Clause license and described as intentionally minimal: a drop-in storage and search layer you add to an existing agent setup rather than a complete agent platform.

Copy-paste prompts

Prompt 1
I want to set up Hexus as a memory MCP server for Claude Desktop using Docker and my existing Postgres instance. Show me the exact docker-compose.yml setup and the Claude desktop config JSON block.
Prompt 2
I'm building a Hermes multi-agent system and want each agent to have isolated memory. How do I install the Hexus plugin and configure separate themes for each agent?
Prompt 3
My Hexus vector search is returning stale results from months ago. How do I configure temporal decay or TTL settings to automatically de-prioritize or expire old memory entries?
Prompt 4
Show me how hybrid BM25 plus vector search works in Hexus and when I should use it instead of pure vector similarity for agent memory retrieval.

Frequently asked questions

What is hexus?

A local Postgres-backed vector memory layer for AI agents that uses CPU-only BERT embeddings for fast, private storage and search, works as a Hermes agent plugin or a standalone MCP server for Claude Desktop and Cursor.

What language is hexus written in?

Mainly Python. The stack also includes Python, PostgreSQL, pgvector.

What license does hexus use?

BSD 3-Clause license, use freely for commercial or personal projects as long as you retain the copyright notice and do not use the project name for endorsement.

How hard is hexus to set up?

Setup difficulty is rated moderate, with roughly 30min to a first successful run.

Who is hexus for?

Mainly developer.

Open on GitHub → Explain another repo

This repo across BitVibe Labs

Scan in gitsafehub Deploy in gitdeployhub codenamekt on gitmyhub

Verify against the repo before relying on details.