I built an end-to-end encrypted AI memory vault in 8 hours with AI agents — here's what was hard
DEV Community

I built an end-to-end encrypted AI memory vault in 8 hours with AI agents - here's what was hard

On November 28, 2026 I launched ownmem, an encrypted memory vault that several AIs can share. It went from an unregistered domain to four live sites in about 8 hours.

I wrote almost none of the code myself: several AI agents did, working in parallel, while I set direction and checked their work. "Built in 8 hours with AI" is easy to say and easy to oversell, so this post is about the parts that were actually hard, and the honest numbers so far.

Why I built it

For most of 2026 I've been running 30+ AI agents on 10 machines that share one memory through an open-source setup called agent-memory-nest. The main thing I learned: the most valuable part of an AI isn't the model, it's how well it knows you. And every AI keeps that knowledge inside its own walls.

ownmem is the version of that idea for people who don't want git and a terminal: your memory as Markdown files, encrypted in your browser, usable from ChatGPT, Claude, Claude Code, Codex and Cursor (over MCP), and from a web chat with models from several providers.

What shipped on day one

  • A landing page in English and Chinese, with structured data and llms.txt
  • A web chat with 14+ models that searches your memory before answering
  • Docs, with a price table generated from the app's live config
  • A remote MCP server that Claude Code, Codex and ChatGPT connect to over OAuth
  • Zero-knowledge encryption: passphrase and keys stay in the browser, the server stores ciphertext
  • Payments through a Merchant of Record, plus terms, privacy policy and a support inbox

The one rule that made 8 hours possible

If open source can do it, don't hand-roll it. Only libraries that are commercially licensed (MIT, Apache-2.0, BSD), maintained in the last six months and widely used. And for anything security-related, standard primitives only, no invented crypto.

The stack is mostly assembly:

  • Next.js with OpenNext on Cloudflare Workers, D1 with Drizzle
  • Better Auth
  • Vercel AI SDK with OpenRouter
  • Orama for in-browser search
  • WebCrypto (AES-256-GCM, HKDF), Argon2id via hash-wasm, BIP39 recovery phrases via @scure/bip39
  • Cloudflare's agents SDK for MCP

The fastest code is the code you don't write, and that goes double when an agent is the one writing it.

Hard part 1: zero-knowledge vs. MCP

This was the most interesting design problem. If the server can't decrypt your memory, how does Claude Code read it over MCP? The answer: the server doesn't read it, your browser does.

An MCP tool call (say memory_search) is relayed to your open, unlocked ownmem tab. The tab decrypts and searches locally, and only the result, a few matching lines or the file the agent asked for, goes back through the server to the agent. The server relays it in memory and logs only tool names and paths.

The trade-off is real: the tab has to be open. For people who want agents to work with the browser closed, there's an opt-in Agent share for chosen folders. Those folders are kept in a copy the server can read, so they're not zero-knowledge, and the app says that plainly instead of hiding it in a footnote.

Hard part 2: stating the privacy boundary honestly

"End-to-end encrypted AI" is a phrase that invites overclaiming, because a model has to read text to answer you. So the precise version, which is what the site says:

  • Stored: your memories and chat history are stored end-to-end encrypted. Keys are derived in your browser (Argon2id → HKDF); the vault is encrypted with AES-256-GCM before upload. The server holds ciphertext.
  • In transit to a model: when you chat, the current conversation (plus the memory snippets the assistant looked up) passes through our server to the model. We don't store or log it, but the model provider does process it under its own policy.

Finding wording that was both short and true took longer than some features. "Which sentence is actually true" turned out to be one of the main jobs of a one-person product.

Hard part 3: parallel agents step on each other

Running agents in parallel on the landing page, chat, docs, MCP server and legal pages is what made one day enough. It also nearly cost me a feature: at deploy time, one agent came close to overwriting another's freshly shipped work.

The fix became a one-line rule in every repo's AGENT.md: pull and merge main, and run the full test suite, before every deploy. A short rule that agents actually follow beats a long prompt they half-follow.

Hard part 4: "done" isn't done

Agents will tell you a task is complete. Only clicking through every page tells you whether it works. My job was direction (what to build first), rules, calls (domain, logo, prices) and acceptance. Acceptance is the one I'd never delegate.

The honest numbers

Two days after launch:

  • 1 external signup
  • 0 paying users

That's it. Shipping in 8 hours was the easy part; getting the first real users is the actual work, and I'm doing it in public. Posts like this one are part of that.

Try it / tell me what's wrong

  • Free account with a 2 MB encrypted vault; MCP calls are free.
  • Connect Claude Code in one line:
claude mcp add --transport http --scope user ownmem https://mcp.ownmem.ai/mcp
  • How the encryption works: ownmem.ai/docs/encryption

If you work on encryption, MCP, or just have opinions about where AI memory should live, I'd genuinely like to hear what you'd do differently. The longer version of the build story is on my blog.

Read on DEV Community ↗ ← Back to News

Comments

No comments yet. Start the discussion.