LBrain

ai.lbrain由 lbrain.ai 发布v0.1.3更新于 Oct 24, 2026

Local-first agent memory. Source, date, bind/abstain. Permanent name: lbrain.ai/claim.html

发布方自己的服务:BrainDog

已验证STDIO仅桌面知识与记忆开发者工具

概览

AI 生成的概览

把编码代理接入本地优先的 LBrain 记忆引擎,使其能召回、绑定或在无匹配时弃答。

可以做什么
该软件包负责安装并把各类宿主接入 LBrain 记忆引擎的 stdio MCP 服务器,让助手可以查询个人记忆库。它会检测受支持的编码代理,把 lbrain 的 MCP 条目写入其配置,将配套技能复制到各宿主的技能目录,并可注入会话启动时的召回调用。另提供 Python 包装器,让 OpenAI 风格客户端先召回、无匹配时弃答,写入需显式开启。
适用场景
适合在本地保存笔记或文档、并希望编码代理跨会话从该库召回内容的场景,且倾向于无匹配时弃答而非猜测。也适合已运行 LBrain 引擎、想把多个代理宿主统一接入的用户。
运行要求
需要本地 Python 环境:先用 pip install "lbrain[local]" 安装 LBrain 引擎,指定来源目录初始化,导入并生成嵌入,然后安装本软件包并运行其安装器。MCP 服务器通过 stdio 在本地运行;未声明远程端点、账号、API 密钥或环境变量。
安装前请注意
安装器会写入代理配置文件,但只合并 lbrain 键,保留其他 MCP 服务器,并在首次写入前备份一次配置。除非显式指定,否则不会设置 LBRAIN_HOME。引擎的 HTTP 传输没有身份验证,不应暴露到网络;本安装器只启用 stdio。

安装

在 SourceWeft 中

  1. 打开 控制台中的 LBrain,将其添加到工作区。
  2. 为需要使用其工具的对话启用该服务。

Desktop only,通过 STDIO。 STDIO 服务会启动本地进程,因此需要 SourceWeft 桌面宿主。

其他 MCP 客户端

参照 仓库 中的启动说明。

README

LBrain coding-agents

Install LBrain where the agent already lives.

The free name is generic. Make it permanent: https://lbrain.ai/claim.html

Native MCP + companion skill + fail-closed session-start for Claude Code, Codex, Cursor, Copilot, Grok Build, Gemini CLI, Antigravity, and OpenClaw.

This package does not modify the LBrain engine. It wires hosts to lbrain mcp. The Official MCP Registry / VS Code @mcp gallery entry also execs that same stdio server.

VS Code: search LBrain in Extensions, or @mcp lbrain. Marketplace: https://marketplace.visualstudio.com/items?itemName=metavolve-labs.lbrain

Install the engine first

bash
pip install "lbrain[local]"lbrain init --source ~/noteslbrain import && lbrain embed --stale

Wire your coding agents

bash
pip install lbrain-coding-agentspython3 -m lbrain_agents statuspython3 -m lbrain_agents install            # lists detections, changes nothingpython3 -m lbrain_agents install all        # every detected harnesspython3 -m lbrain_agents install claude-code grok-buildpython3 -m lbrain_agents install all --dry-run

A bare install is a no-op. That is deliberate: wiring every agent on the machine never happens by accident.

Paste to a desktop AI (no terminal)

Some people never open a shell. They paste this into Claude, Cursor, Codex, Copilot, or Grok and the agent does the work:

Install LBrain as my local memory.
pip install "lbrain[local]" lbrain-coding-agentsIf python3 -m lbrain_agents works here, run: python3 -m lbrain_agents install allOtherwise add an MCP server named lbrain: command lbrain, args ["mcp"], stdio.
Then call whoami. Prefer binds. Near-miss is not an answer. Abstain if nothing binds. SUPERSEDED must not govern. Leave LBRAIN_HOME alone if it is already set.
https://lbrain.ai/integrations.html

Existing lbrain MCP entries are left untouched unless you pass --force. Skills are copied to each host's skills directory. Session-start injects lbrain whoami (Claude Code).

Two-line wrap

python
from openai import OpenAIfrom lbrain_agents.wrap import wrap_openai
client = wrap_openai(OpenAI(), home="~/.lbrain")

Recall first. If nothing binds, the model is told to abstain. Writes are opt-in (remember=True).

Agent Plugin

lbrain_agents/share/agent-plugin/ is a portable bundle (plugin.json + mcp.json + skill) for hosts that speak the Agent Plugins spec.

Cookbooks

  1. Abstain when the record does not bind
  2. SUPERSEDED does not govern
  3. Model swap, same mind

See lbrain_agents/share/cookbooks/.

Safety

  • Merges only the lbrain key. Other MCP servers stay.
  • Backs up a config once as *.lbrain-backup before the first write.
  • Does not set LBRAIN_HOME unless you pass --home. A working seat mount is not overwritten.
  • HTTP MCP is not enabled by this installer. stdio only. The engine's HTTP transport has no auth; do not bind it to the world.

What this package is not

This is the free installer and the serve-boundary skill. It is not LBrain Connect, Managed LBrain, or LBrain Govern. It does not issue gcx:// names, inscribe permanence, or ship study gold sets. The engine's resolver client is open; registrar issuance is not in this tree.

License

BSD-3-Clause. Metavolve Labs, Inc.

Patents pending. The licence covers the code; it does not grant patent rights.

来源:README.md,提交 3ca1a1c

工具

0
SourceWeft 尚未在沙箱中启动过该软件包,因此其工具未知。

版本历史

1
  1. v0.1.3最新Sep 16, 2026

评分

已满足适用检查项的 50%

该评分衡量此收录条目的完整程度,依据注册中心条目、端点与公开来源计算得出。它不是对服务器本身的评价,也不表示服务器安全或当前可用:可连通性是带日期的检查结果,评分也不包含安装量或用户评价。

  • 近 30 天内可连通25 分

    请保持端点能够响应 MCP 握手;SourceWeft 每 30 天探测一次。

  • 已声明认证方式10 分

    请在注册中心条目中声明凭据请求头,或保持端点能够响应探测,以便判定其认证方式。

  • 已列出工具15 分

    请让服务器在无凭据时响应 tools/list,或发布可在沙箱中无凭据启动的软件包。

  • 描述必需15 分
  • 图标10 分
  • 文档15 分
  • 许可证10 分

其他 Brain 集成