Stop Re-Teaching Agents

The unified agent memory layer.

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
memories.sh - One layer for memories, skills, and rules across any agent | Product Hunt
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
v0
GitHub Copilot
Windsurf
Gemini
Cline
Roo
OpenCode
Blackbox CLI
Codex
Amp
Kilo
Trae
Goose
OpenClaw
Antigravity
Kiro
Droid
Claude Code
Cursor
v0
GitHub Copilot
Windsurf
Gemini
Cline
Roo
OpenCode
Blackbox CLI
Codex
Amp
Kilo
Trae
Goose
OpenClaw
Antigravity
Kiro
Droid
Claude Code
Cursor
v0
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

CLI uses global + git project scopes with path rules. SDK uses tenantId as the security/database boundary, userId as end-user scope, and projectId as an optional repo filter.

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 and dev teams.

The SDK connects your AI apps to memories.sh cloud—giving every prompt the right rules and context. memoriesMiddleware() is all it takes.

Start in Dashboard → AI SDK Projects to create your API key and project isolation (`tenantId`). Then add middleware and ship. The CLI and MCP handle local-first storage and agent access, while the SDK handles your app runtime.

Read the SDK docs
API Contract

Production API that actually ships fast.

One predictable SDK surface for retrieval, writes, graph rollout, and diagnostics. Designed for strict clients and fast incident debugging. `tenantId` is the database boundary, `userId` is end-user scope, and `projectId` is an optional repo context filter. Default SDK transport is HTTP API; MCP transport is optional.

POST/api/sdk/v1/context/get

Pull rules + memories with scoped routing and graph-aware retrieval strategy controls.

Request

{  "query": "how do we ship rollout safely?",  "strategy": "hybrid_graph",  "graphDepth": 1,  "scope": {    "tenantId": "webrenew-prod",    "userId": "charles@webrenew.io",    "projectId": "github.com/webrenew/memories"  }}

Response

{  "ok": true,  "data": {    "rules": [...],    "memories": [...],    "trace": {      "strategy": "hybrid_graph",      "rolloutMode": "canary"    }  },  "error": null,  "meta": { "endpoint": "/api/sdk/v1/context/get" }}

Single Envelope

ok / data / error / meta on every SDK endpoint.

Request Tracing

Every response includes meta.requestId for support and logs.

Typed Errors

Stable error.type and error.code for deterministic client handling.

Versioned Surface

Breaking changes move to /api/sdk/v2/*, not v1 drift.

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
v0

v0

Vercel's AI frontend builder. Connects to memories.sh through MCP for live context.

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

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

View Docs
Pricing

Simple, Transparent Pricing

Start free, upgrade when you need cloud sync, and scale to team billing with metered AI SDK project routing.

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

Individual

$15/month

Hosted memory for solo builders shipping with cloud sync and dashboard access.

Included Features
  • Everything in Free
  • Cloud backup and sync
  • Access from any device
  • Web dashboard
  • Server-side semantic recall
  • Priority support
Choose Individual
Popular

Team Seat

$25/month

Per-seat collaboration plan for organizations that need shared workspaces.

Included Features
  • Everything in Individual
  • Organization owner-managed billing
  • Per-seat pricing
  • Team member invites and workspace switching
  • Priority support
Choose Team

Growth

$299/month

For production AI SDK apps with metered project routing and overage pricing.

Included Features
  • Everything in Team Seat
  • @memories.sh/ai-sdk package
  • memoriesMiddleware() for AI SDK
  • 500 AI SDK projects included / month
  • $0.05 per additional project
  • Tenant routing via `tenantId` + end-user scope `userId`
Choose Growth
Support

Questions & Answers

Common questions about memories.sh and how it works.