Stop Re-Teaching Agents

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/cli
Live StateLocal
Ask your agent to pick up where you left off...
“Continue the auth refactor with the same error-handling rules.”
Recent Context
Use Tailwind for all UI componentsStored
Prefer zod over joi for validationStored
Keep auth logic in /lib/auth.tsStored
Recall and generate configs in one command
Works with
Claude Code
Cursor
GitHub Copilot
Windsurf
Gemini
Cline
Roo
OpenCode
BLACKBOX CLI
Codex
Amp
Kilo
Trae
Goose
OpenClaw
Antigravity
Kiro
Droid
Claude Code
Cursor
GitHub Copilot
Windsurf
Gemini
Cline
Roo
OpenCode
BLACKBOX CLI
Codex
Amp
Kilo
Trae
Goose
OpenClaw
Antigravity
Kiro
Droid
Claude Code
Cursor
GitHub Copilot
Windsurf
Gemini
Cline
Roo
OpenCode
BLACKBOX CLI
Codex
Amp
Kilo
Trae
Goose
OpenClaw
Antigravity
Kiro
Droid
How It Works

Three commands. That's it.

Store context, recall it anywhere, and generate configs for any tool—all from your terminal.

01 - Command Line
>pnpm add -g @memories.sh/cli
Quickstart Guide

Store, recall, generate

Local SQLite database. Works offline. Syncs when you want it to.

Learn more
Terminal
~/project
$
Stored to local SQLite database
$
CLIStore, recall, generate
Core Features

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.

Always available
Learn More →

Semantic Recall

Search by meaning, not just keywords. Query 'auth issues' and find JWT validation rules, session handling, and OAuth flows.

768-dim vectors
Learn More →

Local Embeddings

Runs a 100MB embedding model (gte-base) entirely on your CPU via ONNX. No API calls, no data leaves your machine.

100% private
Learn More →

Tool-Native Output

Generate native configs for Cursor, Claude Code, Copilot, Windsurf, Cline, Roo, Gemini, and more.

One command
Learn More →

Scoped Memory

Global preferences, repo rules auto-scoped via git remote, and path-scoped rules with glob patterns like src/api/**.

Right context
Learn More →

Portable State

Export everything to JSON or YAML anytime. Switch tools or leave entirely. Your data is yours.

No lock-in
Learn More →
TypeScript SDK

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 docs
Integrations

Works 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.

Available
Claude Code

Claude Code

Generates CLAUDE.md, path-scoped rules, skills, and settings.

View Docs
Available
Cursor

Cursor

Generates .cursor/rules/ with globs frontmatter and skills.

View Docs
Available
GitHub Copilot

GitHub Copilot

Generates .github/copilot-instructions.md.

View Docs
Available
Windsurf

Windsurf

Generates .windsurf/rules/memories.md.

View Docs
Available
Gemini

Gemini

Generates GEMINI.md for Google's coding agent.

View Docs
Available
Cline

Cline

Generates .clinerules for the Cline VS Code extension.

View Docs
Available
Roo

Roo

Generates .roo/rules/ for the Roo Code agent.

View Docs
Available
OpenCode

OpenCode

Generates AGENTS.md for the OpenCode terminal agent.

View Docs
Available
BLACKBOX CLI

BLACKBOX CLI

Connects to memories.sh through MCP for live context and memory writes.

View Docs
Available
Codex

Codex

Generates AGENTS.md for the OpenAI Codex CLI agent.

View Docs
Available
Amp

Amp

Generates .amp/rules/ for the Amp coding agent.

View Docs
Available
Kilo

Kilo

Generates config for the Kilo coding assistant.

View Docs
Available
Trae

Trae

Generates rules for the Trae coding agent.

View Docs
Available
Goose

Goose

Generates .goose/rules/ for the Goose agent by Block.

View Docs
Available
OpenClaw

OpenClaw

Open-source personal AI assistant with persistent memory and skill plugins.

View Docs
Available
Antigravity

Antigravity

Google's agent-first IDE powered by Gemini.

View Docs
Available
Kiro

Kiro

AWS's agentic AI IDE with CLI and autonomous agents.

View Docs
Available
Droid

Droid

Factory AI's terminal coding agent for end-to-end dev workflows.

View Docs
Available
Any MCP Client

Any MCP Client

7 tools at full CLI parity with FTS5 search. For v0, bolt.new, Lovable, and any MCP client.

View Docs
Pricing

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

$0/month

Durable state on your machine. No account required.

Included Features
  • Unlimited local memories
  • Local semantic recall
  • 13+ tool configs
  • Built-in MCP server
  • Works offline by default
  • Export to JSON/YAML anytime
Get Started
Recommended

Professional

$15/month

Sync and back up state across machines.

Included Features
  • Everything in Free
  • Cloud backup and sync
  • Access from any device
  • Web dashboard
  • Create teams and invite members
  • Server-side semantic recall
  • Priority support
Go Pro

Enterprise

Custom

SDK access for AI apps with persistent memory.

Included Features
  • 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
Contact Us
Support

Questions & Answers

Common questions about memories.sh and how it works.