Skip to content

yonro/xmemo-gemini-cli

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 

Repository files navigation

XMemo for Gemini CLI

Gemini CLI Extension

XMemo gives Gemini CLI a persistent, user-owned long-term memory. Store and recall facts, preferences, decisions, and project context across sessions — and share the same memory with every AI tool you use (ChatGPT, Claude, Copilot, IDEs, and more).

XMemo is user-owned: you control, view, edit, and delete your memories at xmemo.dev.

Install

gemini extensions install https://github.com/yonro/xmemo-gemini-cli

After installing, restart your Gemini CLI session so the extension loads.

Sign in (OAuth — no token needed)

XMemo uses automatic OAuth. The first time the memory_os tools are used, Gemini CLI detects the 401 from https://xmemo.dev/mcp, discovers XMemo's OAuth endpoints, registers a client, and opens your browser to sign in. Your tokens are stored securely by Gemini CLI for future sessions — no API key to copy or paste.

Prefer an API token instead? You can add "Authorization": "Bearer <token>" to the headers block manually, but OAuth is the recommended, zero-secret path.

What you get

  • A memory_os MCP server connected to https://xmemo.dev/mcp.
  • Tools to search, add, and update memories from inside Gemini CLI.
  • A GEMINI.md playbook that teaches the model when to store and recall memories.

How it works

Field Value
Transport Remote HTTP MCP (httpUrl)
Endpoint https://xmemo.dev/mcp
Auth Automatic OAuth 2.0 (RFC 9728 discovery + dynamic client registration + PKCE)
Agent label X-Memory-OS-Agent-ID: gemini-cli (so memories are attributed to this client)

OAuth authenticates you (the memory owner). The X-Memory-OS-Agent-ID header is a label that tells XMemo which client wrote a memory — it is attribution, not a security boundary. Your OAuth identity is the security boundary.

Manage the extension

gemini extensions list
gemini extensions update xmemo
gemini extensions disable xmemo
gemini extensions uninstall xmemo

Privacy

  • Authentication uses OAuth; tokens are managed by Gemini CLI, not stored in this repo.
  • No host environment variables are forwarded to the server.
  • You can delete any memory at any time from xmemo.dev.

Links

License

MIT — see LICENSE.

About

XMemo — user-owned long-term memory for AI agents, as a Gemini CLI extension (remote MCP over OAuth).

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors