1. Install the plugin
Install the plugin from PyPI:hermes plugins install cognee followed by hermes plugins enable cognee. The full integration guide covers both install paths and how each one updates.
Requires Python 3.10+. The plugin pins
cognee==1.6.0 as a pip dependency.2. Connect to Cognee Cloud
Hermes connects to Cloud in remote mode. At the Mode prompt ofhermes memory setup, enter remote, then your tenant URL and API key. Setup defaults to local, and the mode it saves takes precedence over environment variables, so accepting the default keeps Hermes local even after you export the variables below. Alternatively, export them before running setup, so it offers remote as the default. There are no silent fallbacks — if the configured mode fails, the failure surfaces.
$HERMES_HOME/cognee.json and secrets to $HERMES_HOME/.env; values in cognee.json beat environment variables, so re-run setup to change the mode or dataset.
3. Run and verify
Run Hermes as usual — memory is captured and recalled automatically:cognee_recall— search your tenant’s knowledge graph, with the conversation’s session id attachedcognee_remember— persist content into the knowledge graphcognee_forget— delete memory, in two phases: the agent lists candidates first, then deletes only the ones you confirmcognee_switch_dataset— move the conversation to another dataset on your tenantcognee_code_search— query an indexed repository’s code graph
COGNEE_IMPROVE_ON_END=true (the default), cognee.improve(...) promotes the session cache into your permanent graph.
Configuration
The default dataset is shared with Cognee’s other agent plugins (Claude Code, Codex, OpenClaw), so memory written in any of them is recalled in all of them. Set
COGNEE_PLUGIN_DATASET to give Hermes a dataset of its own on your tenant.
Manage the plugin with
hermes cognee status, hermes cognee setup, hermes cognee config, hermes cognee install, and hermes cognee version (plugin version and update availability). hermes cognee index-repo <git-url> indexes a repository into a deterministic code graph on your tenant — pass a git URL, since a Cloud tenant cannot read a path on your machine.Full integration guide
Tools, connection modes, and how it works
Hermes Agent
Learn about Hermes Agent