Start typing to search this publication.
Orange Soda
Open menu

Subscribe to Orange Soda

Get new posts delivered straight to your inbox.

Where should AI agent memory live? Filecoin, Walrus, S3 or a local folder, with Lighthouse Memory

Orange Soda
4 min read

Written for the Scribble × Lighthouse bounty. Based on Lighthouse's public docs and blog as of October 2026. Not financial advice.

Agent memory is just data: facts, preferences and decisions an agent saves so it can find them in a later session. The interesting question for web3 people is where those bytes sit, who can read them, and what happens when you ask to delete them. Lighthouse Memory is a good case study because it lets you swap the storage backend without changing your agent's code. Its docs also say plainly what each choice gives up.

The short version

Lighthouse Memory gives agents three primitives, remember, recall and forget, and persists every memory as a content-addressed blob (CIDv1). The same API runs on four backends and two engines:

Backends (set with MEMORY_STORAGE):

  • lh-ipfs-filecoin (default): where bytes live: IPFS + Filecoin deals. Needs: Lighthouse API key. Gateway: gateway.lighthouse.storage

  • lh-ipfs-walrus: where bytes live: Walrus blobs on Sui. Needs: Lighthouse API key. Gateway: gateway-walrus.lighthouse.storage

  • s3: where bytes live: AWS S3, Cloudflare R2, MinIO. Needs: bucket + credentials. Gateway: your bucket / CDN

  • local-fs: where bytes live: a folder on your machine. Needs: nothing. Gateway: file://

Source: Lighthouse Memory docs, Introduction. Lighthouse's blog also says a memory stored on S3 gets the same CID it would get on Filecoin, so moving between backends doesn't change identifiers.

Two engines, two trust models

The backend table only applies to the batched engine. The other engine, memwal, manages its own storage.

  • Where embedding happens: batched: locally, in-process (all-MiniLM-L6-v2) or keyword-only. memwal: on the Walrus relayer.

  • Writes: batched: buffered, uploaded as one blob per 10 memories by default. memwal: every write goes straight to the relayer.

  • Encryption: batched: none: blobs and index snapshots are readable by anyone with the CID. memwal: blobs SEAL-encrypted on Walrus; optional IPFS mirror is public.

  • Search: batched: hybrid: 0.7 × cosine + 0.3 × keyword, over flushed and pending. memwal: relayer vector search, enriched with local tags/CIDs.

  • Forget: batched: hard delete on local/S3 once unreferenced; on Lighthouse storage it stops renewal. memwal: local copy removed + IPFS unpinned; encrypted blob lapses on its own (no relayer delete API).

So the choice comes down to where you want trust to sit. With batched, your text never leaves the machine for embedding, but whatever you upload is public to anyone holding the CID. With memwal, the stored blob is encrypted, but embedding and search run on a relayer.

Lighthouse sells storage on both networks, and its blog compares them fairly directly:

  • Filecoin: longer track record, cold reads that need a hot layer, deal terms you renew, lower cost per GB.

  • Walrus: newer, fast reads by design, epochs you renew, blobs are Move objects on Sui, higher cost per GB.

  • Free tiers through Lighthouse: 5 GB on the Filecoin path, 100 MB on the Walrus path, no card. The blog notes that gap is a factor of fifty and suggests starting on Filecoin when prototyping.

One detail in the memory docs matters more than the headline prices. On Walrus, every blob counts about 63 MB against your quota regardless of its real size. A memory record is tiny, so this is why the batched engine buffers memories. One blob holding ten memories costs the same quota as one holding a single memory. You can tune MEMORY_FLUSH_EVERY: 1 gives maximum durability, larger numbers use quota more efficiently.

Verifiability: what a CID gives an agent

Content addressing is the web3-native part of this design. Each flushed batch has a CID, and the batched index can be snapshotted to a single CID. Lighthouse says the whole memory store can be restored on a brand-new machine from that one snapshot CID, tracked by a pointer service.

Lighthouse's own FAQ draws the line clearly: CIDs prove integrity. Truth is a separate question. They tell you a recalled memory matches what was stored. They don't tell you the memory was correct when the agent saved it.

The blog points at use cases where integrity alone is still valuable, like trading agents that record what they read and why they acted, stored as CIDs so actions can be audited later.

Connecting an agent

There are two routes in the docs:

  1. SDK (Node.js): packages under @lighthouse-ai/* (core, engine-batched, store-lighthouse, embed-local, engine-memwal). Set LIGHTHOUSE_API_KEY, create a storage and embedder, then call remember, flush and recall.

  2. Hosted MCP server: POST https://memory-api.lighthouse.storage/mcp with a bearer token. It's stateless Streamable HTTP, and the tools adapt to the engine. If you haven't added a Lighthouse key yet, it only exposes three key-management tools so the agent can onboard itself.

The MCP reference also has a sensible warning: if you hand your key to the agent through chat, it passes through chat history, so use the dashboard field on shared machines.

Which setup I'd pick

From the docs alone, not from running it in production:

  • Prototyping or offline: local-fs + keyword embedder. Zero dependencies.

  • Company data with compliance rules: s3 on your own bucket, local embedder. Nothing leaves your infrastructure, and CIDs still match the other backends.

  • Durable, public-ok project memory: lh-ipfs-filecoin, the default, with the bigger free tier.

  • Anything private: memwal, keeping in mind that IPFS mirroring makes a public copy if you turn it on.

Token note

Lighthouse has said its TGE is upcoming. There's no official date or token detail, so I'm not speculating.

If you want to try it, start with the memory docs (docs.lighthouse.storage/memory/intro) and the interactive demo on lighthouse.storage. Read the encryption section before you pick a backend.

Subscribe to Orange Soda

notes on web3 tools, written while learning