MoltBrain  by nhevers

Intelligent memory layer for AI agents

Created 4 weeks ago

New!

355 stars

Top 78.9% on SourcePulse

GitHubView on GitHub
Project Summary

MoltBrain is a long-term memory layer designed for AI agents like OpenClaw, MoltBook, and Claude Code. It automatically learns and recalls project context, enhancing agent productivity by remembering past interactions, decisions, and code snippets.

How It Works

MoltBrain operates by capturing observations, decisions, and code during AI agent sessions. This captured data is processed by a worker service (running locally on port 37777) which stores session details in SQLite and enables semantic search via ChromaDB. When a new session begins, MoltBrain injects relevant context from its memory, allowing the AI agent to recall past information and maintain continuity. This approach automates context management, reducing the need for agents to re-learn project specifics.

Quick Start & Requirements

Installation varies by agent:

  • Claude Code: Use the plugin marketplace: /plugin marketplace add nhevers/moltbrain followed by /plugin install moltbrain.
  • OpenClaw: Clone https://github.com/nhevers/moltbrain.git into ~/.openclaw/extensions/, then cd moltbrain/integrations/openclaw, run npm install && npm run build, and enable the plugin via pnpm openclaw plugins enable moltbrain.
  • MoltBook: Install the MCP integration via npm install --save @moltbrain/moltbook-mcp and configure MoltBrain settings.

Prerequisites: Node.js 18+ or Bun 1.0+. Requires integration with OpenClaw, MoltBook, or Claude Code.

Highlighted Details

  • Auto-Capture: Automatically records discoveries, decisions, and code snippets from agent sessions.
  • Semantic Search: Utilizes MCP tools and ChromaDB for intelligent, context-aware searching of memories.
  • Web Viewer: Provides a local web interface at localhost:37777 for browsing history, search, and analytics.
  • Export Options: Data can be exported in JSON, CSV, or Markdown formats with custom templates.
  • Integrations: Seamlessly works with OpenClaw (as an extension, skill, or MCP server), MoltBook (via MCP), and Claude Code (as a plugin).

Maintenance & Community

The project is built with care for the OpenClaw, MoltBook, and Claude Code community. Specific details on contributors, sponsorships, or dedicated community channels (like Discord/Slack) are not explicitly detailed in the README.

Licensing & Compatibility

MoltBrain is licensed under the AGPL-3.0 license. This license imposes copyleft requirements, meaning derivative works must also be made available under the AGPL-3.0. This may have implications for commercial use or integration into closed-source projects.

Limitations & Caveats

MoltBrain functions as a memory layer and requires integration with specific AI agents (OpenClaw, MoltBook, Claude Code). The AGPL-3.0 license may present compatibility challenges for certain commercial or proprietary applications. Setup requires adherence to agent-specific integration instructions.

Health Check
Last Commit

3 weeks ago

Responsiveness

Inactive

Pull Requests (30d)
2
Issues (30d)
6
Star History
391 stars in the last 28 days

Explore Similar Projects

Feedback? Help us improve.