
Brainy
io.github.memokarv0.1.0更新于 Oct 6, 2026
Shared knowledge base + task queue so Claude, ChatGPT and other agents can work together safely.
概览
自托管的共享知识库与任务队列,让多个 AI 代理读取同一份 Markdown 知识并通过任务协作。
- 功能
- Brainy 为代理提供一个受控的 MCP 端点,用于共享知识和任务。知识工具包括 list_documents、get_document、search_knowledge、write_document、append_document 和 propose_write,写入会提交到 Git 仓库。任务工具包括 create_task、claim_task、renew_claim、complete_task、fail_task 和 release_task,支持原子认领、租约、依赖和审核。空间、角色、按空间的 ACL 以及只追加的审计日志控制访问。
- 适用场景
- 当 Claude、ChatGPT 或自定义机器人等多个 AI 客户端需要共享同一知识库和任务列表,而不是各自在独立聊天中工作时适用。也适合希望对代理提出的知识变更进行人工审核并保留代理操作审计记录的团队。
- 运行要求
- 作为本地进程运行,通常使用已发布的容器镜像,或从源码运行,需要 Python 3.10 或更高版本和 SQLite。需要数据目录和知识根目录,以及通过 Authorization 头发送的服务令牌;管理员令牌在首次启动时打印一次。远程连接器需要 HTTPS 和 OAuth 2.1 配置。
安装
在 SourceWeft 中
- 打开 控制台中的 Brainy,将其添加到工作区。
- 为需要使用其工具的对话启用该服务。
Desktop only,通过 STDIO。 STDIO 服务会启动本地进程,因此需要 SourceWeft 桌面宿主。
其他 MCP 客户端
参照 仓库 中的启动说明。
README
Brainy
[CI] [License: AGPL-3.0] [Dependencies: none]
A shared brain for your AI agents — and for the humans who work with them.
Brainy is a self-hosted knowledge and task backbone that Claude, ChatGPT and any other MCP-capable AI connect to through one controlled endpoint. Every agent reads the same knowledge, works on the same task list and leaves an audit trail — so your AIs can hand work to each other instead of living in separate chat silos.
Why Brainy?
- AIs that collaborate. ChatGPT creates a task, Claude claims it, does the work and writes the result back; a human reviews. Coordination happens through tasks — no hidden agent-to-agent magic.
- One source of truth. Knowledge lives as plain Markdown in a Git repository. Every write is a commit, so you get history, diffs and rollback for free.
- Safe by default. No shell, no filesystem, no eval over MCP. Path allowlist, per-space ACLs, secret detection on writes, rate limits, hashed tokens and an append-only audit log.
- No double work. Atomic task claims with leases and claim tokens guarantee that two agents never process the same task at the same time.
- Human in the loop. Agents can propose knowledge changes; a human approves or rejects them (web UI or Telegram). Tasks can require review/approval before they count as done.
- Zero dependencies. Pure Python standard library + SQLite. No pip install, tiny attack surface.
Features
Quickstart (Docker)
Prebuilt image (published on every release):
Or build it yourself with Compose:
Brainy now listens on http://127.0.0.1:8765 (MCP endpoint: /mcp, admin UI: /admin — log in
with the token). For remote AI connectors put it behind HTTPS (see
deploy/nginx-brainy.conf.example) and set BRAINY_PUBLIC_BASE_URL.
Quickstart (bare metal, Linux, Python ≥ 3.10)
Connecting an AI
- Claude Code:
- Local stdio clients (e.g. Claude Desktop): run Brainy as a subprocess:
Try it without any setup:
python3 scripts/stdio.py --demo(temporary data, deleted on exit). - Any other MCP client with custom headers: endpoint
https://<your-host>/mcp, headerAuthorization: Bearer <service token>. - Claude.ai / ChatGPT remote connectors: use the OAuth 2.1 flow (discovery at
/.well-known/oauth-authorization-server). SetBRAINY_PUBLIC_BASE_URLto your HTTPS URL.
Brainy is listed in the official MCP Registry as
io.github.memokar/brainy.
Give each AI its own principal (e.g. claude, chatgpt) with role AGENT and only the spaces it
needs. Every action then shows up in the audit log under that name.
Configuration
All configuration comes from environment variables — see .env.example.
Secrets (tokens, keys) are never stored in the repository or the knowledge base.
Extensions
The core ships a worker plugin interface and a deterministic MockWorker. Real workers that let
agents execute tasks autonomously (e.g. Claude Code, Codex) are separate extensions loaded via
BRAINY_WORKER_PLUGINS. See docs/extensions.md.
Running the tests
Status & roadmap
Brainy runs in production for its author. Current limitations:
- Code comments are still partly German; all user-facing text is English.
- Single-node design (SQLite). PostgreSQL only if real multi-writer load appears.
License
Copyright (C) 2026 Mehmet Karakolcu
Brainy is dual-licensed:
- Open source: GNU AGPL-3.0. Free for everyone, including companies — but if you modify Brainy and offer it to others (also as a network service), you must publish your changes under the AGPL.
- Commercial license: for companies that want to use or embed Brainy without AGPL obligations. See COMMERCIAL.md.
Contributions require agreeing to the Contributor License Agreement.
来源:README.md,提交 79e0ec7
工具
0版本历史
1- v0.1.0最新Oct 6, 2026


