OpenClaw plugin for Hyperspell - Context and memory for your AI agents.
openclaw plugins install --dangerously-force-unsafe-install @hyperspell/openclaw-hyperspellNote: The
--dangerously-force-unsafe-installflag is required because OpenClaw's automated install scanner detects standard operations that are essential to how the plugin works — opening your browser during setup, scheduling background jobs, and securely communicating with the Hyperspell API. These are normal, expected behaviors and the plugin does not execute arbitrary code or access data beyond what is needed to function. The source is fully open and auditable in this repository.
Run the interactive setup wizard:
openclaw openclaw-hyperspell setupThe setup wizard will guide you through:
- Creating a Hyperspell account (if you don't have one)
- Configuring your API key
- Setting up your User ID for multi-tenant memory
- Connecting your apps (Notion, Slack, Google Drive, etc.)
- Enabling memory sync for local markdown files
- Syncing existing memory files to Hyperspell
Add to your openclaw.json:
{
"plugins": {
"slots": {
"memory": "openclaw-hyperspell"
},
"entries": {
"openclaw-hyperspell": {
"enabled": true,
"config": {
"apiKey": "${HYPERSPELL_API_KEY}",
"userId": "your-email",
"autoContext": true,
"syncMemories": true,
"sources": "vault,notion,slack",
"dreaming": {
"enabled": true
}
}
},
"memory-core": {
"enabled": true
}
}
}
}Set the environment variable in ~/.openclaw/.env:
HYPERSPELL_API_KEY=hs_...OpenClaw's memory slot (plugins.slots.memory) is exclusive, but the memory-core dreaming engine is an explicit exception: it can sidecar-load alongside the slot owner so Dreaming keeps running while Hyperspell handles remote search and storage.
To enable this, all four settings must be true at once:
| Setting | Value |
|---|---|
plugins.slots.memory |
openclaw-hyperspell |
plugins.entries.openclaw-hyperspell.enabled |
true |
plugins.entries.openclaw-hyperspell.config.dreaming.enabled |
true |
plugins.entries.memory-core.enabled |
true |
The dreaming.enabled: true flag on the Hyperspell plugin's config is what tells OpenClaw to load memory-core as a sidecar (see resolveDreamingSidecarEngineId in OpenClaw's plugin loader). Without it, memory-core is treated as a normal memory plugin and the slot policy disables it.
Two distinct memory tracks:
- Hyperspell — remote, cross-source (Slack, Notion, Drive, Gmail, vault, ...). Runs on every agent turn via
autoContextandautoTrace. Owns the memory slot. - Dreaming — local, consolidates daily notes and session transcripts into
workspace/MEMORY.mdon cron (light every 6h, deep nightly, REM weekly). Does not read Hyperspell's remote memories. Reads only local files the agent runner writes.
The two systems don't share state at runtime. They can be enabled independently.
Interactive setup wizard that walks you through configuration, connecting apps, and syncing memory files.
Check your current configuration and connection status.
Open the Hyperspell connect page to link your accounts (Notion, Slack, Google Drive, etc.). After connecting, your sources are automatically updated in the config.
| Option | Type | Default | Description |
|---|---|---|---|
apiKey |
string | ${HYPERSPELL_API_KEY} |
Hyperspell API key |
userId |
string | - | User ID for multi-tenant memory (can be your email) |
autoContext |
boolean | true |
Auto-inject relevant memories before each AI turn |
syncMemories |
boolean | false |
Sync markdown files in workspace/memory/ to Hyperspell |
sources |
string | - | Comma-separated sources to search (e.g., vault,notion,slack) |
maxResults |
number | 10 |
Maximum memories per context injection |
debug |
boolean | false |
Enable verbose logging |
dreaming.enabled |
boolean | false |
Allow memory-core to sidecar-load so Dreaming can consolidate local session transcripts into workspace/MEMORY.md. See Running alongside Dreaming. |
Search your memories for relevant context.
/getcontext Q1 budget planning
Save something to memory.
/remember Meeting with Alice: discussed Q1 budget, need to follow up on headcount
Manually sync all markdown files in workspace/memory/ to Hyperspell.
/sync
When syncMemories: true, the plugin syncs markdown files from your agent's workspace memory directory (e.g., ~/.openclaw/workspace/memory/) to Hyperspell. This includes all .md files in subdirectories.
How it works:
- Each markdown file is uploaded to Hyperspell as a memory in the
openclawcollection - The returned
resource_idis stored in the file's YAML frontmatter ashyperspell_id - On subsequent syncs, files with an existing
hyperspell_idare updated rather than duplicated - Files are synced automatically on startup and when they change
Example frontmatter after sync:
---
title: Meeting Notes
hyperspell_id: abc123-def456
---
# Meeting Notes
...The plugin registers tools that the AI can use autonomously:
- hyperspell_search - Search through connected sources
- hyperspell_remember - Save information to memory
When autoContext: true (default), the plugin automatically:
- Intercepts each user message before the AI responds
- Searches Hyperspell for relevant memories
- Injects matching context into the AI's prompt
This ensures the AI always has access to relevant information from your connected sources.
vault- User-created or synced memoriesnotion- Notion pages and databasesgoogle_drive- Google Drive filesbox- Box filesdropbox- Dropbox filesonedrive- Microsoft OneDrive files
slack- Slack messagesgoogle_mail- Gmail messages
google_calendar- Google Calendar eventszoom- Zoom meeting recordings and transcriptsfathom- Fathom meeting recordingsfireflies- Fireflies.ai meeting transcripts
linear- Linear issues and comments
hubspot- HubSpot contacts, companies, and dealsattio- Attio CRM contacts, companies, and deals
github- GitHub repositories and commits
web_crawler- Crawled web pages
The plugin can automatically build a local knowledge graph from your memories:
- Scan memories for entities (people, organizations, projects, topics)
- Extract structured information and relationships
- Write entity files to
memory/people/,memory/organizations/, etc. - Link entities via markdown relationship references
Enable the graph tools by using hyperspell_network_scan, hyperspell_network_write, and hyperspell_network_complete in your agent workflows.
- Check that your sources are connected:
openclaw openclaw-hyperspell status - Verify your API key is set:
echo $HYPERSPELL_API_KEY - Make sure content has been indexed (initial sync can take a few minutes)
- Ensure
syncMemories: truein your config - Check that markdown files are in
~/.openclaw/workspace/memory/ - Run
/syncmanually to trigger a sync and see any errors
- Verify
autoContext: truein your config - Enable
debug: trueto see what queries are being made - Check that you have memories matching your conversation topics
- This means
memory-corewas placed inplugins.slots.memory. The slot should stay onopenclaw-hyperspell;memory-corerides alongside as a sidecar. - Restore: set
plugins.slots.memory = "openclaw-hyperspell", set both pluginsenabled: true, and adddreaming: { enabled: true }to the Hyperspell config. See Running alongside Dreaming.
See CONTRIBUTING.md for development setup and guidelines.
MIT
