Open-source, self-hosted memory for AI agents

Memory your AI can check.

Most AI memory keeps a few notes the model wrote about you. Throughline keeps the original records — your chats, email, calendar, notes and voice notes — in one database on your own machine. Any agent can then search them, count them and quote them back with a date and a source.

  • Runs on your machine
  • Works without any AI keys
  • Connects to agents over MCP
  • Free & open source (GPL-3.0)

The built-in web app shows every source on one timeline. All names and data on this page are made up.

Agent memory, explained

Three common ways AI “remembers” you, and where they fall short.

If you use an assistant like Grok, Muse or a Hermes agent, its memory almost certainly works like one of these. Each is useful. Each has the same blind spot.

Built into the assistant

Saved memories

The assistant writes short notes about you (“prefers window seats”, “has a dog called Biscuit”) and adds them to future chats.

Good at
No setup. Remembers preferences and the big facts.
Falls short
It only has what it chose to write down. Exact dates and wording are usually gone, and the memory stays inside one app.
Agent frameworks

Memory files

The agent keeps a Markdown file, often called MEMORY.md, edits it as it goes, and reads it at the start of every session.

Good at
Easy to read and fix by hand. You own the file.
Falls short
It has to stay small enough for the prompt. Rules like “don't duplicate” or “keep this private” are only instructions the model has to remember.
Knowledge bases like GBrain

Agent-written wikis

A model writes and maintains linked pages about people, projects and events, and the agent searches those pages.

Good at
A rich, readable picture of your world, good for big-picture questions.
Falls short
Pages are only as good as the model's upkeep. Without checks they drift, and counts and dates depend on what was written.

The blind spot is the same in all three: the memory is the model's notes about your life. Throughline keeps the record itself, and builds the notes on top, each one linking back to its source.

How it works

The record at the bottom. Everything else is built on it.

Connectors bring your data into one PostgreSQL database. Throughline builds the useful layers on top, and agents reach all of it through a small set of tools.

  1. 01

    Nothing is overwritten

    Every message, email and event is stored as it arrived. An edit becomes a new version and the old one is kept. Corrections are saved as notes next to the record, not over it.

  2. 02

    Summaries cite their sources

    People, pages and tables are built from the records and point back to them. Every result is marked as an original record, a summary or a model's guess.

  3. 03

    Rules live in the database

    Duplicate protection, audit logs and privacy are enforced by PostgreSQL itself. A prompt can't talk its way past them.

Your agentsMCP, HTTP, skill file or Python/Go/Rust SDK
findtimelineorientpersonread-only SQL
Built on topeach item links to its sources
PeopleLensesPagesClassifiersLinks
The recordPostgreSQL, never overwritten
messagesemailcalendarvoice transcriptsphotosnoteshealthlocationAI chats
Connectorsserver or desktop app
SignaliMessageIMAPCalDAVObsidianClaude Code+ many more
What changes in practice

Questions summary memory struggles with.

Pick a question to see which tools the agent uses and what comes back.

Question

How many times have my migraines come up this year?

  1. 1timeline searches every message for “migraine”, “headache” and “head is killing me”, not just the top results.
  2. 2Matches are grouped into episodes: a bad evening with twelve messages counts once.
AnswerSeven separate episodes since January, most recently on October 3. Each one is listed with its date and the messages it came from 7 episodes

A summary might say “occasionally”. A plain search would count every message about it.

What's inside

The layers on top of the record.

Each layer is generated from your records, points back to them, and can be corrected by you.

People

One person, every account.

The same friend on Signal, email and in your voice notes becomes one person. Agents get a brief for anyone: how you know them, when you last talked, and what's still open.

  • Matches you're not sure of stay unconfirmed until you approve them.
  • Merges and splits can always be undone.
Lenses and Pages

Notes that keep themselves up to date.

A Lens is a question you ask once, like “every book a friend recommended”. Throughline keeps a table of answers up to date as messages arrive, each row linked to the messages behind it. Pages are wiki pages for people, days, events and projects: a summary on top and a dated timeline below.

  • Every citation must point to a record the AI was shown, and quotes must really appear in it.
  • Fix a row and your fix is locked. The Lens learns from it.
  • Choose how often they update, with per-run and monthly spending caps.
  • Inspired by GBrain's compiled wiki pattern, and every page can also be saved as Markdown files.
Classifiers

Tag the noise. Keep the record.

Classifiers label messages automatically, for example the TV talking in the background of a voice recording, a newsletter, or an email that needs a reply. Labels sit next to the record and never change it.

  • Write one as a yes-or-no question for an AI, or let your agent write a small Python check that goes live once you approve it.
  • When you overrule one, your decision sticks.
Coverage

It knows what it's missing.

Throughline tracks which sources synced and when. If a connector goes quiet, it tells you, and agents say “not found in the sources I have” instead of “that never happened”.

  • Alerts when a source fails, goes silent or falls behind.
  • Encrypted backups with automatic restore tests and partial restore.
Privacy

Each agent sees only what you allow.

