DocsAgents
Connect Codex
Use Codex with your LUCI memory on Mac and Windows. Chat with it inside LUCI, or keep it in your terminal and connect it with skills or MCP.
Chronicle proved that Codex is better with screen memory. It also locked that memory to macOS, ChatGPT Pro, and OpenAI, and dropped anything it judged one-off. LUCI gives Codex the same job from a memory that is local, includes meetings, and still has the moment Chronicle would have discarded.
There are two ways to use Codex with LUCI. They read the same memory, and you can use both.
| Inside LUCI | On its own | |
|---|---|---|
| Where you type | LUCI's chat | Your terminal or editor, as usual |
| Good for | Asking about your day, meetings, catching up | Coding and writing that needs something you saw earlier |
| Setup | Pick Codex in LUCI's settings | Install LUCI's skills, or add LUCI over MCP |
Both need the Codex CLI (the codex command) installed and signed in on this computer. If you don't have it yet, start with Install Codex.
1. Use Codex inside LUCI
LUCI's chat runs the Codex CLI already on your computer: the same codex you use in a terminal, not the ChatGPT app or an editor extension. It runs signed in as you, on your own ChatGPT plan or API key. Inside LUCI it already has your memory: ask "what did I do yesterday afternoon?" and it looks it up instead of asking you.
Pick Codex as your agent
- Open Settings → Agent access.
- Under Agents, click Codex. Its Account row should say Signed in.
- Click the round button next to Default agent. Codex now answers in chat, and writes your meeting notes and daily pages.
Then click New chat and ask. The model and effort are under the chat box, so you can switch them per chat.
If Codex shows "Not found"
LUCI looks for the codex command in the usual install locations. If you installed it somewhere else, or LUCI can't find it, give LUCI the paths yourself.
-
Install Codex if you haven't, and sign in.
-
In LUCI, open Settings → Agent access → Agents → Codex, and fill in the Runtime card:
Field What to put Binary path The default is C:\Users\you\AppData\Local\Programs\OpenAI\Codex\bin\codex.exeon Windows and~/.local/bin/codexon macOS. Installed it another way? Use the path it went toCODEX_HOME path The folder where Codex keeps its login and config: C:\Users\you\.codexon Windows,~/.codexon macOS. Leave it empty unless you moved it -
Click Refresh on the Account row. When it says Signed in, make it the Default agent.
Everything else about chatting in LUCI, from access levels to skills, is in Use your agent in LUCI.
2. Use Codex on its own
Keep working in Codex where you always do, and let it look things up in your memory as it goes: "use the failing test output from this morning", and it finds it and keeps going.
There are two ways to connect it. Pick one.
| Skills (recommended) | MCP | |
|---|---|---|
| What Codex gets | Search tools, plus instructions for when to use them and jobs like distilling your day, recaps, and to-dos | Search tools only |
| When it uses LUCI | On its own, whenever a request is about your past | When it decides a tool fits, or when you ask |
| Setup | One click in LUCI, or one command | A few lines in config.toml |
Option A: Install LUCI's skills
From LUCI
- Open Settings → Agent access.
- Under Agent skills, find Codex and click Install.
- When it says Installed, you're done. LUCI writes the skills into
~/.codex/skills/.
Or from a terminal
npx skills add Memories-ai-labs/Luci-skills -a codex -g-g installs into ~/.agents/skills/, the shared skills folder Codex reads in every project. Leave it off to install into the current project's .agents/skills/ instead. The repo has four of LUCI's skills: luci, distill-my-life, summarize-meeting, and luci-profile. The recap and to-do skills come only with the install from LUCI. You can also paste this into Codex:
Install this agent skill for me: https://github.com/Memories-ai-labs/Luci-skillsOption B: Add LUCI over MCP
-
In LUCI, open Settings → Agent access → Manual MCP setup, and pick the Codex tab. It shows LUCI's URL and token, and a ready-made snippet.
-
Click the copy button and paste into Codex. It copies the snippet wrapped in a short prompt, so Codex asks whether you want LUCI in every project or just this one, then edits the config for you.
Or add it yourself to
~/.codex/config.toml(every project) or.codex/config.toml(one project), with your URL and token filled in:[mcp_servers.luci] url = "<url>" http_headers = { "Authorization" = "Bearer <token>" }
-
Run
codex mcp listand check thatluciis there. Inside a Codex session,/mcplists its tools.
Start a new session and ask
Codex loads skills and MCP servers when a session starts, so open a new one after connecting. Then ask in plain words:
- "Search my memory for the failing test output from this morning."
- "What was I doing between 10am and noon?"
- "Find the part of the call where we picked the database."
- "Distill my day."
Install Codex
Skip this if codex --version already works in your terminal.
OpenAI's Codex CLI guide covers every install option and update. The short version:
# Windows (PowerShell) irm https://chatgpt.com/codex/install.ps1 | iex # macOS curl -fsSL https://chatgpt.com/codex/install.sh | sh # Or, on either, with npm npm install -g @openai/codex
Then sign in:
codex loginCodex's usage is billed to your own ChatGPT plan or API key. LUCI doesn't add to it.
LUCI versus Chronicle
| LUCI | Chronicle | |
|---|---|---|
| Where memory lives | This machine | OpenAI |
| Platforms | Mac and Windows | macOS research preview |
| Meetings and audio | Yes | Screen only |
| Who can read it | Any connected agent | Codex only |
| Price | Free | ChatGPT Pro |
You can run both. They do not conflict. Full comparison: LUCI vs Codex Chronicle.
If something's off
Codex shows "Not signed in". Run codex login in a terminal, then click Refresh in Settings → Agent access.
Codex shows "Not found". Fill in Binary path, see If Codex shows "Not found".
Codex on its own doesn't use LUCI. Start a new session after connecting. If it still answers from its own knowledge, say "check my LUCI memory".
Install says a folder is already there. A luci skill folder that LUCI didn't create is already in ~/.codex/skills/. LUCI leaves it alone. Move or rename it, then click Install again.
Still stuck? Write to techsupport@memories.ai.
Related
- Use your agent in LUCI
- Use your agent outside LUCI
- MCP
- Agent Bridge: what Codex sees when it reads your memory
- Claude Code, Cursor, OpenCode
Stuck? Write to techsupport@memories.ai and a person answers.