Skip to content

Codex

Brilliant registers itself with Codex when it starts and finds ~/.codex, or you check Codex CLI / ChatGPT app in Settings, MCP connections. Restart your Codex session. The one entry in ~/.codex/config.toml serves both the Codex CLI and the ChatGPT desktop app.

Checked against OpenAI’s Codex docs on November 6, 2026.

How do I connect Codex to Brilliant?

Four steps, once per machine. Keep Brilliant open while Codex works.

1

Enable Codex in Brilliant.

Open Settings (Cmd+, on macOS, Ctrl+, on Windows) and choose MCP connections. Codex CLI / ChatGPT app is already checked when ~/.codex existed at startup. Otherwise check it.

2

Restart your Codex session.

Brilliant wrote the entry shown below. Restart the CLI session, or the ChatGPT desktop app.

3

Verify the connection.

Run codex mcp list in a terminal, or type /mcp in the Codex CLI or in the composer of the ChatGPT desktop app. brilliant is in the list.

4

Send a first prompt.

Ask Codex: "Design a three-tier pricing section in Brilliant." Native, editable elements land on your canvas.

What does Brilliant write to Codex’s config?

Brilliant writes a [mcp_servers.brilliant] table in ~/.codex/config.toml, with the address in url. The CLI, the IDE extension and the ChatGPT desktop app all read this file.

DetailValue
File on macOS~/.codex/config.toml
File on Windows%USERPROFILE%\.codex\config.toml
Server key[mcp_servers.brilliant]
Entry fieldsurl
~/.codex/config.toml
[mcp_servers.brilliant]
url = "http://127.0.0.1:3333/mcp"

A checked tool follows Brilliant’s port on every start, so you never toggle again. By hand, use the address at the bottom of MCP connections: 3333, or 3334 or 3335 when 3333 is taken.

By hand, paste the table into the file, or run codex mcp add with --url.

Terminal
codex mcp add brilliant --url http://127.0.0.1:3333/mcp

How do I connect Codex to brilliant.design?

Run this once, open brilliant.design in Chrome, Edge or Firefox with WebGPU, and start Codex. It needs Node 20 or later. The same entry reaches the desktop app when it is open. Read more in browser setup.

Terminal
codex mcp add brilliant -- npx -y @brilliant-hq/mcp

What if Codex doesn’t see Brilliant?

Restart your Codex session and send a message. Codex starts the connection when a session starts.

What you seeWhat to do
You restarted and nothing changedStart a Codex session and ask it anything.
Brilliant did not add the entryRun Codex once so ~/.codex exists, then reopen Brilliant, or check the row.
An unchecked row is checked againBrilliant registers Codex at each start while ~/.codex exists.
Calls fail or the connection is refusedOpen Brilliant. Its local server runs only while the app is open.
The row reads Another Brilliant instance owns this configCheck the row in the copy of Brilliant you are using, then restart the tool.
The row is unchecked, but the file has a brilliant entryCheck the row. It rewrites the address.

Does this work in ChatGPT on the web?

Not through this Codex entry: use the ChatGPT desktop app for that. It reads ~/.codex/config.toml, and ChatGPT on the web does not read local Codex config files. To design in ChatGPT on the web, add Brilliant Design from the ChatGPT app directory. See Brilliant for ChatGPT.

Where next?