Connect a source, let the Brain build, point your agent at it. The reference below covers the happy path; for anything deeper, we onboard every new team directly.
Run init in a terminal (Node 24 or later). It opens your browser to sign in or sign up, and installs the BrainBox plugin for Claude Code or Codex. There is no API key to copy.
npx -y @brainbox-labs/cli@latest init
Start with one database or a folder of docs. By default only schema metadata is read, never rows. Opt-in column profiling (--profile-data) samples rows for statistics, and full mode also sends enum values and JSON key shapes. Each additional source enriches the same brain.
npx -y @brainbox-labs/cli@latest ingest postgres://user:pass@host/db npx -y @brainbox-labs/cli@latest sync ./docs
Add --review to ingest to stop before publishing and check what was proposed. A person approves what ingestion produces before it merges into the model.
The Brain is served as a hosted MCP server. Claude Code and Codex get it through the plugin; Claude Desktop and ChatGPT add it as a custom connector. You sign in with OAuth.
# MCP endpoint https://ctx.brainbox-ai.app/api/org-mcp
Connect BrainBox to Codex, Claude Code, Claude Desktop, or ChatGPT and ask your first grounded question.
Sign in, sync a folder of docs into the Brain with brainbox sync, connect Claude Code or Codex, and ask your first question. About five minutes.
Install the BrainBox plugin in Claude Code, sign in to the MCP server, and ask your first question. The plugin adds the brain skills and the MCP server.
Add the BrainBox plugin to Codex, sign in with codex mcp login, resume your session, and ask your first question. Works in the Codex CLI, desktop app and IDE extension.
Add the BrainBox MCP server as a custom connector in Claude Desktop or claude.ai, sign in, and ask questions grounded in your Brain.
Add the BrainBox MCP server to ChatGPT as a custom MCP server, sign in, and ask questions grounded in your Brain. Plans, roles and steps checked against OpenAI's help article.
Six failure types behind wrong-table text-to-SQL errors, and how a Brain fixes each with entities, vocabulary, join keys, rules, annotations and metrics your agent reads before it writes SQL.
A template for documenting a database schema for AI agents: what to record, where it lives in the Brain, and how to connect Postgres, Trino or Athena and sync a data dictionary.
A template for a business glossary of metric definitions that AI agents can query: the fields to define, how metrics enter the Brain from dbt, Cube, MetricFlow or docs, and how agents read them.
How to keep what your agent knows current: brainbox sync, pending deletes and prune, re-ingest that retracts old facts, stale signals, and a refresh cadence by source type.
How to turn decision records and incident postmortems into agent context with Intelligence Traces: process_event, source pointers, thread continuity, and recalling decisions by entity.
How to expose an internal wiki to AI agents over MCP: export Confluence, Notion or markdown, sync the folder into the Brain, and connect an agent. No live connector is needed or offered.
How BrainBox controls access when agents read company knowledge over MCP: OAuth 2.0 with PKCE, read and write scopes, three scoped MCP endpoints, tenant isolation, human-only administration and revocation.
How to build the layered agent memory pattern from Anthropic's "Components of agent memory" on BrainBox: traces, learnings, wiki pages, get_index and a scheduled brain-dream pass, with a worked before-and-after from a real test run.
A complete walkthrough from an empty folder to a TypeScript agent that reads from a BrainBox Brain and writes a learning back, with full files, a check after every step, an MCP variant and troubleshooting.
A practical guide to retrieval over thousands of pages: silent caps, sharding without changing rankings, hybrid search, links as a graph, memory and warm-up.
What the Brain holds: entities, relationships, vocabulary, rules, processes and metrics, built from schema metadata and docs, with source attribution and human curation.
How the Wiki stores your documents verbatim, writes briefs from accumulated traces, keeps org-wide people pages, and lets agents search and file pages.
How process_event turns a meeting note, email or ticket into an immutable, Brain-grounded trace, and how agents recall traces by entity, thread, team or time.
How corrections become part of the Brain through learnings, and how agents report missing, stale or conflicting context into a human review queue.
How Skills work in the Brain: versioned markdown procedures served over MCP, created by agents or the CLI, and improved through skill-tagged learnings and reviewed revisions.
How personal pages let one person keep private preferences in the Brain across every agent they use, how privacy is enforced, and how a page can be flagged for admin review.
The BrainBox connectors: Postgres, Trino, Athena, SQL files, documents and dbt, plus MCP servers and NoSQL schemas. What each reads, the CLI command, and what lands in the Brain.
How to connect a Postgres database to BrainBox: the CLI command, what is read (schema metadata only by default), what lands in the Brain, column lineage and opt-in profiling.
How to connect a Trino catalog to BrainBox: the trino:// URL, what is read, that Trino has no enforced keys or indexes, and what lands in the Brain.
How to connect an AWS Athena database to BrainBox with the athena:// URL: credentials, options, what is read, and what lands in the Brain.
How to add SQL query files to a BrainBox database connection: what is parsed (referenced tables, columns, join patterns, named parameters) and the commands.
How to ingest documents into BrainBox: supported formats, ingest vs sync, analysis depth (none, shallow, deep), and what lands in the Brain.
How to upload dbt artifacts (manifest.json, catalog.json, semantic_manifest.json) to BrainBox, preview with --dry-run, and merge with a SQL connector.
Reference for the BrainBox CLI: install, sign in, the one-command ingest, sync and prune, the step-by-step meta and repo commands, and the local MCP server.
Reference for @brainbox-labs/sdk: the BrainBox handle, brain.ingest, brain.recall, brain.update, brain.sync, brain.projects and brain.serve, with a minimal example for each.
Reference for the BrainBox MCP server: the three endpoints (project, organization, tenant), OAuth 2.0 sign-in, and the tools grouped by purpose.
A context layer is the structured, reviewed knowledge between your business sources and your AI agents. What it holds, its building blocks, what it is not, and how the Brain is BrainBox's version of it.
A fair comparison of a context layer, a semantic layer, RAG and agent memory: what each is for, a scenario decision table, and the typical failure mode of each approach.
Eight context tools for AI agents grouped by approach: context layer, enterprise search, semantic layer, agent memory and docs for coding agents, with criteria, a watch-out for each, and cited sources.
A fair comparison of Glean and BrainBox for AI agents: who each is for, where Glean is strong, where BrainBox differs, and when to pick Glean instead. Competitor facts cited from Glean's own pages.
A fair comparison of Mem0 and BrainBox: memory for users and agents versus a reviewed, shared model of the business. Who each is for, where Mem0 is strong, and when to pick Mem0 instead. Facts cited from Mem0's own pages.
Context7 keeps coding agents current on library documentation; BrainBox grounds agents in your company's knowledge. A fair comparison, when to use each, and how they fit together. Facts cited from Context7's own pages.
Should you build or buy a context layer? The real cost drivers, an evaluation checklist covering ingestion, freshness, permissions, conflict resolution and evaluation, and when each choice is right.
A reproducible method for measuring whether business context improves an AI agent: conditions, ground truth, grading, repeat runs and reporting, using a public sample dataset. A method, not a results page.
client-setup-v1 has the complete walkthrough — credentials, MCP scopes, and connector commands — plus an examples/ folder with working sample projects you can clone and run.
Building something more involved — an embedded multi-tenant setup, a custom connector, the SDK? Start from the developer platform or talk to us — we onboard every new team directly.
Book a demo and we'll build a brain from a sample of your stack.