Skip to main content

CrystalBrain memory for Hermes Agent

A memory provider plugin that gives Hermes Agent a long-term memory per user, kept in CrystalBrain.

  • Recall before each turn: the user's message is searched in CrystalBrain and what fits (memories, document passages) is added to that message. Hermes adds it to the copy sent to the model, never to the stored conversation.
  • Saved when the session ends: the conversation (user and assistant text only) goes to CrystalBrain, which turns it into memories (facts, preferences, decisions…) and refuses near-duplicates. A session with fewer than 2 real user messages is not saved. Cron runs and subagents never save.
  • Two tools: crystalbrain_search (another question than the current message) and crystalbrain_save (save one thing now, when the user asks to remember it).
  • One memory per person: on a messaging gateway (Telegram, Discord, Slack…), each Hermes user becomes the CrystalBrain end user hermes:<platform>:<user_id>, created on its first save. On the CLI, the user named by CRYSTALBRAIN_USER, or your own account's memory when it is unset.

Hermes' own MEMORY.md / USER.md stay active beside it; only one external provider can be active at a time. Tested with Hermes Agent 0.19.0.

Install

You need a CrystalBrain API key: dashboard, Connections › API keys (the Free plan is enough to start).

One command (Linux, macOS, WSL; needs python3):

curl -fsSL https://crystalbrain.ai/hermes/install.sh | bash

Or from PyPI:

pip install crystalbrain-hermes
crystalbrain-hermes install

On Windows, with Hermes installed on Windows (in PowerShell; with Hermes in WSL, use the one command in WSL):

py -m pip install crystalbrain-hermes
py -m crystalbrain_hermes.installer install

They copy the plugin to Hermes' folder (~/.hermes, or %LOCALAPPDATA%\hermes on Windows) under plugins/crystalbrain/, save the key in its .env and select the provider (memory.provider: crystalbrain). For another profile, add --profile <name> (with the script: | bash -s -- --profile <name>). Then restart Hermes and its gateway, and check with hermes memory status.

By hand: copy the three files of this folder (__init__.py, plugin.yaml, README.md, also served at https://crystalbrain.ai/hermes/crystalbrain/<file>) to $HERMES_HOME/plugins/crystalbrain/, add CRYSTALBRAIN_API_KEY=… to the profile's .env, and set in its config.yaml:

memory:
  provider: crystalbrain

Optional, in the same .env: CRYSTALBRAIN_USER (the CrystalBrain user for CLI sessions) and CRYSTALBRAIN_BASE_URL (default https://crystalbrain.ai).

Uninstall: crystalbrain-hermes uninstall (or curl -fsSL https://crystalbrain.ai/hermes/install.sh | bash -s -- uninstall). Hermes goes back to its built-in memory; what CrystalBrain saved stays in your dashboard.

What is sent to CrystalBrain

  • Each non-trivial user message (as the search query), with the user ID above and the model name.
  • At session end: the user and assistant messages as text. System prompts, tool calls and tool results are not sent. Long conversations keep their last 50,000 characters.

Costs and limits

Each saved session is tidied by CrystalBrain's AI and counts against the workspace's monthly AI credit; each gateway user counts as a tracked user (plan quota). CrystalBrain accepts at most 60 AI-written memories per user in 10 minutes.

The plugin uses the Python standard library only: nothing to install in Hermes' environment.

Metadata

Release files for crystalbrain-hermes 0.1.1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for crystalbrain-hermes 0.1.1
File Size Uploaded Provenance Actions
crystalbrain_hermes-0.1.1.tar.gz 14.8 kB Without provenance Details for crystalbrain_hermes-0.1.1.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for crystalbrain-hermes 0.1.1
File Interpreter ABI Platform Actions
crystalbrain_hermes-0.1.1-py3-none-any.whl Python 3 none any Details for crystalbrain_hermes-0.1.1-py3-none-any.whl

Total release size: 28.9 kB

Release files / crystalbrain_hermes-0.1.1.tar.gz

Download URL crystalbrain_hermes-0.1.1.tar.gz
Size 14.8 kB
Tags Source
SHA-256 checksum
How to use checksums
e16aa47624a28de574f36ac9789d19b5a1f4d9bc8b6b1769db1ef7e0125dd202
BLAKE2b-256 checksum
How to use checksums
24df6a7044d475b4074755a8b6449a1e582a957ccf76b996ed5030215a3e1d0a
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.14.3

Release files / crystalbrain_hermes-0.1.1-py3-none-any.whl

Download URL crystalbrain_hermes-0.1.1-py3-none-any.whl
Size 14.2 kB
Tags Python 3
SHA-256 checksum
How to use checksums
d24242746b431b724cc2f2269ccd3a658c455ad150eec784c95b7ca8e49c2f70
BLAKE2b-256 checksum
How to use checksums
32c7853f0bc35dd1d9dc0632f510730f41f381ce8322fda9f464478bfa949443
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.14.3

Security for crystalbrain-hermes 0.1.1

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release

0.1.1 This release

2 release files No provenance

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page