Memory for Your AI Assistants _
> Persistent Agent memory that just works!
> Your AI remembers conversations, learns patterns, grows smarter
> Simple config. Sensible defaults. Local-first. Privacy by default.
Cloud Backend is live β memory across all your environments
Memory is stored and recalled automatically as you work
Or explicitly store and recall important solutions
See it in action
// QUICKSTART
> Get started in under a minute
Embedded graph database with native Cypher. No server needed.
# Install via bun
bunx memorygraph store --type solution --title "Hello"
# Or clone and build
git clone https://github.com/gregorydickson/memory-graph.git
cd memory-graph/ts && bun install
# Store your first memory
bun run src/index.ts store \
--type solution --title "Use Zod for validation"
# Configure memory directives (important!)
# Add to ~/.claude/CLAUDE.md Configure memory directives to enable automatic storage.
Zero-dependency fallback using Bun's built-in SQLite.
# Use SQLite backend (zero deps)
export MEMORY_BACKEND=sqlite
# Store and recall memories
bun run src/index.ts store \
--type solution --title "Redis timeout fix"
bun run src/index.ts recall --query "timeout" --limit 5 Sync memories across devices and teams via MemoryGraph Cloud.
# Set cloud backend
export MEMORY_BACKEND=cloud
export MEMORYGRAPH_API_KEY=mg_your_key_here
export MEMORYGRAPH_API_URL=https://memorygraph.dev
# Sync memories to cloud
bun run src/index.ts store \
--type solution --title "Auth refactor"
# Recall across all your devices
bun run src/index.ts recall --query "auth" Pro tip: Build a standalone binary for fast CLI access: bun build src/cli.ts --compile --outfile memorygraph Learn more →
// CORE_FUNCTIONS
> CLI commands that give your AI persistent memory
memorygraph store \
--type solution \
--title "Redis timeout fix" \
--tags redis,timeout Capture solutions, patterns, decisions. Your AI builds a knowledge base from every interaction.
memorygraph recall \
--query "timeout solutions" \
--limit 10 Fuzzy search with semantic matching. Find relevant context even with imprecise queries.
memorygraph link \
--from mem_problem_123 \
--to mem_solution_456 \
--type SOLVES Link problems to solutions, causes to effects. Build a knowledge graph, not just a list.
memorygraph related \
--id mem_error_789 \
--max-depth 2 Traverse the graph. Find what caused this, what solved that, what works with what.
> Traditional vector stores lose relationships between memories
> FalkorDB-powered graphs preserve causality and context
> Ask "What solves X?" not just "What's similar to X?"
> Cloud backend auto-discovers connections via similarity detection and transitive inference
// VALIDATED_BY_RESEARCH
"Agents remember what was said but not what was learned."
β Evo-Memory, Google DeepMind (Dec 2025)
// WHY_DEEP_MEMORY_MATTERS
Ablation studies clearly show that the depth of the memory architecture is crucial. Modules with deeper memories consistently achieve lower perplexity... and exhibit better scaling properties.β Google Research, Titans (December 2025)
// DATA_PORTABILITY
> Your data. Your choice. No lock-in.
Migrate between any backend with full verification and rollback. Start local, scale to cloud, or move between providersβyour memories follow you.
Backend Migration
Move memories between SQLite, Neo4j, Memgraph, FalkorDB, and more with a single command.
Verified Transfers
Automatic validation ensures every memory and relationship transfers correctly.
Safe Rollback
If anything fails, automatic rollback protects your data. Always test with --dry-run first.
Export Anywhere
Export to JSON anytime. Your data is never trapped in a proprietary format.
// CLOUD_SYNC
Share memories across environments, devices, and teams with our managed cloud backend.
// PRICING_PLANS
> Start free. Scale as you grow. No hidden fees.
- [β] 100,000 memories
- [β] Advanced search
- [β] Graph visualization
- [β] API access
- [β] Priority support
- [β] 500,000 memories
- [β] Advanced search
- [β] Graph visualization
- [β] API access
- [β] Priority support
- [β] Unlimited memories
- [β] Up to 10 users
- [β] Team workspaces
- [β] SSO & SAML
- [β] Dedicated support
> Self-hosting available. Open source CLI is free forever.
// FAQ
> man memorygraph