Long-term memory layer for OpenClaw, MoltBook & Claude Code that learns and recalls your project context automatically. $BRAIN CA 0x35e7942E91876Eb0c24A891128E559a744fe8B07
Install โข Features โข How It Works โข Storage โข Virtuals โข OpenClaw โข Config โข API
โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ
โ โ
โ Step 1 /plugin marketplace add nhevers/moltbrain โ
โ Step 2 /plugin install moltbrain โ
โ โ
โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ
That's it. MoltBrain starts working automatically.
โญโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโฎ
โ โ
โ โโโโโโโโโโโโโโโโโโโ โโโโโโโโโโโโโโโโโโโ โ
โ โ SESSION #1 โ โ SESSION #47 โ โ
โ โโโโโโโโโโโโโโโโโโโ โโโโโโโโโโโโโโโโโโโ โ
โ โ โ โ โ โ
โ โ "Set up auth โ โ "Add password โ โ
โ โ with OAuth" โ โ reset flow" โ โ
โ โ โ โ โ โ
โ โโโโโโโโโโฌโโโโโโโโโ โโโโโโโโโโฌโโโโโโโโโ โ
โ โ โ โ
โ โ Claude discovers: โ Claude remembers: โ
โ โ โข OAuth2 + PKCE flow โ โข Your auth setup โ
โ โ โข JWT with 1hr expiry โ โข Token structure โ
โ โ โข bcrypt cost factor 12 โ โข Security choices โ
โ โ โ โ
โ โผ โฒ โ
โ โโโโโโโโโโโโโโโโโโ โโโโโโโโโโโโโโโโโโ โ
โ โ CAPTURE โ โโโโโโโโโโโโโโโโโโโบ โ INJECT โ โ
โ โ & LEARN โ MEMORY โ & RECALL โ โ
โ โโโโโโโโโโโโโโโโโโ โโโโโโโโโโโโโโโโโโ โ
โ โ
โฐโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโฏ
+-------------------------+-------------------------+-------------------------+
| | | |
| OBSERVATIONS | SMART SEARCH | WEB VIEWER |
| ---------------- | ---------------- | ---------------- |
| Auto-captures | Semantic search | Browse history |
| discoveries, | via MCP tools | at localhost |
| decisions & code | finds context | :37777 |
| | | |
+-------------------------+-------------------------+-------------------------+
| | | |
| ANALYTICS | TAGS & FILTERS | FAVORITES |
| ---------------- | ---------------- | ---------------- |
| Track tokens, | Organize with | Bookmark your |
| sessions, and | custom tags & | most important |
| concept trends | smart filters | observations |
| | | |
+-------------------------+-------------------------+-------------------------+
| | | |
| EXPORT | THEMES | SHORTCUTS |
| ---------------- | ---------------- | ---------------- |
| JSON, CSV, or | Dark & light | Full keyboard |
| Markdown with | mode with | navigation in |
| custom templates | custom themes | the web viewer |
| | | |
+-------------------------+-------------------------+-------------------------+
โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ
โ CLAUDE CODE SESSION โ
โโโโโโโโโโโโโโโโโคโโโโโโโโโโโโโโโโโโโโ
โ
โโโโโโโโโโโโโโโโโโโโโโผโโโโโโโโโโโโโโโโโโโโโ
โ โ โ
โผ โผ โผ
โโโโโโโโโโโโโโโโโโ โโโโโโโโโโโโโโโโโโ โโโโโโโโโโโโโโโโโโ
โ SessionStart โ โ PostToolUse โ โ Stop โ
โโโโโโโโโโโโโโโโโโ โโโโโโโโโโโโโโโโโโ โโโโโโโโโโโโโโโโโโ
โ Inject context โ โ Capture output โ โ Generate โ
โ from memory โ โ extract facts โ โ summary โ
โโโโโโโโโคโโโโโโโโโ โโโโโโโโโคโโโโโโโโโ โโโโโโโโโคโโโโโโโโโ
โ โ โ
โโโโโโโโโโโโโโโโโโโโโโผโโโโโโโโโโโโโโโโโโโโโ
โ
โโโโโโโโโโโโโโโโงโโโโโโโโโโโโโโโ
โ WORKER SERVICE โ
โ http://localhost:37777 โ
โโโโโโโโโโโโโโโโคโโโโโโโโโโโโโโโ
โ
โโโโโโโโโโโโโโโโโโโโโโโโโโโผโโโโโโโโโโโโโโโโโโโโโโโโโโ
โ โ โ
โผ โผ โผ
โโโโโโโโโโโโโโโโโโ โโโโโโโโโโโโโโโโโโ โโโโโโโโโโโโโโโโโโ
โ SQLite โ โ ChromaDB โ โ Web Viewer โ
โ Database โ โ Vector Search โ โ UI โ
โโโโโโโโโโโโโโโโโโ โโโโโโโโโโโโโโโโโโ โโโโโโโโโโโโโโโโโโ
โ Observations โ โ Semantic โ โ Timeline โ
โ Summaries โ โ similarity โ โ Search โ
โ Sessions โ โ matching โ โ Analytics โ
โโโโโโโโโโโโโโโโโโ โโโโโโโโโโโโโโโโโโ โโโโโโโโโโโโโโโโโโ
Settings stored in ~/.moltbrain/settings.json:
โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโฌโโโโโโโโโโฌโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ
โ SETTING โ DEFAULT โ DESCRIPTION โ
โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโผโโโโโโโโโโผโโโโโโโโโโโโโโโโโโโโโโโโโโโโโค
โ MOLTBRAIN_WORKER_PORT โ 37777 โ Worker service port โ
โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโผโโโโโโโโโโผโโโโโโโโโโโโโโโโโโโโโโโโโโโโโค
โ MOLTBRAIN_CONTEXT_OBSERVATIONS โ 50 โ Max observations to inject โ
โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโผโโโโโโโโโโผโโโโโโโโโโโโโโโโโโโโโโโโโโโโโค
โ MOLTBRAIN_PROVIDER โ claude โ AI provider for summaries โ
โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโผโโโโโโโโโโผโโโโโโโโโโโโโโโโโโโโโโโโโโโโโค
โ MOLTBRAIN_PRUNE_DAYS โ 0 โ Auto-prune (0 = disabled) โ
โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโผโโโโโโโโโโผโโโโโโโโโโโโโโโโโโโโโโโโโโโโโค
โ MOLTBRAIN_THEME โ system โ UI theme (dark/light/sys) โ
โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโผโโโโโโโโโโผโโโโโโโโโโโโโโโโโโโโโโโโโโโโโค
โ MOLTBRAIN_LOG_LEVEL โ info โ Logging verbosity level โ
โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโดโโโโโโโโโโดโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ
moltbrain stats # Show memory statistics
moltbrain export # Export to markdown
moltbrain tag <id> <t> # Tag an observation
moltbrain prune # Manual cleanup
moltbrain search <q> # Search observationsmoltbrain/
โ
โโโ ๐ benchmarks/ Performance tests
โโโ ๐จ contrib/ Community modes & themes
โโโ ๐ docs/ Documentation
โโโ ๐ examples/ Usage examples & guides
โ
โโโ ๐ extension/
โ โโโ profiles/ Observation modes
โ โโโ runtime/ Worker scripts
โ โโโ themes/ UI themes (dark/light)
โ โโโ snippets/ Code snippets
โ โโโ templates/ Summary templates
โ
โโโ ๐ locales/ i18n (en, es, fr)
โโโ ๐๏ธ migrations/ Database migrations
โโโ ๐ schemas/ JSON validation schemas
โโโ ๐ ๏ธ scripts/ Build & utility scripts
โ
โโโ ๐ป src/
โ โโโ analytics/ Token & session tracking
โ โโโ cache/ Query & context caching
โ โโโ core/ Core engine
โ โโโ export/ JSON/CSV/MD exporters
โ โโโ favorites/ Bookmark system
โ โโโ filters/ Date/type/project filters
โ โโโ formatters/ Output formatters
โ โโโ mcp/ MCP server for OpenClaw & MoltBook
โ โโโ shortcuts/ Keyboard shortcuts
โ โโโ themes/ Theme system
โ โโโ validators/ Input validation
โ
โโโ ๐ฆ integrations/
โ โโโ clawd/ Clawd extension & skill
โ
โโโ ๐ templates/ Export templates
โโโ ๐งช tests/ Test suites
โโโ ๐ง tools/ CLI utilities
The worker exposes a REST API at http://localhost:37777:
# Health check
curl http://localhost:37777/health
# Search observations
curl "http://localhost:37777/api/search?q=authentication"
# Get timeline
curl "http://localhost:37777/api/timeline?project=my-app&days=7"
# Export data
curl "http://localhost:37777/api/export?format=json" > backup.json
# Get statistics
curl "http://localhost:37777/api/stats"Persistent, Postgres-backed storage for agents and apps. Live at app.moltbrain.dev/storage.
+-----------------------------------------------------------------------------+
| |
| BLOB STORAGE Content-addressed JSON blobs via SHA-256 |
| ---------- Store and retrieve data by hash. $0.01 per request. |
| |
| MEMORY SLOTS Named key-value slots for agent state |
| ---------- Allocate, write, read. Persistent across sessions. |
| |
| AGENT VAULT Per-wallet scoping with label badges |
| ---------- Connect the same wallet your agents use. |
| Browse, view, and delete what they stored. |
| |
+-----------------------------------------------------------------------------+
All endpoints are paid via x402 micropayments ($0.01 USDC on Base). Data is scoped per wallet, backed by Postgres, and survives redeploys.
Agents can tag stored data with a label (e.g. "openclaw_session", "virtuals_agent") so the vault shows what stored each item.
# Store a blob
curl -X POST https://app.moltbrain.dev/api/x402/store \
-H "X-PAYMENT: <x402_header>" \
-d '{"data": {"key": "value"}, "label": "my_agent"}'
# List your blobs
curl https://app.moltbrain.dev/api/x402/list/blobs \
-H "X-PAYMENT: <x402_header>"
# Full catalog
curl https://app.moltbrain.dev/api/x402/catalogGAME SDK plugin that gives any Virtuals Protocol AI agent persistent memory and storage via MoltBrain.
npm install @moltbrain/game-pluginimport { GameAgent } from "@virtuals-protocol/game";
import { MoltBrainPlugin } from "@moltbrain/game-plugin";
const moltbrain = new MoltBrainPlugin({
privateKey: process.env.AGENT_PRIVATE_KEY!, // wallet with USDC on Base
});
const agent = new GameAgent(process.env.GAME_API_KEY!, {
name: "My Agent",
goal: "Remember everything across sessions",
description: "An agent with persistent memory via MoltBrain",
workers: [moltbrain.getWorker()],
});
await agent.init();
await agent.step({ verbose: true });9 functions available: moltbrain_chat, moltbrain_search, moltbrain_store, moltbrain_retrieve, moltbrain_allocate_slot, moltbrain_write_slot, moltbrain_read_slot, moltbrain_stats, moltbrain_capacity.
Everything the agent stores shows up in the vault dapp at app.moltbrain.dev/storage. Connect the same wallet to browse it.
See the full plugin repo: github.com/nhevers/Moltbrain-virtuals
Works with OpenClaw (116k+ stars) - the popular personal AI assistant!
+-----------------------------------------------------------------------------+
| |
| EXTENSION Add to OpenClaw's extensions/ folder |
| ---------- Full lifecycle hooks integration |
| |
| SKILL Install as an OpenClaw skill |
| ---------- recall_context, search_memories, save_memory tools |
| |
| MCP SERVER Protocol-based integration |
| ---------- Works with any MCP-compatible client |
| |
+-----------------------------------------------------------------------------+
Quick setup:
# As OpenClaw extension
cd ~/.openclaw/extensions
git clone https://github.com/nhevers/moltbrain.git moltbrain
cd moltbrain/integrations/openclaw
npm install && npm run build
# Enable the plugin (required for bundled installations)
pnpm openclaw plugins enable moltbrain
# Or via MCP
npm run mcp:startNote: If installing as a bundled extension (in OpenClaw's extensions/ directory), you must explicitly enable it: pnpm openclaw plugins enable moltbrain
See integrations/openclaw/README.md for full setup guide.
Works with MoltBook - the social network for AI agents! Share memories, learn from other agents, and build collective knowledge.
Quick setup:
# Install MoltBook MCP integration
npm install --save @moltbrain/moltbook-mcp
# Configure in your MoltBrain settings
{
"MOLTBRAIN_MOLTBOOK_ENABLED": true,
"MOLTBRAIN_MOLTBOOK_API_URL": "https://moltbook.com"
}See integrations/moltbook/README.md for full setup guide.
Works with Claude Code via the plugin marketplace:
/plugin marketplace add nhevers/moltbrain
/plugin install moltbrainโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ
โ โ
โ โข Node.js 18+ or Bun 1.0+ โ
โ โข OpenClaw, MoltBook, or Claude Code โ
โ โ
โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ
AGPL-3.0
โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ
Built with care for the OpenClaw, MoltBook & Claude Code community
App โข Storage Dapp โข Virtuals Plugin โข x402 Protocol
โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ
