Memory layer for AI agents — store, organize, retrieve, and manage memories and beliefs via the Headkey API
npx claudepluginhub savantly-net/headkey-mcp-pluginMemory layer for AI agents — store, organize, retrieve, and manage memories and beliefs via the Headkey API
Memory layer for AI agents — store, organize, retrieve, and manage memories and beliefs via the Headkey API.
/plugin marketplace add savantly-net/headkey-mcp-plugin
/plugin install headkey@headkey-mcp-plugin
/reload-plugins
/headkey:claude-md to auto-generate memory instructions tailored to your projectRun /headkey:setup inside Claude Code for guided configuration, or configure manually:
Set your account API key globally in ~/.claude/settings.json:
{
"env": {
"HEADKEY_API_KEY": "cibfe_your_account_key_here"
}
}
Set the agent ID per-project in .claude/settings.json in your project root:
{
"env": {
"HEADKEY_AGENT_ID": "my-project-agent"
}
}
The agent ID can be the agent UUID or the friendly slug from your agent configuration.
If using an agent-specific key, only HEADKEY_API_KEY is needed (no agent ID required). Set it per-project or globally as above.
This plugin includes hooks that automatically capture conversation messages (user prompts and assistant responses) and send them to Headkey for storage and knowledge extraction.
Requirements:
conversationLogging.enabled: true)HEADKEY_API_KEY and HEADKEY_AGENT_ID must be setWhen enabled, the plugin registers two Claude Code hooks:
Messages are stored in Elasticsearch and asynchronously processed through the sensory pipeline to extract facts, decisions, and relationships into long-term memory.
Add .claude/settings.json to your .gitignore to avoid committing secrets.
Test the plugin locally:
claude --plugin-dir .
MIT