Give a work agent your work email and calendar, and nothing else. The database enforces it, so even a raw SQL query from that agent can't reach anything else.

  • A separate key for each agent. Limit it to the sources and threads you choose, and revoke it on its own.
  • Sensitive labels are hidden by default. Medical, financial and intimate content stays out unless you grant it, and grants can expire.
  • Out of the box, nothing leaves your machine. AI providers are optional, only hosts you allow can be reached, and labelled content can be kept away from cloud models.
Personal assistantOwner-approved, broad access
Messages Email Calendar Voice notes Health
Work agentWork email and calendar only
Work email Calendar Messages Health Anything labelled medical

Hidden sources don't show up in searches, counts or summaries built from them. To the work agent they simply don't exist.

Side by side

How the approaches compare.

These describe the typical design of each approach, not any one product. Many tools mix them.

Question Saved memoriesbuilt into assistants Memory filesMEMORY.md and similar Agent-written wikiGBrain and similar Throughline
Keeps the original messages Notes only Notes only Pages, plus whatever was imported Every record, never overwritten
Answers point to a source Rarely If the agent wrote one down Links between pages Date and source on every result
“How many times?” Estimate Only if logged Depends on the pages Full search, grouped into episodes
Says when data is missing No No Usually not Tracks coverage gaps per source
Privacy between agents Set by the vendor Instructions in a prompt Instructions in a prompt Enforced by the database
Readable summaries Short notes The file itself Rich linked pages Pages and Lenses, with citations
Setup None Minimal Moderate A Docker install and connectors

Already using GBrain or a Hermes agent? Throughline can import a GBrain database and Hermes conversation history read-only, and turn GBrain pages into pages that cite the imported records.

Connectors

Bring in the places your life actually happens.

Server connectors run alongside Throughline. Apps that only live on your computer sync through a small desktop companion for Windows, macOS and Linux.

Code and AI chats

Claude Code, Codex, Cursor, Aider, T3 Code, Open WebUI, LM Studio, GitHub

Messages

iMessage, Android SMS, Signal, Telegram, Beeper

Email and calendar

IMAP, Gmail, CalDAV and ICS feeds, Google Calendar, Outlook and Microsoft 365

Notes and browsing

Obsidian, Logseq and Markdown folders, Apple Notes, Notion, browser history, Readwise

Voice and meetings

Audio transcripts, Wave, Granola, Zoom

Health, location and activity

Apple Health, Oura, Google Timeline, OwnTracks and other GPS loggers, Home Assistant, ActivityWatch

Photos, media and reading

Immich, Spotify, Last.fm, ListenBrainz, Jellyfin, Plex, YouTube, Trakt, Letterboxd, Goodreads

Social and money

Bluesky, Mastodon, Reddit, Instagram, SimpleFIN

Build your own

A connector is any program that speaks a small HTTP contract. Templates for Python and Node.js are included.

Get started

Up and running in one command.

The installer sets up PostgreSQL, the API and the background jobs with Docker, generates passwords, and prints your owner key once.

  1. Install

    Clone the GitHub repository and run the installer. Running it again later never replaces passwords or keys, and updates snapshot the database first and roll back on failure.

  2. Add sources

    Finish setup in your browser: pick connectors (with optional Infisical secret links), pair the desktop companion, and choose which Lenses and Pages to keep.

  3. Connect your agents

    Create a key for each agent and add Throughline over MCP, or hand any agent the included skill file and the HTTP API.

Terminal
# 1. Clone the repo and install Postgres, the API and jobs
$ git clone https://github.com/joey12725/throughline.git
$ cd throughline && scripts/install.sh

# 2. Finish setup in your browser:
#    http://127.0.0.1:8000/ui/welcome

# 3. Connect an agent with the key you made for it
$ claude mcp add --transport http throughline \
    http://127.0.0.1:8000/v1/mcp \
    --header "Authorization: Bearer $AGENT_TOKEN"
Questions

Good to know.

Do I need an OpenAI or Anthropic key?

No. Storage, keyword search, timelines, people, coverage and SQL all work with no AI provider and no outbound network calls. Meaning-based search, Lenses, Pages and AI classifiers are optional. They can use a hosted provider or a local model through any OpenAI-compatible server such as Ollama or LM Studio, and you can cap the monthly spend.

Does it replace my assistant's memory?

It sits underneath it. Your assistant can keep its own notes. Throughline gives it a place to check them against what actually happened, and to look up anything it never wrote down.

Which agents can use it?

Anything that speaks MCP — such as Claude Code, Claude Desktop, Cursor, Codex and Hermes — can connect directly. Any other agent can use the HTTP API with the included skill file, and scripts or pipelines can use the Python, Go and Rust clients. Hosted chat apps that don't support external tools can't connect directly.

Who is it for?

One person's life per install, run on hardware you control. It's built for people comfortable running a Docker app, and it isn't meant to be exposed directly to the internet. Use a VPN or an HTTPS reverse proxy for remote access.

Is it available now?

Yes. Throughline is free and open source (GPL-3.0-or-later) on GitHub, including the core server, web UI, desktop companion, SDKs and connectors.