Skip to main content
Glama

Memlio

A personal memory for Claude Code and Codex. Save a bookmark, note, or picture from inside the agent; find it later, from any project or session, by describing what you remember.

Everything stays on your machine: SQLite records, copies of saved files, a keyword index, and a small local embedding model for natural-language search. No accounts, no cloud, no API keys. A memlio command line is included for scripting and backups.

Status: early release, MIT-licensed. Tested on macOS with Node 24.

Install

Requires Node.js 22.13 or newer. See docs/SETUP.md if you need to install Node first.

npm install -g @yanggao7/memlio
memlio setup claude     # and/or: memlio setup codex

setup registers the MCP server and the /memlio skill with the agent and downloads the 23 MB embedding model once. Restart the agent afterward.

To run from a checkout instead: pnpm install --frozen-lockfile && pnpm build, then use node dist/cli.js in place of memlio.

Related MCP server: LumenCore

Use

From Claude Code (/memlio) or Codex ($memlio):

/memlio store https://example.com/article why this page matters to me
/memlio store /absolute/path/to/dashboard.png dark dashboard with orange charts
/memlio store A thought I want to keep
/memlio find that article about background jobs

The first URL, path, or quoted text is what gets saved; the rest becomes your note. On find, the agent searches the shared collection, reads the likely matches, and answers with the original link or file plus excerpts. Weak or missing matches are reported as such.

The same collection from a terminal. No setup is needed for this: the first command creates the collection and downloads the model.

memlio store "Try weekly screenshots of competitor pricing"
memlio store https://example.com/article --note "For my queue project"
memlio find "competitor pricing"
memlio status

Good to know

  • Bookmarks are fetched once for a readable text snapshot. Login-only, JavaScript-only, and bot-protected pages cannot be captured; the bookmark is still saved and your note stays searchable.

  • Files are copied, so deleting the original does not lose the memory. Text is extracted from .txt, .md, .csv, and .json. Images and PDFs rely on the description you give them; there is no OCR.

  • Saving files from the agent needs permission: memlio setup claude --allow-path ~/Screenshots. The terminal command can save any file you name.

  • Pasted screenshots are saved from the system clipboard. Paste the image into the prompt and send /memlio with an optional reason; the agent describes what it sees so you can find it later. From a terminal, copy a screenshot (Cmd+Ctrl+Shift+4 on macOS) and run memlio store --clipboard --description "...". Linux needs wl-paste or xclip.

  • Saving the same thing twice with the same note returns the existing item. A different note creates a second item.

  • Search combines keyword and semantic matching. If the model is missing, search still works on keywords and says so.

  • Data lives in ~/.local/share/memlio. Back it up with memlio export <new-dir> and restore with memlio import <dir>. memlio repair retries failed captures and rebuilds the search index.

More detail: setup and troubleshooting, how storing and search work, architecture decisions, validation results, and the original plan.

Development

pnpm test                                        # builds, then runs the suite without the model
MEMLIO_MODEL_CACHE=~/.local/share/memlio/models pnpm test   # also runs the real-model test
pnpm check                                       # types and formatting

License

MIT.

Related MCP Connectors

Related MCP Servers

  • A
    license
    Not graded
    quality
    D
    maintenance
    Provides AI coding assistants with persistent project memory to retain architectural decisions, code patterns, and domain knowledge across sessions. It stores data locally in a SQLite database, allowing agents to remember, recall, and manage project-specific context using full-text search.
    11 npm
    Apache 2.0
  • A
    license
    A
    quality
    B
    maintenance
    Persistent memory for Claude Code. Automatically indexes every conversation and provides production-grade hybrid search (BM25 + vectors + reranker) via MCP tools. 100% local, zero config, zero API keys, zero invoice.
    16
    33 npm
    7
    MIT