forget
Memory for your AI. It forgets the junk, keeps what matters.
On LongMemEval, the standard long-term-memory benchmark (full 500-question set, GPT-4o reader and judge):
| configuration | accuracy |
|---|---|
| GPT-4o full-context, no memory system (paper baseline) | 60.6% |
| Forget, fully local memory pipeline (Qwen 14B observer) | 76.2% |
| Forget, best configuration (GPT-4o observer) | 81.8% |
| GPT-4o oracle — evidence sessions handed to the reader (paper ceiling) | 87.0% |
Knowledge-update questions, where memory products usually fail: 92.3%
(best config). Per-question outputs and run configs are in
research/longmemeval/runs/.
Every LLM session starts from zero. Forget gives your AI a long-term memory that it actually maintains: an observation gate decides what is worth keeping at all, stale facts get retired non-destructively when new ones supersede them, and a consolidation loop keeps the store honest while you sleep.
The secret is in the name. Good memory is not storing everything — it is forgetting well.
- Forget re-explaining. Your AI remembers your decisions, preferences, and context across sessions and across tools.
- Forget asking. Memory arrives on its own: a context capsule opens each session, relevant memories are pushed mid-conversation, and a conflict alert fires if you're about to act on a fact that was later corrected.
- Forget context limits. Durable facts live outside the window and come back only when relevant.
- Forget cross-contamination. Working on two things? Each repo gets its own memory lane — the boundary is detected from where you run, never configured. Facts about you travel everywhere; the other project's plans stay home.
- Forget trusting us. Everything runs on your machine, in one SQLite file you own. End-to-end encrypted sync is next — built so that we cannot read what we carry. (Why this matters →)
- Forget nothing — that matters.
How it works
conversation ──▶ observation gate ──▶ durable facts (SQLite)
│ │
▼ ▼
"junk, skip it" search ◀── temporal rerank
│
consolidation loop ◀── supersede (non-destructive)
- Observation gate — extraction keeps only durable, useful facts. Questions, chit-chat, and assistant filler never become "memories".
- Supersede / confirm — when a fact changes, the old memory is demoted
and linked to its replacement, not deleted; when an unverified claim gets
its receipt,
confirm_memorypromotes it. History stays auditable. - Trust labels — every memory carries provenance (who vouches for it) and recall returns a permission: green (user-stated or tool-observed) = safe to act on, yellow (agent-inferred) = verify first, red (superseded) = reference only.
- Temporal rerank — recent facts outrank stale ones at recall time.
- Consolidation — a background pass merges, dedupes, and retires.
- Single file — everything lives in one SQLite database. No vector DB, no external services. Dependencies: FastAPI and httpx. That's it.
Quickstart
pip install 'forget-ai[server]'
forget-server install-service # login service (launchd/systemd) — survives reboots
# or, to try it in the foreground first:
forget-server run
forget-server status tells you what's true; forget-server uninstall-service
removes it. The server binds to localhost only. Data lives at
~/.forget/mem1.sqlite3, created 0600 in a private directory — set
MEM1_DB_PATH to put it elsewhere.
Store and recall:
curl -X POST localhost:8000/v1/memories/ \
-H 'Content-Type: application/json' \
-d '{"text": "We settled on Paddle for payments.", "user_id": "me"}'
curl -X POST localhost:8000/v1/memories/search/ \
-H 'Content-Type: application/json' \
-d '{"query": "what did we pick for payments?", "user_id": "me"}'
Connect your AI (MCP)
Forget speaks MCP over streamable HTTP at /mcp — the full surface includes
search_memories, add_memory, supersede_memory, confirm_memory, and
prepare_context_autopilot.
Connect the local server started above without hand-editing config files:
npx forget-connect
The CLI preserves other MCP servers, backs up existing files once, installs
the marked instruction layer (Claude Code / Codex / Claude Desktop), and —
for Claude Code — installs the hooks layer: a session-start context
capsule, per-turn push recall with conflict-zone alerts, a project-boundary
tagger that keeps each repo's memories in their own lane, and session capture
feeding a usage-outcome flywheel. Hooks are fail-open (a stopped server
never blocks a session), preserve any foreign hooks byte-for-byte, and are
skippable with --no-hooks. npx forget-connect doctor diagnoses config,
rules, hooks, and the MCP connection; disconnect reverses everything.
The legacy hosted service remains reachable with
npx forget-connect --hosted --user-id <memory-user> --app-id <project>
while it is phased out in favor of local-first.
Manual configuration — prefer the scoped endpoint
/mcp/<app>/http/<user> so each user × client pair keeps its own memory
pool (the connect CLI configures this for you; plain /mcp falls back to a
server-side default scope of your OS username and says so in each write):
Claude Code
{ "mcpServers": { "forget": { "type": "http", "url": "http://localhost:8000/mcp/forget/http/<your-username>" } } }
Codex (~/.codex/config.toml)
[mcp_servers.forget]
url = "http://localhost:8000/mcp/forget/http/<your-username>?profile=codex"
The Codex profile exposes only nine daily-use tools and replaces generic
autopilot with prepare_codex_context(query, client_workdir). It binds recall
to the detected repository plus global/legacy memory and fails closed when the
working directory cannot be resolved. forget-connect installs this profile
and its matching AGENTS.md rules only for Codex; Claude clients retain their
hook-based context path.
Claude Desktop (bridge via mcp-remote, claude_desktop_config.json)
{ "mcpServers": { "forget": { "command": "npx",
"args": ["-y", "mcp-remote@latest", "http://localhost:8000/mcp/forget/http/<your-username>"] } } }
Tip — make agents actually use it.
npx forget-connecthandles this: it installs both the instruction rules and the hooks that push memory into sessions unasked. If you configure manually instead, at minimum add to your global instruction file (~/.claude/CLAUDE.md,~/.codex/AGENTS.md): "ALWAYS callsearch_memoriesonforgetFIRST — before any shell command — whenever the user refers to their own past decisions."
Security
Forget is local-first: with no configuration it binds to localhost and accepts unauthenticated requests from loopback only (Host and Origin are checked; destructive tools are hidden from and refused to anonymous callers). To require a key, set:
FORGET_REQUIRE_AUTH=true
FORGET_API_KEY=<your key> # sent as "Authorization: Bearer <key>"
MEM1_REQUIRE_AUTH / MEM1_API_KEY are still read for existing installs;
FORGET_* wins when both are set. forget-server install-service writes a
random key to $FORGET_HOME/api-key (0600); forget-connect and the hooks send
it to the local server as a Bearer token. Auth is not required by default yet,
see docs/local-safety-auth.md. Behind a proxy, add its Host values with
MEM1_ALLOWED_HOSTS. npx forget-connect doctor warns when the server has a
key that clients do not send.
Compatibility
The REST surface and MCP tool names are API-compatible with mem0 and OpenMemory clients — point an existing client at Forget and it works.
Sync — end-to-end encrypted (in design)
The engine is local today. What's next is multi-device sync that cannot betray you: memories — and their embeddings — are encrypted on your device before they touch a server. The server stores ciphertext and nothing else. Not us, not an acquirer, not a subpoena.
The reasoning is in MANIFESTO.md; the key hierarchy, record format, and device-auth design are in docs/vault-design.md.
Building AI for therapy, law, or health? Your users' memories are your liability. We're taking design partners — founder@multi-turn.ai.
License
Apache-2.0.
Metadata
Release files for forget-ai 0.5.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| forget_ai-0.5.1.tar.gz | 691.2 kB | Without provenance | Details for forget_ai-0.5.1.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| forget_ai-0.5.1-py3-none-any.whl | Python 3 | none | any | Details for forget_ai-0.5.1-py3-none-any.whl |
Total release size: 1.1 MB
Release files / forget_ai-0.5.1.tar.gz
| Download URL | forget_ai-0.5.1.tar.gz |
|---|---|
| Size | 691.2 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
6e4196ae3aecbe18dc54871eeb4ddfef2833cf3c7f6db66136ba4a0db3a6586d
|
|
BLAKE2b-256 checksum How to use checksums |
88a6035472bf447fce597a0d4747cf4d8febabfa8d68c1241d27e16af195381d
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
forget-release/1 (urllib)
|
Release files / forget_ai-0.5.1-py3-none-any.whl
| Download URL | forget_ai-0.5.1-py3-none-any.whl |
|---|---|
| Size | 432.2 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
369f8093e7b45ed279c76d09d1576261bdc1417d5f131cb0ce5499b7fc6d9410
|
|
BLAKE2b-256 checksum How to use checksums |
f8aa4be0dcfe4e1120db6c56ef949a42507cbbe0d75119e2ab4e87d4eb937150
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
forget-release/1 (urllib)
|
Security for forget-ai 0.5.1
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.