Give OpenAI Codex persistent memory across sessions and Agents.
Codex CLI starts fresh every run and cannot see what you decided in ChatGPT or Claude Code yesterday. Brainmi indexes your Codex history into one local SQLite vault and connects brainmi-mcp in one confirmed click.
Every new Codex session forgets prior repository invariants, migration gotchas, and rejected approaches.
Codex CLI cannot natively access your ChatGPT browser discussions or Claude Code debugging sessions.
Manually copying terminal transcripts risks leaking .env secrets and slows down every task switch.
Step-by-step setup on macOS
Index Codex local transcripts automatically
Install Brainmi Free for macOS and toggle OpenAI Codex ON. Brainmi reads your local Codex history with symlink-safe openat reads into ~/Library/Application Support/Brainmi/brainmi.db.
Connect offline brainmi-mcp with one-click backup
Click Configure MCP next to Codex. Brainmi previews the exact ~/.codex/config.toml path, asks for confirmation, creates a timestamped .bak backup, and wires the native brainmi-mcp stdio server.
Pull Memory Cards and prior threads inside Codex
Ask Codex to query Brainmi MCP tools for last week’s auth refactor, ChatGPT architecture decision, or failing test root cause — 100% offline with zero extra API keys.
Interactive Browser MCP Config Generator (Phase W2)
Brainmi macOS Desktop already writes and backs up your MCP config automatically in one confirmed click. A browser-only preview generator is slated for the next website release.
Frequently Asked Questions
Does OpenAI Codex have access to ChatGPT memory by default?
No. Codex CLI runs locally with isolated session logs and does not sync ChatGPT Web memory. Brainmi bridges both on your Mac so Codex can retrieve ChatGPT decisions via offline MCP.
How does Brainmi configure ~/.codex/config.toml safely?
Brainmi displays the target file path before touching disk, asks for explicit confirmation, saves a timestamped backup file, and supports one-click Undo inside Settings.
Does Codex memory indexing send my code to Brainmi servers?
Never. All Codex sessions and Memory Cards stay inside your local SQLite database on macOS with zero telemetry.
Can I use Codex + ChatGPT together on Brainmi Free?
Yes! Brainmi Free includes up to 2 local Agents and 2 cloud Agents active simultaneously with no registration required.
Related cross-agent guides
Cloud-to-Terminal · MCP Handoff
Brainstorm in ChatGPT. Implement immediately in Claude Code via MCP.
Claude Code · Local SQLite Memory
Go beyond static CLAUDE.md with searchable cross-project Claude Code memory.
Cursor · Read-Only Snapshot + MCP
Share Cursor memory across Claude Code, Codex, and web AI — without risking Cursor’s DB.