---
title: Connect Codex to your company's brain over MCP
description: One command, or two lines in config.toml, adds the brain to Codex as an MCP server: what it reads first, what it reaches as files, and how writing is approved.
url: https://instibrain.ai/connect/codex
updated: 2026-11-11
site: https://instibrain.ai/llms.txt
---

# Codex drafts in your voice.

Codex can write anything. The brain tells it your voice, your floor, and your reasons.

Sign up free  →  Take the tour

`style/voice.md` open space
asked Draft the release notes for 2.4.
codex, reading the page Drafted per style/voice.md: present tense, one change a line, no adjectives.
An exampleThe page and the draft are invented for this page.

the connection

## One command, or two lines.

The command writes the entry into `~/.codex/config.toml` for you.

- Add the server. `codex mcp add instibrain --url https://brain.instibrain.ai/mcp`. Nothing else installs.
- Sign in once. Approve it in the browser, and give it its spaces on Devices.
- Start it in the folder. In `~/instibrain`, the pages are files beside it.

a terminal  then ~/.codex/config.toml

```
$ codex mcp add instibrain --url https://brain.instibrain.ai/mcp

# what the command writes
[mcp_servers.instibrain]
url = "https://brain.instibrain.ai/mcp"
```

what it reaches

## Codex reads your open spaces from any terminal, and sealed ones as files.

Over MCP it reads every open space shared with you, from any terminal. On a computer that holds a sealed space's key, `~/instibrain/spaces/` holds its pages as markdown beside Codex. Codex reads `~/instibrain/AGENTS.md`, which the sync client builds from the identity and your profile, and the cockpit shows each write as Codex's, never anonymous.

before you add it

## Codex memory and AGENTS.md, answered.

**Does Codex need Node or the sync client?**

Neither, for open spaces. The sync client's installer brings its own Node.

**Which tools does Codex get?**

The reading tools at sign-in. Writing and managing come only when you tick them on the approval page; the tool reference has each.

**Can Codex and Claude Code share the brain?**

Yes. Each signs in on its own, and both read the same pages.

**Does Codex read AGENTS.md?**

Yes, and never `CLAUDE.md`. On a linked computer the sync client builds `~/instibrain/AGENTS.md` from the pages Claude Code starts from: the identity, `system/identity.md`, then your `user-profile.md`. The brain is the same for every AI.

**Does Codex remember between sessions?**

It starts from `AGENTS.md` and what it reads. Connected to instibrain, it reads your spaces too, so a later session finds what an earlier one wrote.

**Where is the Codex MCP setting kept?**

In `~/.codex/config.toml`. The one command writes it; adding the two lines by hand works the same.

## Codex drafts from your voice page, not from a guess.

Once your company has an account, one command connects Codex.

Sign up free  →  Take the tour
connect  Claude Code

Your AI in the terminal, which loads CLAUDE.md first.
connect  Your AI

What your AI reads once connected, and what it asks you first.

---

instibrain is made by WebWork AI, Inc. Everyone uses the same models · the difference is what yours knows.
