1. Install the plugin
Install the plugin from the Hermes plugin catalog:pip install cognee-integration-hermes-agent followed by cognee-hermes-install. The full integration guide covers both install paths and how each one updates.
The plugin needs Python 3.10 or newer. macOS’s Xcode Command Line Tools ship Python 3.9, so use a Homebrew, python.org or uv-managed Python. The plugin declares no dependencies, so it installs on any Hermes. Remote mode is plain HTTP: Cognee Cloud needs no
cognee package and no LLM key on your machine.2. Connect to Cognee Cloud
Run the setup in a terminal:hermes plugins enable cognee and the toggle in Hermes Desktop enable the plugin but leave hermes memory status at Provider: (none).
Hermes connects to Cloud in remote mode, which is the default at the Mode prompt: accept it, then enter your tenant URL (https://your-tenant.aws.cognee.ai) and API key. Both come from the API Keys page: the tenant URL is the API base URL in the Connection panel (not the Tenant ID next to it), and the key comes from Create new key. If setup also asks for LLM or embedding settings, leave them empty: they apply to local mode only. If an earlier setup chose local, the prompt shows Current mode: local; enter remote to switch. There are no silent fallbacks — if the configured mode fails, the failure surfaces.
No LLM key is needed in remote mode — your tenant does the knowledge extraction server-side. Setup saves non-secret settings to $HERMES_HOME/cognee.json and secrets to $HERMES_HOME/.env through Hermes’ own writer; values in cognee.json beat environment variables, so re-run setup to change the mode or dataset. The exception is COGNEE_PLUGIN_RECALL_MODE, which overrides recall_mode in cognee.json.
The plugin reads
COGNEE_API_KEY and COGNEE_BASE_URL through Hermes (the active profile’s secrets) and never opens a .env file itself, so a key kept only in ~/.cognee/.env or left behind by another Cognee plugin is not used. Run hermes memory setup cognee or put the key in Hermes’ .env.3. Run and verify
Start a new chat in Hermes Desktop (or a newhermes session) — memory is set up when a chat starts, so a chat that was already open keeps the memory it started with. Memory is then captured and recalled automatically. Check the connection with:
cognee_recall— search your tenant’s knowledge graphcognee_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 tenant, or set its recall mode (pin,auto)cognee_code_search— query an indexed repository’s code graphcognee_recap— a standup, digest or timeline of the sessions recorded into the active dataset on your tenant
COGNEE_IMPROVE_ON_END=true (the default), cognee.improve(...) promotes the session cache into your permanent graph. The same improve also starts in the background before Hermes compresses a long conversation, so turns that get compressed away still reach your graph. Compression doesn’t wait for it.
cognee_remember returns right away with status: "running", and your tenant finishes building the graph in the background. A slow LLM on the tenant side therefore no longer shows up as a timeout for a write that actually lands. The new content isn’t recallable until that build finishes, and a build that fails on the tenant no longer shows up as an error in the tool result.
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.
Saves always go to the conversation’s dataset. Recall on the default dataset is auto: it names no dataset and the server picks the best-matching one you can read (routing needs cognee 1.6.6 on the server; an older one searches every dataset you can read). A dataset of its own keeps recall pinned to it while no recall mode is set. See Recall mode for the details and how a conversation overrides it.
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 standup, digest and timeline <topic> print a recap of the sessions recorded on your tenant. 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.hermes cognee keys list shows the per-machine API keys of your other Cognee plugin agents on your tenant (Claude Code, Codex, …), most recently used first, and hermes cognee keys revoke <key_id> --plugin <plugin> revokes one. Each plugin’s agent holds a capped number of machine keys, so revoking an old machine’s key is how you free a slot for a new one.Full integration guide
Tools, connection modes, and how it works
Hermes Agent
Learn about Hermes Agent