Keep

Open source · Local-first · Research preview

Memory your AI can't quietly rewrite.

One shared memory for all your AI assistants, built on systems, security, and evaluation fundamentals — not another prompt wrapper over a vector database.

Get Keep on GitHub

Paste the prompt into Claude Code, Codex, or Copilot CLI to install Keep. Setup docs

Drag the date. See what was true.

Pick a topic and slide through time to see how Keep separates what's true today from what changed.

  1. 1Pick a topic
  2. 2Drag the date
  3. 3See what was true

Example data

Ask as of2026-05-01

On 2026-05-01, what was the pro plan price?

Pro plan is $29/mo

Changed on 2026-06-03. Today: Pro plan is $39/mo. Old version still kept.

Topic
JanFebMarAprMayJunJulAugSepOctNov
Pro plan is $29/mo
Pro plan is $39/mo
Notes live in Notion
Notes in Google Docs
Uses Node 22
Uses Node 26
  • True on this date
  • Replaced later. Still stored.
  • Not recorded yet
See the request an agent would send
POST /v1/knowledge/search
{ "query": "Pro plan price", "valid_at": "2026-05-01" }

200  Pro plan is $29/mo
     valid 2026-01-20 → 2026-06-03
     SUPERSEDED on 2026-06-03. Still stored.
     today: Pro plan is $39/mo

Example call to knowledge_search. Sample data from an example workspace.

Keep is a research preview. Built in Rust with honest benchmarks and no cherry-picked numbers.

Latest releaseGitHub starsCI statusLicence: Apache-2.0

Works with

  • Claude Code
  • Claude Desktop
  • Codex
  • Copilot CLI
  • OpenCode
  • Cursor
  • Local MCP apps

Stores in

  • In memory
  • Postgres + pgvector
  • Postgres + Qdrant

How it works

Your AI tools share one local vault: versioned notes on top, timestamped facts below.

What's inside

Systems, security, and evaluation fundamentals first — two distinct memory primitives, one local Rust server, and an honest status.

Memory

Curated notes, not vector soup

Deterministic, plain Markdown notes loaded at the start of every chat — separate from raw history.

# project-notes- Write replies in short, plain English- Pro plan is $29/mo- Uses Node 22
# project-notes- Write replies in short, plain English- Pro plan is $29/mo- Uses Node 22- Uses Node 26
# project-notes- Write replies in short, plain English- Pro plan is $29/mo- Pro plan is $39/mo- Uses Node 26- Never share customer emails
  • No silent overwrites. Compare-and-swap rejects stale edits; non-overlapping changes merge safely.
  • Lossless history & safe undo. Up to 100 revisions per file, saved byte for byte with stable entry IDs.
  • Prompt-injection hardened. Rendered as untrusted single-line JSON; exports block AGENTS.md and CLAUDE.md by default.
  • Real forgetting. Erases across revisions, trash, and receipts with a backup-replayable erasure journal.
How Memory works

Knowledge

Bi-temporal facts with receipts

Append-only episodes and facts that track when something was true, when Keep learned it, and the exact source span.

  • Two kinds of time. Query valid time (what was true then) or known time (what Keep knew then).
  • Deterministic contradictions. Explicit active, superseded, and disputed states — never silent LLM deletes.
  • Permission-safe retrieval. Partition checks run before ranking, and source allowlists replay supersession.
  • Exact citations. Every fact links back to its source episode and character span.
How Knowledge works

Connect

One local hub, built for real ops

Share one memory across Claude, Codex, Copilot, and Cursor with production-minded controls.

  • Local MCP + HTTP. Works with any local MCP client, HTTP scripts, and the keep-rs Rust SDK.
  • Scoped auth & TLS. Constant-time scoped tokens, private to 127.0.0.1 by default, TLS for remote DBs.
  • Bounded local embeddings. Configurable ONNX CPU/thread caps and content-addressed vector reuse.
Setup for each agent

Deploy

Runs where you want

