Your AI agents forget everything.
Fix that.

Memstash gives coding agents persistent memory that works across sessions, projects, and tools. One install, and every conversation starts with the right context.

$ memstash install claude
? Install Claude Code hooks and rules? (Y/n) Y
 Installed recall hook for session start
 Installed stash hook for session end
 Added memstash rules to CLAUDE.md
Ready. Your agent now remembers.

$ memstash serve
MCP server listening on stdio
Connected to workspace: my-project
Local cache: 847 memories (synced)

Everything your agents need to remember

🧠

Semantic recall

Memories are indexed with vector embeddings. Agents find relevant context by meaning, not keyword matching.

Local-first, blazing fast

A local SQLite database caches everything on your machine. Queries are instant. Cloud syncs in the background.

📁

Workspaces

Segment memories by project, team, or purpose. Each workspace is its own database, configured per-directory.

🔗

Share across tools

Same memory store across Cursor, Claude Code, and OpenClaw. Switch editors without losing your mind.

🐝

Hive mind

Share a workspace across multiple agents. Every agent sees what the others learned.

🛠️

Self-hostable

Run entirely on your own infra with an OpenAI-compatible embedding service and SQLite. No lock-in.

How it works

1

Install & connect

Run memstash install cursor|claude|openclaw to set up hooks and rules. The wizard handles everything.

2

Agents stash memories

As you work, your agent summarizes important context — decisions, preferences, conventions — and stashes them.

3

Recall on every turn

At the start of each conversation, relevant memories are recalled. The right context is there before you type.

4

Sync & embed

Memories sync to the cloud for vector embedding. These index back to local SQLite for fast semantic search.

Works where you work

One memory store, every tool. Install once and all your agents share the same brain.

Cursor

Installs Cursor rules and MCP server config. Your Cursor agent starts every session with full project context.

memstash install cursor

Claude Code

Adds hooks and CLAUDE.md rules. Claude Code automatically recalls and stashes memories during operation.

memstash install claude

OpenClaw

Connect multiple agents to a shared workspace. Build a hive mind where every agent benefits from collective knowledge.

memstash install openclaw

Get started in 60 seconds

# Install the CLI
$ curl -fsSL https://get.memstash.dev | sh

# Log in to memstash cloud (or self-host)
$ memstash login

# Check your config
$ memstash config
workspace: default
storage: ~/.memstash/default.db
sync: cloud (connected)

# Install for your editor
$ memstash install claude

# Start the local MCP server
$ memstash serve

Stop repeating yourself to your AI

Give your agents the memory they deserve. Get started for free, or subscribe for cloud sync and managed embeddings.