Command Palette

Search for a command to run...

UnylyUnyly
Весь каталог

Brain

БесплатноНе проверен

Brain runtime + CLI — scaffold, run, and manage AI brain instances

GitHubEmbed

Описание

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 before 1.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.example and .env.schema — environment/secrets reference
  • package.json — pins the runtime package
  • tsconfig.json, .gitignore, and a local README.md
  • brain-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:

  1. Content — markdown files in brain-data/
  2. Model — a bundled set of plugins and defaults, such as rover
  3. Runtime — the brain process 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 use
  • ranger — experimental community and organization model
  • relay — experimental team-memory model

If you are trying brains for the first time, use rover.

Documentation

Start here:

Deeper topics:

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

Apache-2.0

from github.com/rizom-ai/brains

Установить Brain в Claude Desktop, Claude Code, Cursor

Рекомендуется · одна команда, все IDE
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/brain

FAQ

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

Compare Brain with

Не уверен что выбрать?

Найди свой стек за 60 секунд

Автор?

Embed-бейдж для README

Похожее

Все в категории ai