coldframe
Local-first memory for your AI agent. One SQLite file you own — offline, no API key. Plugs straight into Claude Code.
README
<p align="center"> <img src="assets/logo.svg" width="96" alt="coldframe logo"> </p>
<h1 align="center">coldframe</h1>
<p align="center"> <b>Local-first memory for your AI agent.</b><br> One SQLite file you own — offline, no API key. Plugs straight into Claude Code. </p>
<p align="center"> <a href="https://github.com/coldzero94/cold-frame/actions/workflows/ci.yml"><img src="https://github.com/coldzero94/cold-frame/actions/workflows/ci.yml/badge.svg" alt="CI"></a> <img src="https://img.shields.io/badge/python-3.11%2B-blue" alt="Python 3.11+"> <img src="https://img.shields.io/badge/license-Apache--2.0-green" alt="Apache-2.0"> <img src="https://img.shields.io/badge/offline-no%20API%20key-0aa" alt="offline, no API key"> </p>
Your agent forgets everything between sessions. coldframe gives it a memory that lives in one
local file (~/.cold-frame/memory.db) — with full-text + vector search, version history, automatic
forgetting, and the ability to rewind what was true when. No server, no account, no key.
Quickstart
In Claude Code — one install, then it remembers automatically:
claude plugin marketplace add coldzero94/cold-frame
claude plugin install coldframe
Recall is injected at the start of every session; durable facts you state are captured as you work (using the Claude you already pay for — no extra key or cost). Nothing to configure.
On the command line — offline, instant:
cold-frame add "I prefer dark roast coffee."
cold-frame search "what coffee do I like?"
cold-frame doctor # health: counts, integrity, embedder
(Install: uv tool install "cold-frame[mcp]" · Homebrew · or a single binary — see
packaging/. A PyPI release is pending name clearance.)
Why coldframe
- 🗃️ One file you own — everything is
~/.cold-frame/memory.db. Copy it to back up, delete it to forget. No server, no account. - 🔌 Offline by default —
add→searchworks with zero keys, zero network. - 🤖 Automatic in Claude Code — recalls what matters, captures durable facts as you work — and the engine keeps it lean instead of hoarding everything.
- ⏪ Rewindable belief — facts are corrected and superseded, never silently overwritten. Ask "what did I believe back in March?" and get the answer as of that date.
How the memory works
- Recall — a SessionStart hook injects your strongest durable memories; a UserPromptSubmit hook adds ones relevant to the current prompt (gated so it adds signal, not noise).
- Capture — Claude itself extracts durable facts and calls
add_memoryduring your session (a bundled skill), with a keyless deterministic backstop so nothing is missed; dedup merges them. - Stays lean — every ~20 facts a consolidation pass decays, rolls up, and archives the weakest (per-scope caps), so the active set never grows without bound. Forgetting archives — nothing is truly deleted, and obvious secrets (API keys, tokens, private keys) are blocked before they ever touch disk — though PII redaction and at-rest encryption are not yet automatic (planned).
- Per-project + global — facts are tagged by git project; clear personal facts go to a global tier recalled everywhere.
It's a standard stdio MCP server, so it works with any MCP client — not just Claude Code.
Use it as a library
from datetime import UTC, datetime
from cold_frame import Memory, Scope
mem = Memory() # ~/.cold-frame/memory.db, offline
mem.add("I switched jobs to Anthropic in 2026.", scope=Scope(user_id="coby"))
print(mem.search("where do I work?").hits[0].note.content)
past = mem.search("where do I work?", as_of=datetime(2026, 3, 1, tzinfo=UTC)) # rewind
See and edit your memory anytime: cold-frame ui — a local dashboard at 127.0.0.1:27182 where
you can browse facts and pin / correct / forget them (writes are CSRF-guarded and localhost-only).
More
- Install & distribution —
packaging/(plugin, Homebrew, standalone binary) - Design & spec —
docs/(the spec, decisions, and the analysis of mem0 / Letta / Zep-Graphiti / Cognee / MemOS / A-MEM / LangMem that informed it) - Back up / move —
cold-frame export backup.dbthenimportit elsewhere.
Status
The engine, CLI, MCP server, Claude Code plugin, secret-blocking + grep-verified hard-purge, and a
local web UI are built and tested end-to-end on a fully offline gate (ruff + mypy --strict +
~340 deterministic mock-LLM tests green). Planned: full PII redaction + crypto-shred purge, a write
web UI, event-log replay import, and a PyPI release (the name is pending trademark/registry clearance).
Apache-2.0.
Recommended Servers
playwright-mcp
A Model Context Protocol server that enables LLMs to interact with web pages through structured accessibility snapshots without requiring vision models or screenshots.
Magic Component Platform (MCP)
An AI-powered tool that generates modern UI components from natural language descriptions, integrating with popular IDEs to streamline UI development workflow.
Audiense Insights MCP Server
Enables interaction with Audiense Insights accounts via the Model Context Protocol, facilitating the extraction and analysis of marketing insights and audience data including demographics, behavior, and influencer engagement.
VeyraX MCP
Single MCP tool to connect all your favorite tools: Gmail, Calendar and 40 more.
graphlit-mcp-server
The Model Context Protocol (MCP) Server enables integration between MCP clients and the Graphlit service. Ingest anything from Slack to Gmail to podcast feeds, in addition to web crawling, into a Graphlit project - and then retrieve relevant contents from the MCP client.
Kagi MCP Server
An MCP server that integrates Kagi search capabilities with Claude AI, enabling Claude to perform real-time web searches when answering questions that require up-to-date information.
E2B
Using MCP to run code via e2b.
Neon Database
MCP server for interacting with Neon Management API and databases
Exa Search
A Model Context Protocol (MCP) server lets AI assistants like Claude use the Exa AI Search API for web searches. This setup allows AI models to get real-time web information in a safe and controlled way.
Qdrant Server
This repository is an example of how to create a MCP server for Qdrant, a vector search engine.