/superlocalmemory-codex:slm-mediafrom SuperLocalMemory (Codex)
Saves pictures and PDFs in local memory and retrieves them by describing their content. Uses OCR and a local vision model for indexing.
Ships in SuperLocalMemory (Codex). Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
SuperLocalMemory can keep a picture or a PDF as a memory and find it later by describing what it shows or what it says. A picture model runs on this computer (EmbeddingGemma 2). OCR reads the text inside pictures. Each PDF page is indexed by its picture and by its text. Unless the optional picture description below is on, no generative model looks at the files, so SLM cannot describe a picture to you: it finds it, and you look at the thumbnail it returns.
This feature is on by default: on a computer with 16 GB of memory or more SLM
sets it up and downloads its models by itself (a few minutes after the SLM service
starts, when the computer is idle); on a smaller one the person taps one button
(slm media enable). Pictures live in their own database (media.db); setting it
up does not change any existing memory or embedding. slm media status and
media_status with setup=true say in plain words what is happening.
Save one when the user asks, or when the file is itself the thing worth finding again: a screenshot of an error they will meet again, a diagram of a design decision, a receipt, a scanned page, a PDF spec. Do not save a file just because it was shown in the conversation.
Add words with content. The picture is found by what it shows, by the text
read inside it, and by the words you add, so a short sentence about why it
matters ("Staging dashboard after the Postgres 17 move") helps recall.
Never save a picture or PDF that shows a password, key, token, card number, government id or private data about a third party. The text read from a file is scanned like any saved text, but a screenshot of a secret should not be saved at all. Ask the user first if you are unsure.
The five tools below are listed only while pictures and documents are on, and
only in the full, power and whole MCP tool sets. They are not in core
or code. The tool set is fixed when the MCP server starts, so after the
feature is turned on, restart the MCP session (slm restart starts the
picture worker too). Do not guess: run
slm media status
It says whether the feature is off, set up, still setting up, or failed
(slm doctor explains a failure). The same status is in the dashboard under
Documents & Images.
slm media enable # shows the download size and a disk check, then asks; --yes skips the question
Setting it up downloads about 1.5 GB of models and tools. From 15 GiB of memory
(a computer sold as 16 GB) SLM does it by itself; below that enable is a
one-click download that prints "This computer has 8.0 GB of memory; pictures and
documents may be slow and the models are released when memory runs low." and is
never refused for memory. A person who turned it off (slm media disable) keeps
it off: the automatic set-up never undoes that. Never turn it on again, or pass
--yes, without the user saying yes in this conversation. Never set
SLM_MEDIA_ALLOW_LOW_RAM=1 yourself (the developer switch that makes a small
computer take the automatic path): the owner decides that.
Supported: macOS on Apple Silicon, Windows x64, Linux x86_64 and Linux ARM64 (aarch64), Python 3.12 to 3.14. Not supported: Intel Macs and Windows on ARM.
Other commands:
slm media status # what is on and how set-up is going
slm media disable # off again; memories are kept (--remove-files also deletes the downloaded models)
slm media gc # report picture records without a memory and files without a record; removes nothing
slm media gc --apply # remove them (owner or admin); never touches SLM's databases
slm media repair --dry-run # count pictures that cannot be found by what they show yet
slm media repair # re-embed them (owner or admin); run again if it says pictures are left
All take --json. Run slm media repair when a save says a picture "can't be
found by what it shows yet", or after the picture model changed.
remember_media — save a pictureremember_media(
path: str = "", download_url: str = "", base64: str = "", file = None, # give exactly one
content: str = "", tags: str = "", profile_id: str = "",
idempotency_key: str = "", scope: str = "", shared_with: str = "",
) -> dict
Give exactly one of path (a file on this computer), download_url (an
https link), base64, or file (a picture attached in a ChatGPT chat;
ChatGPT fills it in, never write it by hand). Two or none is refused
(invalid_request). scope (personal, project, shared, global) and
shared_with (comma-separated profile ids) work as in remember: leave them
unset unless the user asked to share. Formats: PNG, JPEG, GIF (first frame)
and WebP.
Returns success, status, and on success a media_id and a resource,
slm://media/<media_id>. With the optional picture description on (see below)
it also returns description, the model's few words about the picture. Report
what the tool returned; do not say "saved" unless success is true.
remember_document — save a PDFremember_document(
path: str = "", base64: str = "", download_url: str = "", file = None, # give exactly one
file_name: str = "", content: str = "", tags: str = "", profile_id: str = "",
idempotency_key: str = "", scope: str = "", shared_with: str = "",
) -> dict
Same sources and rules as remember_media, for a PDF. The work continues in
the background; the answer has a job_id (and document_id). Follow it with
media_status. Each page is indexed by its picture and its text layer.
media_status — follow a documentmedia_status(job_id: str, profile_id: str = "") -> dict
job_id is the 32-character hex id from remember_document. Poll sparingly
(every few seconds at most) and stop when the job is finished or failed. A PDF that cannot
be finished (password-protected, over 500 pages, a page that takes too long)
is marked not finished with the reason in plain words. Pages read before it
stopped stay in memory. The dashboard has a Try again button, or drop the
same file again.
get_media — look at a saved pictureget_media(media_id: str, variant: str = "thumb", profile_id: str = "") -> image
Returns the thumbnail (WebP) as an image, never as text. Only thumb
exists. A thumbnail is at most 32 KB.
media_upload_link — for web apps onlymedia_upload_link(kind: str = "image", note: str = "", profile_id: str = "") -> dict
kind is image or document; note is the words to save with the file.
Only an app on another computer can call it (an app on this computer gets
not_for_local and passes a path instead). It returns url, expires_at
and max_mb. Tell the person to open the link in any browser, pick the file
and press Save. The link works once, expires in 10 minutes, belongs to the app
that asked for it, and must not be shared. You cannot see the upload: do not
say the file was saved until the person tells you it was.
A refused call returns success: false, status: "refused", a code and a
plain error; retryable: true means try again later.
code | Meaning | What to do |
|---|---|---|
invalid_request | Not exactly one source, a bad job id, or a file object without download_url and file_id | Fix the call |
not_for_remote | This app has not been given pictures and documents | Ask the owner to allow it (see below) |
path_not_for_remote | A web app tried to name a file on the owner's computer | Send a link or data, or use media_upload_link |
too_large_for_remote | A web app pasted more than 512 KB | Use media_upload_link |
not_allowed, refused | The daemon refused (role, size, type, a link host not on the allowed list) | Read error; do not retry the same call |
DAEMON_UNAVAILABLE | SLM is not running | slm status, then slm restart; retry once |
error | Unexpected failure, retryable: true | Retry once |
A normal recall searches pictures and pages beside text memories. A result
that came from a picture or a PDF page has a media block:
{
"media": {
"media_id": "<32 hex>",
"kind": "image",
"thumbnail_uri": "slm://media/<media_id>/thumb",
"page": null,
"document_id": null,
"citation": ""
}
}
For a PDF page, kind is page, page is the page number, document_id
names the document and citation reads page 12. When you call recall from
an app on this computer, up to three thumbnails follow the JSON as image
blocks; the thumbnails are never inside structuredContent. Use get_media
for any other result.
Rules for reading them:
abstained is true, say you do not have a picture or page that answers
the question. See slm-recall.citation) so the person can check it.Three parts on top of pictures and documents, on by default. Two download a
model: on 16 GB of memory or more SLM downloads them by itself, and below that
the size is shown first and nothing downloads without a yes. A part the person
turned off stays off, and turning one back on is their decision: say the size,
and never pass --yes for them unless they asked for the download.
slm media pack status # each part, its state and its download size
slm media pack enable captions --yes # Describe pictures: a 0.5 GB download
slm media pack enable documents --yes # Read scanned documents better: a 1.9 GB download
slm media pack enable regions # Remember where text was found: no download
slm media pack disable captions # off again (--remove-files also deletes the model)
[Description written by a model] and comes back in the receipt as
description. It is a model's words, never the person's: quote it as "the
description says", and check the thumbnail before you rely on it. A
description that fails (or a worker that is busy) never blocks a save; the
picture is saved without it.fetch(why=true) (and slm why) then carries source_regions, for example
from page 3, top left. Give that place when you cite a picture or a scanned
page.A part only acts once its model is on this computer, so it needs pictures and documents set up first and free disk space; on 16 GB or more the service downloads both models by itself, one at a time, and a part you disabled stays off (below 16 GB it is one click). The kill switch turns all three off. Only one of these models is in memory at a time, in its own worker, and it is released a minute after its last use. The dashboard has the same three switches under Documents & Images, in plain words. Nothing here adds an MCP tool.
| What | Limit |
|---|---|
| One picture | 25 MB from a file, the dashboard or an upload link; 8 MB as pasted base64 from an app on this computer; 512 KB when a web app pastes it |
| One PDF | 100 MB (change with SLM_DOC_MAX_MB); 25 MB pasted from an app on this computer; 512 KB when a web app pastes it |
| PDF pages | 500. A longer PDF is refused as a whole, not cut short |
| Text kept from a picture | The first 8,000 characters |
| Pictures and PDFs per profile | 2 GB |
| Upload links | 3 open at a time per connected app, 20 uploads per app per day |
media.db and its picture folder. Location data (GPS) in a
photo is never read.path needs the owner or an admin in a company
workspace. SLM's own data folder can never be named as a path or a source.slm sources are never shown to web
apps. A web app cannot change, delete, pin or replace a memory it is not
allowed to see: it is answered as if that memory did not exist.A web app (ChatGPT, Claude on the web, Grok Bot, Muse, Composio) can use
these tools only when all of these are true. This is why a call may be
refused with not_for_remote or not_allowed.
slm remote keys allow web-<connection id> media was run on the SLM
computer (find the key with slm remote keys list).The owner does these steps; an agent cannot. Turning pictures off for the connection also ends any upload link not yet used.
How a web app adds a file:
file to
remember_media or remember_document. The computer downloads it only from
ChatGPT's own file hosts plus hosts the owner lists in SLM_MEDIA_URL_HOSTS.
If a save is refused with "That host is not on the allowed list", the owner
must add the host. Never type a link into download_url yourself and expect
it to work: links a model writes need the owner's list.media_upload_link, show the
link, and wait for the person to say they saved the file.A web app saves to its key's own profile only, cannot name a path, and cannot
pass a file the owner's list does not allow. More: docs/remote-access/hosts.md
and docs/pictures-and-documents.md.
slm sources add ~/Notes --kind obsidian # or --kind folder; shows what would be read, then asks
slm sources list
slm sources report <id> # what was skipped, held back or failed
slm sources rescan <id>
slm sources remove <id> [--purge] # --purge also erases the memories the folder gave
slm sources forget-empty <id> # for a folder you emptied on purpose
A source is read-only: SLM mirrors Markdown, text, canvas files, PDFs and
PNG, JPEG and WebP images into memory and never writes to the folder. Files
that look like they hold a secret are held back and listed in report. PDFs
and pictures inside a folder are read only while pictures and documents are
on; files skipped earlier are read on the next scan once they are. Connecting
a folder needs the owner or an admin. add asks before it connects and
remove --purge needs the typed word erase; without a terminal both need
--yes, so do not pass --yes unless the user said yes to that folder. In
the dashboard, Choose folder opens the computer's own folder picker.
With pictures and documents on, slm embedder upgrade (or the card in
Settings) re-reads existing memories with the same on-device model that reads
pictures, so text and pictures share one search space. It runs in the
background, recall keeps working, the previous engine's data stays until the
owner frees it (slm embedder forget-previous), and slm embedder rollback
goes back. If it cannot run, the command prints the reason.
It is not available for text yet: recall's answer check is not calibrated for
EmbeddingGemma 2 (the best fit so far answered questions that have no answer),
so the command refuses with that reason. Do not offer it, and never pass --force for the user.
If slm doctor reports "Answer check fit" as a warning, the user's text already
moved in an earlier version: tell them slm embedder rollback goes back in
minutes (previous vectors are kept) and let them decide.
slm-recall — reading results and the answer checkslm-remember — text memories; use it for facts, this skill for filesslm-web-access — connecting web apps and the permissions aboveslm-mesh — bots can pass media:<id> references in messagesslm-governance — roles that gate path reads and foldersslm-status — slm media status and slm doctorSome hosts block local MCP servers by policy, and many agents, bots and agent frameworks never had them. SuperLocalMemory works the same from any shell, so this skill still applies:
slm status --json first. Never report "SLM unavailable" only because an MCP tool is missing.slm tool <name> --json '{...}', with the same arguments, checks and results: a successful call prints exactly what the MCP tool returns, and a failed one prints "success": false with error.code and error.message. slm tool describe <name> shows one tool's arguments; slm tool list lists the tools available right now (pictures and documents appear once they are turned on, slm media status).slm command answers in one JSON document on stdout: add --json after it, put slm --json before it, or set SLM_JSON=1 in the environment. slm mcp, slm session and slm session-context ignore SLM_JSON so servers and hooks keep working; give them --json directly. Read success first; a failure carries error.code and error.message. Exit code 0 means success, 1 that the command ran and failed (error.exit_code keeps a more specific code), 2 that it could not run, 130 that it was interrupted. Under JSON a command never asks a question: one that needs a confirmation answers confirmation_required and names the flag. slm gdpr export streams its document over several lines.slm recall "<question>" --json and slm remember "<text>" --json. slm help --json lists every command with its options.The slm-cli skill has the full command reference.
SuperLocalMemory v4.2.34 · Qualixar · AGPL-3.0-or-later
What SKILL.md sets; muted values are Claude Code's defaults
- "Save this screenshot / photo / PDF" - "Find the picture where ..." or "which page of the PDF says ..." - "Add this document to my memory" - A web app (ChatGPT, Claude on the web, Grok Bot, Muse, Composio) cannot send a file itself - remember_media, remember_document, get_media, media_status or media_upload_link is missing from the tool list - "Turn on pictures and documents", slm media status, slm media repair - "Connect my Obsidian vault / notes folder" (slm sources)
Three short reads, in order
local-memory, image-search, pdf-search, ocr, media-management
npx claudepluginhub qualixar/superlocalmemory --plugin superlocalmemory-codex17 skills in this plugin
/slm-bot-memoryCross-bot memory on a shared computer (Grok Bot, Cursor plugin, any host where several agents share one machine). Explains agent_id attribution vs. profile/scope access, how to namespace by agent_id + profile + scope, and what must never be written to memory. Read this before the first remember/recall on a new Grok-Bot-style host./slm-cacheKV cache for repeated reads — call slm_cache_get(key) first; on a miss do the expensive operation then slm_cache_set(key, value, ttl_seconds) to store it; on a hit use the returned value directly; always fail-open (hit:false on any error, never raises); saves tokens when the same file, query result, or tool output is read more than once in a session./slm-cliUse SuperLocalMemory from the shell when its MCP tools are not available to you. Every MCP tool runs as `slm tool <name>` with the same arguments, checks and JSON result, and the session protocol (start, recall before answering or searching, cue check before editing, remember decisions, pictures and PDFs, close) has a command for each step. Includes the full tool-to-command table./slm-compressCompress large text, tool output, or transcripts to reduce context-window usage while keeping the full 1M window intact — call slm_compress(content, mode, reversible, ttl_seconds) to shrink content; if the result is lossy a ccr_id is returned so you can call slm_retrieve(ccr_id) later to recover the exact original; always fail-open (ok:false → continue with the original)./slm-getting-started-botFirst-session orientation for SuperLocalMemory on a headless bot host (Grok Bot, or any Cursor-format plugin install with no hooks, no dashboard, and no interactive setup wizard). What is different here vs. Claude Code/Codex, which 21 tools are actually available, and the first three calls to make./slm-governanceGoverned-workspace behavior for SuperLocalMemory. Covers roles (admin/member/viewer) and company mode, who administers a company-mode workspace (a signed-in admin, or `slm team` on the SLM computer), `slm token show` in strict mode, what remote web apps can never see or change, retention and lifecycle settings, the audit trail, GDPR export and erasure, and how agents must behave when operating under workspace governance. The audit and retention tools need the power MCP profile. Agents must never bypass governance controls.2 plugins in one repository ship this exact skill · first indexed Nov 23, 2026
Other plugins' skills for the same job