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) andcrystalbrain_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 byCRYSTALBRAIN_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
Both copy the plugin to ~/.hermes/plugins/crystalbrain/, save the key in ~/.hermes/.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.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| crystalbrain_hermes-0.1.0.tar.gz | 14.3 kB | Without provenance | Details for crystalbrain_hermes-0.1.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| crystalbrain_hermes-0.1.0-py3-none-any.whl | Python 3 | none | any | Details for crystalbrain_hermes-0.1.0-py3-none-any.whl |
Total release size: 28.1 kB
Release files / crystalbrain_hermes-0.1.0.tar.gz
| Download URL | crystalbrain_hermes-0.1.0.tar.gz |
|---|---|
| Size | 14.3 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
5948144df73c647ffead48abbe7288bfd225faf266fb5edd8820bb0491541eb4
|
|
BLAKE2b-256 checksum How to use checksums |
913ca0002da5e9a6c2cda0b467da2ab1141968e98021cf951d288d07b52ad794
|
| 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.0-py3-none-any.whl
| Download URL | crystalbrain_hermes-0.1.0-py3-none-any.whl |
|---|---|
| Size | 13.8 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
06b04ace564468facace70ffa79e4b9f7bcbaa4d8cdc1d49c385c75a33ddfbb6
|
|
BLAKE2b-256 checksum How to use checksums |
60d28a744f3feef6a4127881751a645adb51a9ec4700b423528120f9f1ee8f8e
|
| 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.0
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.