Skip to content

Workflow

Origin Workflow for Gemini CLI

Connect Gemini CLI as an MCP client and use Origin for local capture, recall, and handoff-style notes.

Qi-Xuan LuUpdated 5 min read

Article packet

01

Workflows

02

Gemini CLI users adding persistent local memory

03

5 min read

01

Gemini CLI can use the same Origin daemon through MCP.

02

Capture durable facts from command-line work.

03

Recall context from other Origin-connected clients.

01

Quick answer

Set up Origin, add Gemini CLI as an MCP client, verify with gemini mcp list or /mcp list, and ask Gemini to use the Origin MCP tools for context, capture, recall, and doctor checks.

Origin keeps those durable lessons in the same local store used by GUI and coding clients, so terminal work can feed later AI sessions.

02

When this problem appears

CLI sessions are especially easy to lose. A useful command, setup gotcha, or verified diagnosis disappears unless it is captured while the evidence is fresh.

03

Use Gemini CLI with Origin

Treat the CLI as another surface over the same memory layer.

  • Run Origin setup before adding the client.
  • Make sure Gemini CLI is installed and on PATH.
  • Add Gemini CLI with ~/.origin/bin/origin mcp add gemini.
  • Verify with gemini mcp list or /mcp list inside Gemini CLI.
  • Ask Gemini to use Origin MCP tools such as mcp_origin_context or mcp_origin_capture.
  • Capture verified setup and debugging lessons.
  • Recall by command, error string, or project name.
  • Capture a concise handoff-style note before ending a CLI session that future agents may continue.

Gemini CLI MCP setup

npx -y @7xuanlu/origin setup
~/.origin/bin/origin mcp add gemini
gemini mcp list

04

What to check next

Avoid capturing raw terminal output. Store the conclusion and the command that proved it when that matters. Origin uses Gemini's user-scope MCP setup; use project-scope or manual Gemini config only for isolated experiments.

Try the local memory loop

Install Origin, connect your AI client, and verify that capture, recall, and handoff work on your machine.

FAQ

Can Gemini CLI share memory with Cursor or Codex?+
Yes, if all clients are configured to use the same Origin daemon.
What should command-line sessions capture?+
Capture verified commands, setup gotchas, environment constraints, and handoff notes that future agents need.