agenticmemory
Official Node.js SDK for Agentic Memory. Give your AI agents persistent memory in one line.
Install
npm install agenticmemory
Quick Start
const { AgenticMemory } = require('agenticmemory');
const memory = new AgenticMemory({ apiKey: 'amk_your_key' });
await memory.store('your-space-id', { role: 'user', content: 'Hello!' });
const messages = await memory.recall('your-space-id', { limit: 20 });
const results = await memory.search('your-space-id', 'pricing discussion');
Features
- Short-term memory — instant recall, sub-millisecond reads
- Medium-term memory — search past conversations by meaning
- Long-term memory — auto-summarised knowledge across months
API
store(spaceId, message) — append a message
recall(spaceId, { limit }) — get recent messages
search(spaceId, query, { scope, tags }) — semantic search
setContext(spaceId, key, value) — set key-value context
getContext(spaceId, key) — get context value
addEntry(spaceId, { type, title, content, tags }) — append entry
bootstrap(spaceId, opts) — load full context in one call
setShared(spaceId, key, value) — shared world memory
createSpace(name, slug) — create a memory space
Get an API key
Sign up free at agenticmemory.ai. 1,000 messages/month on the free tier.
Links
Acknowledgements
The structured memory architecture was influenced by work from the h-network community by Halil Baysal.
License
Proprietary — Tyga.Cloud Ltd. See LICENSE file.