Give every agent
a persistent brain

Long-term memory for AI agents. Save project context, preferences and decisions, then retrieve what matters in the next session.

BACKED BY

01 / THE MEMORY NETWORK

Different minds.
Shared memory.

Connected agents can use the same saved context.
Try it in this demo: select an agent and save a sample.
Select another to see the same memory.

INTERACTIVE DEMO
LIGHTHOUSESHARED MEMORY
Claude logo
✓
Claude selected for this demo.

Sample text stays in this page. Save it, then select another agent.

Connect supported clients to use shared memory in your own workflow.
02 / BUILD YOUR AGENT’S BRAIN

Add memory
to your application.

Use the SDK in your code, connect an MCP client, or choose encrypted memory on Walrus. Start with the setup that fits your application.

memory.mjsNode.js
npm install @lighthouse-ai/core @lighthouse-ai/engine-batched @lighthouse-ai/store-lighthouse @lighthouse-ai/embed-local
import { createStorage, createEmbedder } from '@lighthouse-ai/core';
import { BatchedEngine } from '@lighthouse-ai/engine-batched';
import '@lighthouse-ai/store-lighthouse';
import '@lighthouse-ai/embed-local';

// Connect your agent to persistent memory.
const memory = new BatchedEngine(
  await createStorage('lh-ipfs-filecoin', {
    apiKey: process.env.LIGHTHOUSE_API_KEY,
  }),
  { namespace: 'my-agent', embedder: await createEmbedder('local') }
);

// Save context and persist it to the network.
await memory.remember('Our project uses TypeScript.', {
  tags: ['project'],
});
await memory.flush();

// Retrieve the context when your agent needs it.
const context = await memory.recall('What language do we use?');
console.log(context);

Set LIGHTHOUSE_API_KEY in your environment. This example stores public, unencrypted memory.

Read the guide
Built on Lighthouse

03 / HOW SHARED MEMORY WORKS

Pick up
where you
left off.

Give your agent a persistent brain through the Memory SDK or a supported MCP connection. Save the context you choose and retrieve relevant records in later sessions. Each application needs its own connection.

Connect through MCP
SHARED MEMORY DEMO01 / 21
Claude logoClaude···
Project briefWebsite launch plan.
◇Preferences
◇Project state
◇Decisions
◇Files
Keep this context
Codex logoCodex···
Project briefWebsite launch plan.
✓Preferences
✓Project state
✓Decisions
✓Files
Ready to continue
Claude→Codex
01 / CONNECTA supported client.
02 / REMEMBERSave selected records.
03 / CONTINUERecall when needed.
04 / STORAGE, VERIFICATION AND CONTROL

The memory behind
your agent’s brain.

Use decentralised storage for your memory records.
Decide what to save, how to retrieve it and what to share.

01 / MEMORY

Keep context across sessions.

Save project facts, preferences and decisions outside the conversation. Your application can search these records and add relevant context to a later request.

PROJECT CONTEXT
BriefLaunch the new website
VoiceClear, direct, human
DecisionLead with the product demo
✓ Ready for the next conversation
PERSISTENT CONTEXT
02 / PROOF

Verify stored content.

Stored memory batches have content identifiers, or CIDs. Use them to check that retrieved content matches the saved version. This checks integrity, not whether a statement is true.

CONTENT CHECK
≡
project-brief.mdSaved memory
✓ Match
Storedbafy…7k2m
Retrievedbafy…7k2m
Confirms content integrity, not factual accuracy.
VERIFIABLE CONTENT
03 / CONTROL

Choose the context you send.

Your application decides which records to save and pass to each agent. Tags and namespaces organise context; encryption and access controls need separate configuration.

SHARING SCOPE
Project briefWriting agent
Shared
Brand guidelinesDesign agent
Shared
Personal notesExcluded from this request
Not sent
SELECTIVE SHARING

05 / QUESTIONSMEMORY AND STORAGE

Before you
connect.

How memory works, what is shared and which setup to choose.

Tubry waving over the edge of the Lighthouse panelSTART WITH LIGHTHOUSE MEMORY

Give your agent a brain.
Start with one memory.