AgentsConnect Codex

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 LUCIOn its own
Where you typeLUCI's chatYour terminal or editor, as usual
Good forAsking about your day, meetings, catching upCoding and writing that needs something you saw earlier
SetupPick Codex in LUCI's settingsInstall 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

  1. Open Settings → Agent access.
  2. Under Agents, click Codex. Its Account row should say Signed in.
  3. 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.

  1. Install Codex if you haven't, and sign in.

  2. In LUCI, open Settings → Agent access → Agents → Codex, and fill in the Runtime card:

    FieldWhat to put
    Binary pathThe default is C:\Users\you\AppData\Local\Programs\OpenAI\Codex\bin\codex.exe on Windows and ~/.local/bin/codex on macOS. Installed it another way? Use the path it went to
    CODEX_HOME pathThe folder where Codex keeps its login and config: C:\Users\you\.codex on Windows, ~/.codex on macOS. Leave it empty unless you moved it
  3. 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 getsSearch tools, plus instructions for when to use them and jobs like distilling your day, recaps, and to-dosSearch tools only
When it uses LUCIOn its own, whenever a request is about your pastWhen it decides a tool fits, or when you ask
SetupOne click in LUCI, or one commandA few lines in config.toml

Option A: Install LUCI's skills

From LUCI

  1. Open Settings → Agent access.
  2. Under Agent skills, find Codex and click Install.
  3. 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-skills

Option B: Add LUCI over MCP

  1. 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.

  2. 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>" }
  3. Run codex mcp list and check that luci is there. Inside a Codex session, /mcp lists 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 login

Codex's usage is billed to your own ChatGPT plan or API key. LUCI doesn't add to it.

LUCI versus Chronicle

LUCIChronicle
Where memory livesThis machineOpenAI
PlatformsMac and WindowsmacOS research preview
Meetings and audioYesScreen only
Who can read itAny connected agentCodex only
PriceFreeChatGPT 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.

Stuck? Write to techsupport@memories.ai and a person answers.