Setup · Codex

Give Codex your company's business context

For developers who use Codex and want it to answer from your docs and data.

Updated

To give Codex your company's business context, add the BrainBox plugin, sign in with codex mcp login, and resume your session. Codex then looks up your definitions, docs and rules over MCP on demand instead of relying on what fits in AGENTS.md.

  • Three commands add the plugin and sign in; codex resume --last loads it.
  • Works in the Codex CLI, desktop app and IDE extension.
  • Keep AGENTS.md for short, stable instructions and use the Brain for larger, changing knowledge.
  1. 1. Fastest path: paste one prompt

    Paste this into Codex. It runs init, which signs you in through the browser and installs the plugin.

    Set up BrainBox in this project: run `npx -y @brainbox-labs/cli@latest init` and follow what it prints.
  2. 2. Or install the plugin by hand

    Run these in a terminal. The last command signs in through your browser.

    codex plugin marketplace add brainbox-labs/control-center-plugin
    codex plugin add brain@brainbox
    codex mcp login brainbox
  3. 3. Resume your session

    Quit Codex and run codex resume --last so it loads the plugin.

    codex resume --last
  4. 4. Ask your first question

    Ask Codex to use brain-recall.

    Use brain-recall: what does the brain know about refunds?
AGENTS.md or the Brain over MCP
AGENTS.mdBrainBox over MCP
Best forShort, stable instructions: build commands, conventionsLarger, changing knowledge: definitions, docs, rules, past events
How it is readThe file is loaded into contextCodex queries only what the question needs
How it is updatedYou edit and commit the fileYou re-sync a docs folder; changed files are ingested

Troubleshooting

Codex does not show the BrainBox tools after install.
Quit Codex and run codex resume --last so it loads the plugin.
The MCP server asks for sign-in or returns an authorization error.
Run codex mcp login brainbox and complete the browser sign-in.
You want only the MCP tools, without the skills.
Run codex mcp add brainbox --url https://ctx.brainbox-ai.app/api/org-mcp, then codex mcp login brainbox.

FAQ

Do I need an API key?
No. Sign-in is OAuth in the browser through codex mcp login.
Which Codex surfaces are supported?
The Codex CLI, desktop app and IDE extension, which share the plugin.
How do I add my docs?
Ask Codex to use brain-ingest on a folder, or run brainbox sync on it. See the guide on turning a knowledge base into something your agent can use.
Does this replace AGENTS.md?
No. Keep short, stable instructions in AGENTS.md. The Brain holds the larger body of company knowledge that the agent looks up when it needs it.

Related

Next: turn your knowledge base into something your agent can use. Other agents are on Get started.

Give Codex a brain.

Sign in and ask your first question.

Book a Demo