A reference architecture built on Cloudflare AI Search. Store decisions, patterns, and context in R2. Recall them with hybrid search. Deploy to your own account.
npx create-ai-search-memory
Requires Node.js 18+. The setup wizard installs dependencies, deploys the Worker, sets secrets, and configures your MCP client.
Or clone manually:
git clone https://github.com/msdbcardoso/memory-ledger.git cd memory-ledger npm run setup
Installs dependencies, builds the dashboard, and deploys the Worker. R2 bucket and AI binding are provisioned automatically.
Detects your wrangler login, generates an auth token, and sets secrets automatically.
Detects OpenCode, Claude Desktop, or Cursor and writes the MCP config with your Worker URL and token.
Your agent can save and recall memories immediately. Open the dashboard at your Worker URL to browse and search.
# You get: Dashboard https://<your-worker>.workers.dev MCP https://<your-worker>.workers.dev/mcp API https://<your-worker>.workers.dev/api/memories
memory_saveStore with type, scope, tags, metadata
memory_recallSemantic search
memory_askAI answer from memories
memory_listList by scope
memory_getFetch by ID
memory_deleteRemove by ID
memory_clearWipe a scope
/rememberSave something to memory
/recallSearch memories by meaning
/ask-memoryQuestion answered from memories
/forgetDelete a memory by ID
/memoriesList all stored memories
POST /api/memories Save GET /api/memories/search?q=... Recall POST /api/memories/ask AI answer GET /api/memories List GET /api/memories/:id Get DELETE /api/memories/:id Delete DELETE /api/memories Clear GET /api/policy Save policy GET /api/status Status GET /health Health (public)
Browse, search, and manage memories from your browser. Switch between list and chronicle views. Filter by scope, type, and importance.
Semantic search across all memories
Filter by scope, type, importance
Newspaper broadsheet grouped by day
Files, branch, repo on each card
This is a reference architecture showing what you can build with Cloudflare AI Search. Questions? Join the Cloudflare Discord or check the docs.