On your laptop or your own server. No hosted service.

  • In memoryZero setup. Memory clears on restart.keep --user me serve &
  • With PostgresSurvives restarts. Uses pgvector or Qdrant.docker compose --profile postgres-vector up -d
  • Docker ComposeFull stack using the prebuilt ghcr.io/tulipfarm/keep image.deploy/compose.yaml
Run with Docker Compose

Status

Not passed yet

Evaluation fundamentals first — no cherry-picked benchmark numbers before beating simpler baselines.

  • Preregistered manifests. SHA-256-pinned runs, sealed holdouts, and equal-budget baselines (bm25-6k, dense-6k).
  • Calibrated & explicit. Length-only fit masks, calibrated judges, and failed answers never dropped from denominators.
  • No claims yet. Works today, but our runs haven't passed our own gate yet.
Development runs
Not passed
Sealed holdout
Not run
Published results
None
Read the methodology

Install in one step

Paste one sentence into an AI coding assistant, or run the install script. Works on macOS and Linux.

Ask your agent

Paste into Claude Code, Codex, Copilot CLI, or OpenCode. It installs Keep and connects your apps.

Read https://keep.tulipfarm.ai/install.md and install Keep for me.

Or run the script

Picks free ports, installs a background service (launchd / systemd), and adds ~/.keep/inspect.sh.

curl -fsSL https://keep.tulipfarm.ai/install.sh | sh

Questions

What is Keep?

Keep is a shared memory for your AI assistants. It stores short notes your AI reads in every chat, plus a record of facts with their sources and dates, so you can see what changed and when. It is open source, written in Rust, connects to AI apps over MCP, and is a research preview.

Do I need to be a developer to use Keep?

Not to use it, but setup happens on the command line today. The easiest way is to paste the setup prompt into an AI coding assistant such as Claude Code and let it install Keep for you. After that, your connected AI apps use Keep on their own.

What is MCP?

MCP (Model Context Protocol) is an open standard that lets AI apps such as Claude, Codex and Cursor connect to tools and data. Keep is one of those tools, so any MCP app that can run a local server on your computer can use it.

How is Keep different from RAG or a vector database?

Most memory tools flatten everything into one vector store and overwrite facts in place. Keep separates curated, versioned Markdown standing state (Memory) from append-only episodic history (Knowledge). Facts are bi-temporal (valid time and known time), resolve contradictions deterministically into active, superseded, or disputed states, and carry exact character-span citations back to their source.

How does Keep handle prompt injection and security?

Memory context is wrapped as untrusted data in labelled single-line JSON blocks so stored notes cannot pose as prompt instructions, and exports refuse instruction filenames like AGENTS.md and CLAUDE.md by default. Retrieval and the book index enforce partition permissions before ranking, tokens are verified in constant time, and remote Postgres or Qdrant connections require TLS by default.

Which agents and models does Keep work with?

Claude Code, Claude Desktop, Codex, Copilot CLI, OpenCode, Cursor, and any MCP client that can start a stdio server. The agentic installer detects your apps, connects the ones you want, and offers to import existing memories. Keep sets no chat model for you. Your agent keeps its own.

Can I run Keep myself?

Yes. Paste the install.md prompt into your coding agent, or run install.sh yourself. Both set up Keep locally or connect to a remote server, pick free ports automatically, and install a background service (launchd / systemd). Remove it anytime with uninstall.md or uninstall.sh.

Is Keep open source?

Yes. Keep is Apache-2.0 and the code is public on GitHub.

How much does Keep cost?

Keep is open source and you run it yourself. The repo states no hosted service and no price.

Is Keep ready for production?

No. Keep is a research preview and the server is an alpha. The benchmark that decides whether Keep is worth using is not finished. Use it where losing a note is acceptable.

Does Keep send my data to a model provider?

Not by default. Out of the box, Keep extracts facts with local rules and embeds Knowledge with a local model downloaded once on first start, so nothing leaves your machine. You can optionally configure an OpenAI-compatible model endpoint for model-backed extraction and summaries.

Does Keep ever delete anything?

Only when you ask. Edits, undos and changed facts become new revisions or fact versions. Old revisions are kept for up to 30 days, and forgetting erases one or many sources for good and returns a signed receipt for each.