Vity (Maximem AI) memory provider plugin for Hermes Agent
pip install hermes-maximem-vity==1.5.3 Copy PIP instructions
hermes-maximem-vity is a plugin that gives Hermes Agent long-term memory across sessions, using Vity by Maximem AI.
pip install hermes-maximem-vity hermes-maximem-vity install The install command does these steps:
When all three of SDK, key and activation succeed, it prints a message that starts with All set. If one fails, it prints the exact command to finish that step by hand.
On a terminal, the installer asks how to get the key:
To sign in again later and replace the key, or to sign in when a key is already saved:
hermes-maximem-vity install --login In a script, pass a key as a flag:
hermes-maximem-vity install --api-key mx_... A plain re-install keeps the key you already have. You can also edit $HERMES_HOME/.env yourself and add the line MAXIMEM_API_KEY=mx_.... The key decides which memory space is used. Use a separate key for each account that needs separate memories.
If Hermes or the gateway was running during the install, restart it. Gateway users run hermes gateway restart.
If pip install fails with externally-managed-environment (PEP 668), or pip is not found, use pipx or a virtual environment:
pipx install hermes-maximem-vity hermes-maximem-vity install The Python that runs pip does not need to match the Python that runs Hermes.
hermes-maximem-vity status # plugin files installed, SDK usable by Hermes hermes memory status # shows maximem_vity as the provider and a live connection check hermes maximem_vity status # key, SDK, settings and connection Then save a memory and find it again:
hermes maximem_vity store "I prefer dark mode" --type preference hermes maximem_vity search "dark mode" New facts that come from captured conversations are extracted on the server after the turn is accepted. They may not be searchable right away.
The plugin searches your stored memories using the current message and injects up to 10 matches into the prompt under the heading "Vity Memory".
When auto_capture is on, each user and assistant exchange goes into a queue and is sent to Vity in the background. The reply is never held up by it.
A write that fails is retried once. If it still fails, or it is still queued when Hermes exits, a captured turn or stored fact is saved to $HERMES_HOME/vity_pending_writes.jsonl and sent on the next start. The file is readable only by you and holds at most 200 entries. Writes rejected as invalid, and writes rejected because of a bad API key, are dropped and not saved.
When profile_warmup is on, the plugin reads your Profile Card in the background and injects it once per session as background context under "About the user".
The profile is loaded only when auto_recall is on. The vity_profile tool works either way.
When live_context is on, the plugin asks Vity on every turn whether your message continues work you did in another AI app, such as ChatGPT or Claude. Vity decides which turns qualify: the first message of a session, and any message that names an app, for example "continue my ChatGPT chat". Other turns get nothing back.
A memory's age counts from when it was said, not from when Vity stored it. A chat you imported today shows its real age. If the SDK does not provide the original time, the stored time is used.
Ages are shown as just now, 5m ago, 3h ago, 3d ago, 2mo ago (30-day months) and 1y ago. The vity_recall tool returns the same value as age, and the relevance as a number from 0 to 1.
Settings are optional. Put them in $HERMES_HOME/vity.json, as a JSON object:
{ "auto_recall": true, "auto_capture": true, "max_recall_tokens": 1000, "min_prompt_length": 5, "recall_timeout": 6.0, "recall_deadline": 3.0, "recall_min_score": 0.3, "profile_warmup": true, "live_context": true } The installer does not create this file where the plugin reads it. It only puts a copy of vity.json.example inside the plugin folder, and the plugin does not read that copy. To change settings, create $HERMES_HOME/vity.json yourself (copy the example), or use hermes memory setup. An invalid file is ignored, and a warning is written to the Hermes log. Restart Hermes after changes.
A value of null or an empty string is ignored and the default is used. hermes memory setup offers auto_recall, auto_capture, profile_warmup, live_context, recall_min_score, recall_deadline and max_recall_tokens, and then tests the connection.
Set these in $HERMES_HOME/.env or in the shell.
You do not need special commands. Ask the agent to "remember that ..." and it calls vity_store. Ask "what do you know about ..." and it calls vity_recall or vity_knowledge.
Use vity_recall for a specific fact you stated. Use vity_knowledge for what you know about a topic.
vity_meeting_recall is always listed, because Hermes reads the tool list once at startup. The plugin checks whether Meeting Memory is enabled when the tool is called.
The code also contains vity_update and vity_delete, which edit or delete one memory by id. They are switched off in this release and the agent is not offered them.
The hermes maximem_vity commands are available while maximem_vity is the active memory provider.
Forgotten memories stay in the trash for 30 days, and you can restore them with restore or at app.maximem.ai. After 30 days they are erased for good. Only the dashboard can erase them sooner. When a query matches too many memories, forget refuses: use a more specific query, or delete in bulk from the dashboard.
The installer command has its own subcommands:
hermes config set memory.provider maximem_vity Use this instead of choosing the provider in the hermes memory setup wizard. Pasted or buffered input can make the wizard drop the choice and leave the provider unset.
What the plugin sends to the Maximem API, using your API key:
The API key decides which memory space is used.
Usage telemetry is separate. It is on by default and is sent to the same Maximem API address as your memory calls. It never contains message text, queries, responses or memory content. Each event carries the plugin version and an account identifier. The identifier is the first 16 characters of a SHA-256 hash of your API key, not the key. The key travels only in the request header.
Events are sent from a background thread with a 3-second timeout. A failure is ignored and never affects a turn. Without an API key, no event is sent.
To turn telemetry off, add this line to $HERMES_HOME/.env and restart Hermes:
MAXIMEM_ANALYTICS=0 The installer reads only the shell environment for this setting. To skip the plugin_installed event, run MAXIMEM_ANALYTICS=0 hermes-maximem-vity install.
On Windows, pip install --user puts the command in a Scripts folder that may not be on PATH. For the current PowerShell session:
$env:Path += ";$(python -m site --user-base)\Python$(python -c 'import sys;print(f"{sys.version_info.major}{sys.version_info.minor}")')\Scripts" hermes-maximem-vity install To keep the change, add that Scripts folder to your user PATH in Environment Variables.
pip install -U hermes-maximem-vity hermes-maximem-vity install Run install again after every upgrade. It refreshes the plugin files that Hermes loads and upgrades the SDK in Hermes' environment when needed. Your API key is kept. Restart Hermes afterwards.
pip install -e ".[dev]" python3 -m pytest -q The tests run offline. They replace the Hermes modules (agent.memory_provider, tools.registry, hermes_constants, utils) with stubs, so a Hermes checkout is not needed. See tests/conftest.py.
hermes hermes-agent memory vity maximem llm-memory semantic-memory
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
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.
None of the files in this release were uploaded with provenance metadata.
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.




