Brain
БесплатноНе проверенBrain runtime + CLI — scaffold, run, and manage AI brain instances
Описание
Brain runtime + CLI — scaffold, run, and manage AI brain instances
README
A self-hosted AI knowledge agent that reads and writes your markdown.
brains lets you run an AI assistant around files you own. Your notes, posts, pages, images, and profile data live as markdown in a local brain-data/ folder. The running brain can search that content, update it, expose it to tools like Claude or Cursor, and publish a static website from the same source.
Status: pre-stable
0.x. It works today, but APIs and package names can still change before1.0. See STABILITY.md.
Who this is for
Use brains if you want to:
- keep your knowledge in markdown instead of a hosted app
- run a personal or site-focused AI assistant on your own machine or server
- connect that assistant to Claude Desktop, Cursor, or other MCP clients
- publish a website from the same content the assistant uses
- customize behavior with plugins when the defaults are not enough
It is not a hosted SaaS, a Notion/Obsidian clone, or a stable third-party plugin platform yet.
Quickstart
Install Bun first, then:
bun add -g @rizom/brain
brain init mybrain --model rover
cd mybrain
cp .env.example .env
# edit .env and set AI_API_KEY
brain start
This creates a new brain instance with:
brain.yaml— main configuration.env.exampleand.env.schema— environment/secrets referencepackage.json— pins the runtime packagetsconfig.json,.gitignore, and a localREADME.mdbrain-data/— created/seeded on first run when file sync is active
On first start, models with browser login print a one-time /setup URL. Open it locally, register a passkey, and use that passkey for browser and OAuth-based MCP access. Auth state is stored in ./data/auth; keep it when deploying or backing up.
For the full walkthrough, see Getting Started.
Connect Claude, Cursor, or another MCP client
MCP is the protocol many AI apps use to connect to external tools and data.
For local stdio MCP, point the client at your brain directory:
{
"mcpServers": {
"mybrain": {
"command": "brain",
"args": ["start"],
"cwd": "/absolute/path/to/mybrain"
}
}
}
For HTTP MCP, use:
http://localhost:8080/mcp
or, after deployment:
https://your-domain.com/mcp
OAuth-capable clients can use the built-in browser/passkey login. MCP_AUTH_TOKEN still exists as a legacy fallback for clients that cannot use OAuth.
How it works
A brain has three main pieces:
- Content — markdown files in
brain-data/ - Model — a bundled set of plugins and defaults, such as
rover - Runtime — the
brainprocess that loads the model, indexes content, serves tools, and optionally builds a site
brain.yaml + brain-data/
→ brain start
→ running AI knowledge agent
├─ content tools
├─ MCP endpoint
├─ optional web dashboard / site
└─ optional integrations like Discord
Models
rover— the public reference model for personal knowledge, publishing, and local-first useranger— experimental community and organization modelrelay— experimental team-memory model
If you are trying brains for the first time, use rover.
Documentation
Start here:
Deeper topics:
- Architecture Overview
- Brain Models
- Content Management
- Entity Types Reference
- Interface Setup
- Customization Guide
- Plugin System
- External Plugin Authoring
- Theming Guide
- Roadmap
Repository map
This is mainly useful if you are developing the framework itself:
packages/brain-cli/ published CLI/runtime package: @rizom/brain
packages/brains-ops/ operator CLI for fleets: @rizom/ops
brains/ bundled brain models: rover, ranger, relay
shell/ core runtime and services
plugins/ built-in service plugins
entities/ built-in content/entity plugins
interfaces/ built-in interfaces: MCP, web, Discord, etc.
shared/ shared utilities, UI, themes, site engine
sites/ site packages
deploy/ deployment templates and helper scripts
docs/ documentation and plans
apps/ local development / legacy instance directories
Requirements
| Requirement | Support |
|---|---|
| Bun | >= 1.3.3 |
| Runtime | Bun only |
| OS | macOS, Linux, Windows via WSL2 |
Contributing
This project is currently maintainer-led. Bug reports, documentation fixes, and focused patches are welcome. See CONTRIBUTING.md.
License
Установить Brain в Claude Desktop, Claude Code, Cursor
unyly install brainСтавит в Claude Desktop, Claude Code, Cursor и VS Code — сам разбирается с npx, uvx и сборкой из исходников.
Впервые? Поставь CLI: curl -fsSL https://unyly.org/install | sh
Или настроить вручную
Выполни в терминале:
claude mcp add brain -- npx -y @rizom/brainFAQ
Brain MCP бесплатный?
Да, Brain MCP бесплатный — установка в пару кликов через Unyly без оплаты.
Нужен ли API-ключ для Brain?
Нет, Brain работает без API-ключей и переменных окружения.
Brain — hosted или self-hosted?
Self-hosted: сервер запускается локально на твоей машине командой из раздела установки.
Как установить Brain в Claude Desktop, Claude Code или Cursor?
Открой Brain на unyly.org, выбери вкладку своего клиента (Claude Desktop, Claude Code, Cursor) и нажми Install — конфиг сгенерируется автоматически, без правки JSON.
Похожие MCP
Fetch
Web content fetching and conversion for efficient LLM usage.
AWS KB Retrieval
Retrieval from AWS Knowledge Base using Bedrock Agent Runtime.
автор: modelcontextprotocolSpring AI MCP Server
Provides auto-configuration for setting up an MCP server in Spring Boot applications.
llm-analysis-assistant
A very streamlined mcp client that supports calling and monitoring stdio/sse/streamableHttp, and can also view request responses through the /logs page. It also
автор: xuzexin-hzCompare Brain with
Не уверен что выбрать?
Найди свой стек за 60 секунд
Автор?
Embed-бейдж для README
Похожее
Все в категории ai
