Command Palette

Search for a command to run...

UnylyUnyly
Назад к скиллам

setup

БесплатноБез исполняемых скриптовНе проверен

Set up Inbrain with auto-provision Supabase or PGLite, AGENTS.md injection, first import

inbrainfunот inbrainfun★ 142 звезды на GitHub

Об этом скилле

Setup Inbrain

Set up Inbrain from scratch. Target: working brain in under 5 minutes.

Contract

  • Setup completes with a working brain verified by inbrain doctor --json (all checks OK).
  • The brain-first lookup protocol is injected into the project's AGENTS.md or equivalent.
  • Live sync is configured and verified (a test change pushed and found via search).
  • Schema state is tracked in ~/.inbrain/update-state.json so future upgrades know what the user adopted or declined.
  • No Supabase anon key is requested; Inbrain uses only the database connection string.

Install (if not already installed)

bun add github:inbrain-ai/inbrain

How Inbrain connects

Inbrain connects directly to Postgres over the wire protocol. NOT through the Supabase REST API. You need the database connection string (a postgresql:// URI), not the project URL or anon key. The password is embedded in the connection string.

Use the Transaction pooler connection string (port 6543), not the direct connection (port 5432). The direct hostname resolves to IPv6 only, which many environments can't reach. Find it: click Connect in the top navigation bar, then Connection String > Transaction pooler, and copy the string.

Do NOT ask for the Supabase anon key. Inbrain doesn't use it.

Why Supabase

Supabase gives you managed Postgres + pgvector (vector search built in) for $25/mo:

  • 8GB database + 100GB storage on Pro tier
  • No server to manage, automatic backups, dashboard for debugging
  • pgvector pre-installed, just works
  • Alternative: any Postgres with pgvector extension (self-hosted, Neon, Railway, etc.)

Prerequisites

  • A Supabase account (Pro tier recommended, $25/mo) OR any Postgres with pgvector
  • An OpenAI API key (for semantic search embeddings, ~$4-5 for 7,500 pages)
  • A git-backed markdown knowledge base (or start fresh)

Available init options

  • inbrain init --supabase -- interactive wizard (prompts for connection string)
  • inbrain init --url <connection_string> -- direct, no prompts
  • inbrain init --non-interactive --url <connection_string> -- for scripts/agents
  • inbrain doctor --json -- health check after init

There is no --local, --sqlite, or offline mode. Inbrain requires Postgres + pgvector (local PGLite or remote Supabase / self-hosted).

Phase A.5: Choose Topology (run BEFORE Phase A)

Inbrain supports three deployment shapes. Pick the right one before installing, because picking wrong creates contention or duplicate work that's painful to unwind. Read docs/architecture/topologies.md for the full picture; the short version:

Ask the user this BEFORE running inbrain init:

"Three deployment shapes:

  1. Single brain (default) — one machine, one DB, one agent. Pick this if unsure.
  2. Cross-machine thin client — your brain lives on another machine (e.g. brain-host) running inbrain serve --http, and this install just calls it over MCP. No local DB on this machine.
  3. Per-worktree code + shared remote artifacts — Conductor users with multiple worktrees indexing the same code repo. Each worktree owns its own code engine; artifacts live on a shared remote brain. For code engines, configure Voyage's code-tuned model: inbrain init --pglite --embedding-model voyage:voyage-code-3 --embedding-dimensions 1024 (full guidance in docs/architecture/topologies.md Topology 3).

Which fits?"

If the user picks 1 (single brain) — proceed to Phase A

Continue with the existing inbrain init --supabase / --pglite setup below.

If the user picks 2 (cross-machine thin client)

  1. Confirm a host already exists. Ask: "Is the remote inbrain serve --http already running on the host machine?" If no, the user needs to set up the host first (Phases A-C on the host, then inbrain serve --http). Don't try to run init on this machine until the host is up.

  2. Get OAuth credentials from the host operator. Ask the user to run on the host:

    inbrain auth register-client <name> \
      --grant-types client_credentials \
      --scopes read,write,admin
    

    The admin scope is required because inbrain remote ping and inbrain remote doctor (Tier B convenience commands) call MCP ops with admin scope. read,write alone breaks ping/doctor.

  3. Run thin-client init on this machine:

    inbrain init --mcp-only \
      --issuer-url https://<host>:<port> \
      --mcp-url https://<host>:<port>/mcp \
      --oauth-client-id <id> \
      --oauth-client-secret <secret>
    

    Or set INBRAIN_REMOTE_CLIENT_SECRET env var instead of the flag (preferred for headless / scripted setup). Pre-flight runs three smoke probes; any failure surfaces an actionable error.

  4. Configure your agent's MCP client. Add a server entry pointing at <mcp_url> with the bearer token. See docs/mcp/CLAUDE_DESKTOP.md, docs/mcp/CLAUDE_CODE.md, etc. fo

Полный SKILL.md на GitHub

Установить setup в Claude Code и Claude Desktop

Зарегайся, чтобы установить скилл

Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.

  • Открой команду установки в одну строку
  • Сохраняй скиллы в синхронизируемую библиотеку
  • Уведомления, когда скиллы обновляются
Зарегаться бесплатноУ меня уже есть аккаунт

Разрешённые инструменты

Инструменты, которые скиллу разрешено вызывать.

get_stats
get_health
sync_brain
put_page

FAQ

Что делает скилл setup?

Set up Inbrain with auto-provision Supabase or PGLite, AGENTS.md injection, first import

Как установить скилл setup?

Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.

Скилл setup запускает скрипты?

Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.

Похожие скиллы

Сравнить setup с