Cube Memory Plugin for Hermes Agent
Exact hybrid long-term memory provider for Hermes Agent, backed by Cube Memory (hosted gateway or self-hosted instance).
Why Cube Memory?
- Exact hybrid retrieval (no ANN/HNSW approximation): 384D exact cosine scan + BM25 + RRF fusion for deterministic, 100%-recall memory lookup.
- Immutable literal layer: stored memories keep their exact original wording with SHA-256 integrity hashing.
- Zero third-party dependencies: pure Python standard library client (
urllib.request), compatible across Linux, macOS, and Windows. - Privacy & isolation: each project island is encrypted with AES-256-GCM using your API key, and you can point
CUBE_MEMORY_BASE_URLto a self-hosted Cube Memory gateway.
Installation
hermes plugins install cube-memory
Or install directly from this repository:
hermes plugins install RonnyTome/hermes-plugin-cube-memory
Configuration
- Create an account and generate an API key + Project ID at https://cubememory.com.br (or deploy self-hosted).
- Set the required environment variables (or configure via Hermes secrets):
export CUBE_MEMORY_API_KEY="<YOUR_API_KEY>"
export CUBE_MEMORY_PROJECT_ID="<YOUR_PROJECT_ID>"
# Optional: override for self-hosted gateway
# export CUBE_MEMORY_BASE_URL="http://127.0.0.1:8010"
- Activate the memory provider in
~/.hermes/config.yaml:
memory:
provider: cube-memory
cube-memory:
# Optional overrides:
# base_url: "https://cubememory.com.br/gateway"
# prefetch_top_k: 5
# min_score: 0.35
Provided Tools
cube_search_memory(query, top_k=6, min_score=None)— exact hybrid search across stored memories.cube_store_memory(text, layer="long-term")— persist a durable fact, decision, or preference verbatim.cube_get_memory(memory_id)— fetch the complete verbatim record by ID.cube_list_memories(limit=20, offset=0)— list recent memories in the active project.
Privacy & Data Handling Disclosure
- This plugin is a thin HTTPS client with no local database and no self-updating code.
- Search queries (excluding trivial prompts like
"ok"or"thanks") and explicit memory writes are sent over HTTPS toCUBE_MEMORY_BASE_URL(default:https://cubememory.com.br/gateway). - API keys are read from Hermes scoped secrets / environment variables and are never logged or returned in tool errors.
Development & Tests
pytest -q
hermes plugins validate .
README from the reviewed commit d79d753; it updates when the author re-pins.

Ronny Tome (@RonnyTome)