AgentsConnect Grok

DocsAgents

Connect Grok

Use xAI's Grok Build CLI with your LUCI memory. Chat with it inside LUCI, or keep it in your terminal and connect it with skills or MCP.

Grok works on the code in front of it. The page you read in the browser, the error in another window, and what was said on this morning's call are all outside it. LUCI lets it look those up.

There are two ways to use Grok with LUCI. They read the same memory, and you can use both.

Inside LUCIOn its own
Where you typeLUCI's chatYour terminal, as usual
Good forAsking about your day, meetings, catching upCoding that needs something you saw earlier
SetupPick Grok in LUCI's settingsInstall LUCI's skills, or add LUCI over MCP

Both need xAI's Grok Build CLI (the grok command) installed and signed in on this computer. If you don't have it yet, start with Install Grok.

1. Use Grok inside LUCI

LUCI's chat runs the Grok CLI already on your computer: the same grok you use in a terminal. It runs signed in as you, on your own xAI plan. Inside LUCI it already has your memory: ask "what did I do yesterday afternoon?" and it looks it up instead of asking you.

Pick Grok as your agent

  1. Open Settings → Agent access.
  2. Under Agents, click Grok. Its Account row should say Signed in.
  3. Click the round button next to Default agent. Grok now answers in chat, and writes your meeting notes and daily pages.

Then click New chat and ask. The model is under the chat box, so you can switch it per chat.

If Grok shows "Not found"

LUCI looks for the grok command in the usual install locations, including ~/.grok/bin, where xAI's installer puts it. If you installed it somewhere else, give LUCI the path yourself.

  1. Install Grok if you haven't, and sign in.
  2. In LUCI, open Settings → Agent access → Agents → Grok, and fill in Binary path in the Runtime card. The default is C:\Users\you\.grok\bin\grok.exe on Windows and ~/.grok/bin/grok on macOS. Installed it another way? Use the path it went to.
  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 Grok on its own

Keep working in Grok where you always do, and let it look things up in your memory as it goes: "use the error I had in the terminal yesterday afternoon", and it finds it and keeps going.

There are two ways to connect it. Pick one.

Skills (recommended)MCP
What Grok 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 commandOne command

Option A: Install LUCI's skills

  1. Open Settings → Agent access.
  2. Under Agent skills, find Grok and click Install.
  3. When it says Installed, you're done. LUCI writes the skills into ~/.grok/skills/.

If the row says Not detected, LUCI didn't find ~/.grok on this computer. Install Grok and run it once, then open Settings → Agent access again.

Or from a terminal

npx skills add Memories-ai-labs/Luci-skills -a grok -g

-g installs into ~/.grok/skills/ for every project. Leave it off to install into the current project's .grok/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 Grok:

Install this agent skill for me: https://github.com/Memories-ai-labs/Luci-skills

Option B: Add LUCI over MCP

LUCI doesn't have a ready-made Grok snippet, but the URL and token work the same way.

  1. In LUCI, open Settings → Agent access → Manual MCP setup, and copy the URL and Token.

  2. Add LUCI to Grok with your URL and token filled in:

    grok mcp add --transport http luci <url> --header "Authorization: Bearer <token>"
  3. Run grok mcp doctor luci and check that it connects.

If you already added LUCI to Claude Code or Cursor over MCP, Grok may have picked it up already: it also reads their MCP settings. grok inspect lists every server it loaded.

Start a new session and ask

Grok loads skills and MCP servers when a session starts, so open a new one after connecting. Then ask in plain words:

  • "Use the error message I had in the terminal around 4 PM yesterday."
  • "What was I changing in this repo on Friday before I stopped?"
  • "Find where we discussed the schema change in today's call."
  • "Distill my day."

Install Grok

Skip this if grok --version already works in your terminal.

xAI's Grok Build docs have the install command for each platform. Watch for the name: other tools also call themselves "grok cli", and LUCI runs xAI's. After installing, sign in:

grok login

Grok's usage is billed to your own xAI plan. LUCI doesn't add to it.

If something's off

Grok shows "Not signed in". Run grok login in a terminal, then click Refresh in Settings → Agent access.

Grok shows "Not found". Fill in Binary path, see If Grok shows "Not found".

Grok 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 ~/.grok/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.