Local-First & Privacy

Local AI Agent Memory: Keep Your AI's Memory On Your Own Machine

One machine you own is enough

The common objection to local AI is that you need a data centre and a research budget. You don't. Local AI agent memory — the agent's record living on hardware you control — is a modest stack, and it's been genuinely achievable for a while. The model can be small. The store can be a folder. The point isn't raw power; it's that the thing your agent remembers about you lives where you can see it, own it, and keep it.

This page is about the building of it: what the stack is, how a session uses it, and what you're trading when you go local.

The stack, in four pieces

Local agent memory is four components, and none of them are exotic:

That's the whole architecture. For a deeper look at how these pieces relate — and the mechanics of window, store, and retrieval — how does AI memory work is the underlying explainer, and the memory layer for AI agents shows how the same components serve any agent, not just a local one.

What a session actually does

The clearest way to see local memory is to watch one session use it:

  1. Startup. The agent reads the store — the standing facts about you, the recent thread, the current state of whatever you're working on.
  2. Work. It reasons over the conversation and retrieves specific records when they're relevant, the way you'd flip back through a notebook.
  3. Shutdown. It writes back: what changed, what was decided, what's next — so the next session starts where this one ended.

Three steps, no cloud account, no subscription, no vendor in the loop. This is the same lifecycle that powers agents that persist across sessions, running on hardware you own.

Why local changes the deal

Putting the record on your disk changes more than privacy — it changes the relationship:

For the concept behind these benefits — and why "local-first" doesn't mean giving up cloud brains — what local-first AI memory means is the companion read.

The honest trade-offs

Local isn't free, and pretending otherwise is how people get burned:

That trade is worth making when the record is intimate — which is why the privacy-first argument, made properly, lives in does AI use local memory and why the evaluator's checklist is in persistent memory, local-first.

The shape of things coming

As agents get more personal, the sensible architecture is splitting: the thinking can happen anywhere — frontier cloud models when you need power, small local ones for everyday privacy — but the memory, the thing uniquely yours, lives where you control it. That split is what makes an AI genuinely yours: not a rented record behind a subscription, but a store you own outright, on a machine you own.

Using Codex? Keep the thread through compaction.

Seamless Context saves a bounded summary of your whole Codex conversation just before each compaction and gives it back afterwards, once. In our tests on GPT-5.6 Sol it brought back all 11 planted facts after six compactions; the same chat without it kept none. Where Codex already remembers well (GPT-5.6 Terra and Luna) it adds little. Windows, Codex Desktop.