One shared memory and config layer for every AI agent and app.
Durable state for coding agents and a TypeScript SDK for AI apps. Store rules, recall context, and wire memory into any LLM—local-first, sync when you need it.
pnpm add -g @memories.sh/cliThree commands. That's it.
Store context, recall it anywhere, and generate configs for any tool—all from your terminal.
Built for durable state
Everything you need to make agent context persist—locally by default, synced when you choose.
Durable Local State
Rules and context live in a local SQLite store with embeddings, so agent state persists even offline.
Semantic Recall
Search by meaning, not just keywords. Query 'auth issues' and find JWT validation rules, session handling, and OAuth flows.
Local Embeddings
Runs a 100MB embedding model (gte-base) entirely on your CPU via ONNX. No API calls, no data leaves your machine.
Tool-Native Output
Generate native configs for Cursor, Claude Code, Copilot, Windsurf, Cline, Roo, Gemini, and more.
Scoped Memory
Global preferences, repo rules auto-scoped via git remote, and path-scoped rules with glob patterns like src/api/**.
Portable State
Export everything to JSON or YAML anytime. Switch tools or leave entirely. Your data is yours.
Cloud-native memory for AI apps.
The SDK connects your AI apps to memories.sh cloud—giving every prompt the right rules and context. memoriesMiddleware() is all it takes.
Import the middleware, pass your model, and ship. The CLI and MCP handle local-first storage and agent access—the SDK brings it all to production.
Read the SDK docsWorks With Your Tools
One memory store, every coding agent. Generate native config files for each tool so your context follows you—no copy-paste, no manual sync.
Claude Code
Generates CLAUDE.md, path-scoped rules, skills, and settings.
View Docs →Cursor
Generates .cursor/rules/ with globs frontmatter and skills.
View Docs →GitHub Copilot
Generates .github/copilot-instructions.md.
View Docs →Windsurf
Generates .windsurf/rules/memories.md.
View Docs →Gemini
Generates GEMINI.md for Google's coding agent.
View Docs →Any MCP Client
7 tools at full CLI parity with FTS5 search. For v0, bolt.new, Lovable, and any MCP client.
View Docs →Simple, Transparent Pricing
Free gives you durable local state and recall on your machine. Pro adds sync and backup for that state across every device you work on.
Free
Durable state on your machine. No account required.
- Unlimited local memories
- Local semantic recall
- 13+ tool configs
- Built-in MCP server
- Works offline by default
- Export to JSON/YAML anytime
Professional
Sync and back up state across machines.
- Everything in Free
- Cloud backup and sync
- Access from any device
- Web dashboard
- Create teams and invite members
- Server-side semantic recall
- Priority support
Enterprise
SDK access for AI apps with persistent memory.
- Everything in Professional
- @memories.sh/ai-sdk package
- @memories.sh/core client library
- memoriesMiddleware() for AI SDK
- Multi-tenant userId scoping
- Custom embedding models
- Dedicated support and SLA
Questions & Answers
Common questions about memories.sh and how it works.