shmem admin
Administrative commands.
Hosted vs local routing. When a default remote is configured in ~/.shmem/remotes.json, every shmem admin group … and shmem admin project … command transparently routes to the server's authoritative state via the matching MCP tool (create_group, share_project, etc.) — the local ~/.shmem/groups.json and ~/.shmem/projects/ are not touched. Without a configured remote, the same commands run against local files as before. This is the only correct behavior for a multi-machine team: pre-routing, shmem admin group create on a hosted client silently updated only the local file, and the server never saw the group.
shmem admin status
shmem status gives the short version in plain words, and shmem status -v the full view below:
Setup: OK · capturing from Claude Code, Codex
Memory: 24,779 memories · since Mar 3
QA LLM: anthropic (claude-haiku-5-5)
Account: you@example.com on shmem.secondmoment.ai
synced 2 min ago
Project: my-project
Path: /Users/you/.shmem/projects/my-project
Facts: 247
Sources: llm=98, user=142, tool=7
Last: 2026-02-28 14:30 (5h ago)
Used: asked or searched in 3 of the last 4 weeks
QA LLM: anthropic/claude-haiku-5-5 (OK — provider serves this model)
Config: /Users/you/.shmem/.env
Setup: OK — capturing from Claude Code, Codex
The QA line verifies the configured model against the provider's live
catalog — not just that an API key is present. Presence in the catalog
alone isn't enough either: OpenAI keeps retired models in /v1/models
with a past shutdown_date even though invoking them 404s, so the check
requires the model to be listed and not past its retirement date. A
model the provider has retired breaks reads while leaving writes working,
so the summary line reflects it:
QA LLM: openai/gpt-5.3-chat-latest (MODEL NOT AVAILABLE — openai does not serve "gpt-5.3-chat-latest"; reads will fail)
openai rejected model "gpt-5.3-chat-latest": no such model — it does not exist, has been retired, or this API key has no access to it
fix: SHMEM_QA_MODEL is set to a model openai does not serve — edit SHMEM_QA_MODEL in ~/.shmem/.env, or unset it to use shmem's default (gpt-5.6-terra)
openai currently serves: gpt-5.6-luna, gpt-5.6-sol, gpt-5.6-terra
see the full live list: `shmem admin models openai`
Setup: DEGRADED — writes work, reads will fail (QA model unavailable)
A model that still works but has a published retirement date is reported without failing the setup, so there's time to act on it:
QA LLM: openai/gpt-4.1-nano (OK for now — openai retires this model on 2026-10-23 (59 days); pick a replacement before then)
Setup: OK — capturing from Claude Code (hooks and MCP server)
| Flag | Description |
|---|---|
--no-probe |
Skip the live model verification (no network calls) |
--json |
Machine-readable probe; adds qa_model and qa_model_status (ok / expiring / dead / unverified / skipped) |
shmem admin models
Lists the models a provider serves right now, marking the one shmem is configured to use. Run this when a model string needs replacing — the provider's own catalog is the authority, so there's nothing to guess at.
$ shmem admin models openai
openai lists 124 models:
gpt-5.6-sol
gpt-5.6-terra <- shmem is configured to use this
gpt-5.6-luna
gpt-4.1-nano <- retires 2026-10-23
gpt-5.3-chat-latest <- RETIRED 2026-08-10 — not invokable
...
Retirement state is part of the listing, not a footnote: OpenAI keeps retired models in its catalog, so an unannotated list would show a dead model as if it were a valid choice. When the configured model is retired or scheduled for retirement, that's called out explicitly at the end.
With no argument it uses the configured QA provider. --json emits the
list (with shutdown_date and retired per entry) for scripting.
Bedrock is not listable here — its catalog needs separate AWS
permissions.
shmem admin project
| Subcommand | Description |
|---|---|
list |
List all projects with fact counts. Signed in, it compares this machine with your account: each project's memories here and on the account, and which are on this machine only, local-only, or only on your other machines |
create <name> |
Create a new project (optional -d description) |
info <name> |
Show project path, fact count, and sharing info |
delete <name> |
Delete a project and its facts; each fact is deleted as shmem delete would, so shared facts are retracted first (requires confirmation or -y) |
share <project> |
Share a project with a group (-g group -p r|rw) |
unshare <project> |
Remove group access from a project; its readers drop their copies on their next sync |
shared |
List projects shared with you via your groups |
unsync <name> |
Take a project off your account and keep it on this machine only (requires typing the name, or -y) |
sync <name> |
Sync a local-only project: upload its memory here to your account, and sync it from now on. Projects you didn't pick at your first sign-in are local-only too |
Unsyncing a project makes its memory local to this machine again. On your account, memories only in the project are deleted, and your other machines drop their copies on their next sync. Memories also in another project stay on the account in that one and just leave this one. This machine keeps all of it, marked local-only:
- it stays searchable here;
- new memory saved in the project doesn't sync;
shmem push --allleaves it out unless you name it with--project.
A shared project is unshared first, once you confirm; its members lose access. default names memory in no project. The mark is this machine's alone: another machine that later saves memory in the project still syncs that. shmem admin project sync <name> undoes it.
shmem admin group
Manage groups for project sharing. Groups use owner/name namespacing (e.g. alice/team-a); a group you own can be named without the owner. Requires SHMEM_CALLER_USER to be set.
| Subcommand | Description |
|---|---|
create <name> |
Create a new group (created as <your-user>/name) |
delete <[owner/]name> |
Delete a group you own |
invite <[owner/]name> <user> |
Invite a user |
accept <owner/name> |
Accept a pending invitation |
list |
List groups you own, belong to, and pending invitations |
members <[owner/]name> |
Show members of a group |
shmem admin migrate-owner-identity
Repoint owner_user at your account identity on facts written before that
account was known. Rewrites owner_user only — authorship (caller_user,
including its device suffix) is left untouched.
Only locally-authored facts are eligible. Facts replicated into your store from other accounts (swept or pulled from shared projects) keep their real owner and are reported as skipped.
| Flag | Description | Default |
|---|---|---|
--to NAME |
Account identity to set as owner | Discovered via whoami |
--from NAME |
Only rewrite facts with this owner | Every owner that isn't --to |
--execute |
Actually rewrite (otherwise dry-run) | false |
shmem admin migrate-owner-identity # dry-run, target from the server
shmem admin migrate-owner-identity --to alice --execute
shmem admin telemetry
Turn anonymous usage reporting on or off. It is off by default. See Telemetry for what is sent once it is on.
| Subcommand | Description |
|---|---|
| (none) | Show the current state of both usage reporting and the update check |
on |
Turn usage reporting on (writes on to ~/.shmem/telemetry) |
off |
Turn it off, and silence the daily update check with it |
You can also set SHMEM_TELEMETRY=on or SHMEM_TELEMETRY=off in your environment.