Repository

afairai/afair

afair

The open-source, self-organizing memory for all your AI tools. Single-tenant, yours, over MCP.

6stars

Open github.com

afairai/afair

afair

Open-source, self-organizing memory layer for AI tools. Single-tenant, append-only SQLite vault with entity graph, salience scoring, and conflict resolution. Exposes MCP verbs: remember, recall, observe.

Visit project

Show me a random project

First shared
Jul 1, 2026
HN activity
10

Show HN@izaxJul 1, 2026

Show HN: Afair – Self-organizing memory shared across your AI tools

afair has been the one tool I can't work without for months, and I just open-sourced it. It gives every AI you use one shared memory that stays yours. Where it comes from: I use a different AI for almost everything now, building projects, researching health questions, whatever's in front of me, and I switch harnesses constantly (Claude Code, Codex, Cursor, Claude.ai). None of them share anything, so I kept re-explaining myself from scratch every session. afair is the fix: a memory layer that lives in a vault you own and connects to every tool over MCP. Tell one, the rest know. The part I went deep on is that it structures itself. Every AI has memory now, but almost all of it just stores what you say and pulls it back later. afair keeps going: a set of background ("cold-path") agents read your activity and derive the shape of it, extract entities, build an entity graph, score salience, resolve conflicts, consolidate what matters, and let the rest decay, roughly the way memory works in a brain. You never file or tag anything. Underneath, the substrate is append-only and content-addressed (SQLite + FTS5 + sqlite-vec, encrypted), so nothing is ever rewritten. New interpretations are versioned views over the same immutable log, so you can always re-derive them. It runs single-tenant (your own instance), you can export everything on demand, and it exposes three frozen MCP verbs: remember / recall / observe. AGPLv3, built in Germany. It's vendor-neutral through litellm, so it works with any model. If you already pay for GitHub Copilot you can use that as the model with no separate API key. Local setup is about two minutes: clone, uv sync, uv run python -m afair, point your MCP client at localhost. There's a one-command installer for Claude Code, Codex, Cursor, Copilot, Gemini CLI, Windsurf and others, plus a one-line instruction snippet for CLAUDE.md / AGENTS.md so your tools reach for it on their own. It's early and not perfect. The honest hard part is keeping the interpreted layer trustworthy as it grows: sharper retrieval, the entity graph, conflict resolution, the cold-path agents. If that's your kind of problem the code is right there. I'd love feedback, and I'll actually read and review PRs. Repo: https://github.com/afairai/afair

Community

Hacker News discussion

Loading the thread…