CLI
Pagination follows the shared Pagination and truncation contract (D154).
This page describes the remember CLI (v0.22.9), installed by pip install remember.
The remember command stores documents, asks the memory questions and
connects coding agents. It
comes with the remember Python package:
pip install remember
remember --versionIt needs Python 3.12 or newer. uv tool install remember installs it as a
standalone tool; uvx remember … runs it without installing.
Use the CLI if your agent can run shell commands. Its help and results enter the agent's context only when requested. MCP gives clients without a shell a curated tool list whose descriptions and schemas take context on every turn. See MCP tools.
Commands at a glance
| Group | Command | What it does |
|---|---|---|
| Memory | ingest | Upload one file. |
readiness | Check or wait for ingested versions to be queryable. | |
query | Ask a question, or run SQL queries and saved queries. | |
operations | List or run assured operations by name. | |
documents | Browse and manage documents, their history, references and effective periods. | |
forget | List forget records, or show one. | |
tags | List, register, change and delete document tags. | |
search | Find claims or source chunks. | |
resolve | Resolve a name to entities. | |
lookup | Find relations or observations. | |
graph | Traverse entity relations or document citations. | |
relation | Read evidence or decisions for one relation. | |
| Diagnostics | deployment | Show the build revision, model bindings and MCP tool versions. |
processing-layers | Show which processing layers the deployment serves. | |
| Agents | mcp | Serve the memory to a coding agent over MCP. |
setup | Write MCP configuration for your coding agents. | |
doctor | Check installation, credentials, connectivity and agent configuration. | |
| Not served | connectors | Talks to routes no deployment serves yet. |
| Engine operators | ops | Pipeline repair inside the engine container. |
remember with no command prints help and exits with status 2.
remember <command> --help prints that command's flags.
How the CLI finds your deployment
Commands that use the deployment API accept these connection and request flags.
| Flag | Meaning |
|---|---|
--timeout SECONDS | HTTP request timeout for SDK-backed commands. Overrides REMEMBER_TIMEOUT, default 300 seconds. For readiness --wait it also sets the polling deadline. |
--api-url URL | The deployment address. |
--api-key KEY | The API key. A bare key or a full Bearer … value. |
--project PROJECT | Which project to use, by id or name, when the key covers several. |
The doctor health probe keeps its short five-second check. Remote MCP bridge
mode uses its fixed 300-second timeout; --timeout and REMEMBER_TIMEOUT apply
to the local-engine MCP path.
Put flags after the subcommand: remember query sql --api-url … "SELECT 1".
Each setting is resolved on its own. First match wins:
| Setting | 1. Flag | 2. Environment | 3. Credential file | 4. Otherwise |
|---|---|---|---|---|
| Key | --api-key | REMEMBER_API_KEY | key | no key |
| Address | --api-url | REMEMBER_API_URL | api_url | http://127.0.0.1:8000 |
| Project | --project | REMEMBER_PROJECT | default_project | none |
The Python SDK resolves the same settings the same way (Python SDK).
A key read from the credential file is only sent to the address stored beside
it. If --api-url or REMEMBER_API_URL names another address,
the command exits with status 2 and asks for the key explicitly, with
--api-key or REMEMBER_API_KEY. A key you pass explicitly is sent wherever
you point it.
export REMEMBER_API_URL=http://localhost:8000
export REMEMBER_API_KEY=<the key your engine accepts, if any>
remember query "Who owns the billing migration?"Output
Pass --json before or after the command. A completed command writes one JSON
value to stdout, with the protocol streams listed below as exceptions. Diagnostics,
warnings and progress go to stderr. Check the exit status before using the result.
remember setup --json --self-hosted --agent cursor --dry-run
remember --json tags list
remember --json --version| Command | JSON output |
|---|---|
Memory commands and engine ops | Their documented result object. operations list and connectors list return arrays in JSON mode, including [] when empty. They keep one object per line in default mode. |
setup | backend (cloud or self_hosted), dry_run and the harnesses array. Harness IDs are cursor, agy, codex, claude_code and claude_desktop. JSON mode skips the backend question and requires an existing hosted key, --headless, or --dry-run for hosted setup. |
doctor | version, overall ok and checks. Each check contains name, ok and detail. A failed check still produces the report and exits nonzero. |
login | issuer, key_id and expires_at after approval. Instructions and the short browser approval code go to stderr. Complete the browser step while the command polls. |
whoami | api_url for a stored self-hosted connection. For a hosted key, issuer, key_id, expires_at, projects, permissions, default_project and account when available. |
switch | project (the new default project's ID) and name. |
logout | removed is true when the stored entry was removed and false when no entry was present. |
unmount | {"unmounted":true} on success. |
--version | version. |
mcp, mount | MCP stdout carries its JSON-RPC messages in stdio mode. Mount stdout carries newline-delimited JSON events as they happen. --json gives command-level failures the same stderr format as other commands. |
--help | Command help text. |
In JSON mode a failure emits a JSON object under error on stderr. Read
code, retryable and agent_action to choose the next step. Other stderr
lines can contain progress or warnings. See CLI and MCP errors.
For SQL result reports, read termination_reason to tell whether the
statement completed. See SQL query results.
For a confirmed permanent forget in a script, pass --yes. Without that flag,
JSON mode exits with confirmation_required before sending the request.
Exit codes
| Code | Meaning |
|---|---|
| 0 | Success. |
| 1 | A request failed, the credential file is unusable, a doctor check failed, or readiness --wait stopped on a dead-lettered stage or timed out. |
| 2 | Usage error: unknown command or flag, missing argument, or an argument the CLI could not parse (for example --parameters that is not a JSON array). Also a stored key refused for the address you named. |
Memory commands
remember ingest
remember ingest FILE [--filename NAME] [--mime MIME] [--title TITLE]
[--source-kind KIND --source-ref REF]
[--source-modified-at ISO8601]
[--versioning-mode {snapshot,living}]
[--source-version-ref REF]
[--version-key KEY]
[--effective-from ISO8601 [--effective-until ISO8601]]
[--tag TAG]... [--allow-forgotten]
[--api-url URL] [--api-key KEY] [--project PROJECT]Uploads one file and prints the new version as JSON:
{"deployment_id":"…","doc_id":"…","version_id":"…","content_hash":"…","created":true,"mime":"text/markdown","title":"…","versioning_mode":"snapshot","parked":null,"version_key":null}created is false when these exact bytes are already stored for the same
document; nothing is processed again.
| Flag | Default | Meaning |
|---|---|---|
FILE | required | Path of the file to upload. |
--filename | the file's own name | The name the document is stored under. The media type still comes from FILE's extension unless you pass --mime. |
--mime | from the file's extension (.md is text/markdown, .pdf is application/pdf; the full table is in Ingest files), else application/octet-stream | Media type. The engine processes only types it has a converter for; see File formats and converters. |
--title | none | Human title. |
--source-kind, --source-ref | none | The document's stable identity. Give both or neither. Re-ingesting with the same pair makes a new version of the same document. |
--source-modified-at | none | When the source last changed, for example 2026-11-20T14:03:11+01:00 from git log --format=%cI. Needs --source-kind/--source-ref. |
--versioning-mode | snapshot | snapshot or living; living needs --source-kind/--source-ref. See Updating a source. |
--source-version-ref | none | The source system's revision label. Needs --source-kind/--source-ref. |
--version-key | none | Your permanent name for this version, unique within the document, for example edition-2. A new key always creates a version. Needs --source-kind/--source-ref. |
--effective-from | none | When this version's text comes into force (included). Needs --source-kind/--source-ref and --versioning-mode snapshot. |
--effective-until | none | When it stops being in force (excluded), later than --effective-from. Omitted: until the next declared start. |
--tag | none | A registered tag, by name or id, to add to the document. Repeat it for several. Ingest only adds tags; see Tags. |
--allow-forgotten | off | Add back content of a forgotten document. Without it such a file is refused (error: API 409: …document_forgotten…); with it, it is accepted once that forget is no longer erasing and comes back under a new doc_id. See Adding forgotten content back. |
Supply ISO 8601 timestamps with Z or a numeric UTC offset for ingest,
as-of reads and date filters. The CLI converts them to UTC. For version keys
and periods, see Versions in force.
Exit status 2 when the source arguments break these rules, a timestamp
lacks an offset, or a period is malformed. Exit status 1 when the file cannot
be read or the upload fails, including a 409 for a key or period start already used by
another version, and a 422 for a tag that is not registered
(error: API 422: unknown tags: …).
remember ingest notes/2026-09-18-billing-sync.md \
--title "Billing sync, 18 September" \
--source-kind meeting-notes --source-ref billing-sync/2026-09-18
remember ingest travel-policy-2026.md \
--source-kind intranet --source-ref policy/travel \
--version-key edition-2 --effective-from 2026-01-01T00:00:00+00:00It prints the IngestedVersion as one JSON line. When the file's
conversion is parked waiting for a conversion route, the line has
"parked":"no_route" and the command also prints a warning to stderr that
names the release step (remember ops resume-no-route); the exit status stays 0,
because the file is stored. See
File formats and converters.
Ingest returns before processing ends. Pass the returned version_id to
remember readiness --wait.
remember readiness
remember readiness VERSION_ID... [--wait] [--timeout SECONDS] [--poll-interval SECONDS] [--require-p3]Check up to 1,000 version UUIDs from ingest. The command requires the pipeline,
search index (p1) and live graph to be ready. Add --require-p3 to also
require publication to the corpus.
Without --wait the command checks once, prints the readiness report as JSON
and exits 0 even if the report says "ready": false. With --wait it checks
immediately and waits 15 seconds between successful checks by default. Set a
positive --poll-interval to change the minimum gap between checks. The wait
deadline defaults to 1,800 seconds. An explicit --timeout sets both the wait
deadline and the maximum HTTP request timeout. REMEMBER_TIMEOUT sets the
HTTP request timeout when you omit the flag.
A stage marked failed can retry, so polling continues. Temporary connection
failures, request timeouts, and retryable server errors such as HTTP 503 or
524 also keep the wait going, with backoff within the original deadline.
A dead_letter stage or a non-retryable error such as HTTP 401 stops the
wait immediately. For a dead_letter stage, stderr names the version and stage.
At the deadline the command exits with status 1. Stdout contains the last
successful report if one was received. Stderr carries readiness_timeout and
includes the last retryable request error if there was one. Add --json to
read errors as JSON. See Wait until a document is queryable.
remember documents
remember documents list [--limit N] [--cursor CURSOR]
[--status {ingesting,converting,structuring,ready,failed}]
[--include-archived]
[--api-url URL] [--api-key KEY] [--project PROJECT]
remember documents search [QUERY] [--family FAMILY]... [--author NAME_OR_ADDRESS]...
[--recipient NAME_OR_ADDRESS]...
[--created-from T] [--created-to T]
[--modified-from T] [--modified-to T]
[--language LANG] [--include-archived]
[--thread-ref REF] [--doc-id DOC_ID]...
[--tag TAG]... [--any-tag TAG]... [--not-tag TAG]...
[--versions {current,all}] [--limit N] [--cursor CURSOR]
[--api-url URL] [--api-key KEY] [--project PROJECT]
remember documents archive DOC_ID [--api-url URL] [--api-key KEY] [--project PROJECT]
remember documents unarchive DOC_ID [--api-url URL] [--api-key KEY] [--project PROJECT]
remember documents forget DOC_ID [--yes] [--api-url URL] [--api-key KEY] [--project PROJECT]
remember documents tag DOC_ID [--add TAG]... [--remove TAG]...
[--api-url URL] [--api-key KEY] [--project PROJECT]
remember documents tag DOC_ID --set TAG [--set TAG]...
[--api-url URL] [--api-key KEY] [--project PROJECT]
remember documents section-history DOC_ID SECTION_KEY [--time JSON] [--limit N] [--cursor CURSOR]
remember documents references (--doc-id DOC_ID | --chunk-id CHUNK_ID) [--section-key KEY]
[--direction {incoming,outgoing,both}] [--kind KIND]...
[--time JSON] [--limit N] [--cursor CURSOR]
remember documents reference-generations DOC_ID VERSION_ID
remember documents set-references DOC_ID VERSION_ID FILE
remember documents set-effective-periods DOC_ID VERSION_ID --periods JSON
remember documents clear-effective-periods DOC_IDlist prints one page of documents as JSON, newest document first, in the
shape of DocumentPage. Pass the
page's next_cursor to --cursor to read the next page; next_cursor is null on
the last page. --limit is 1 to 200 (default 50). --status keeps only
documents whose newest version has that status. --include-archived also
lists archived documents, each with archived_at.
remember documents list --status failed | jq -r '.documents[] | "\(.doc_id) \(.title)"'search finds documents by name, metadata and text and prints a
DocumentSearchPage as
JSON. Repeat --family, --author, --recipient and --doc-id to list
several; any listed value matches. --tag keeps documents that carry every
listed tag, --any-tag those that carry at least one, and --not-tag those
that carry none; each is repeatable, and a tag that is not registered is an
error. --include-archived also returns archived documents, each with
archived_at. Dates are ISO 8601 with a timezone, for
example 2025-01-01T00:00:00+00:00. With a QUERY the results are ranked and
there is no next page; without one they are newest ingested first and
--cursor reads the next page. --limit is 1 to 200 (default 50), used as
the ranked result count with a query and the page size without one. A query
with --cursor is refused before sending a request. See
POST /documents/search.
remember documents search "q3 sales" --family spreadsheet | jq -r '.documents[] | "\(.doc_id) \(.file_name)"'
remember documents search --author alice@acme.com --created-from 2025-01-01T00:00:00+00:00
remember documents search --tag kind:decision --any-tag project:billing --any-tag project:supportarchive archives one document, every version of it: the memory stops
believing it, and it stays readable as history. It prints what changed:
{"doc_id":"…","archived_at":"2026-09-23T10:41:07.318000Z","claims_retired":12,"relations_closed":2,"observations_closed":1}Its claims stop counting as evidence, and facts that only it supported are
closed with a recorded retraction. list and search leave it out unless
you pass --include-archived. Archiving an archived document prints the same
archived_at with zero counts. See
POST /documents/{doc_id}/archive.
unarchive undoes an archive exactly and prints
{"doc_id":"…","claims_restored":12,"facts_reopened":3}: the claims the
archive retired count again, and the facts it closed reopen when they have
support again. A document that is not archived prints zero counts. See
POST /documents/{doc_id}/unarchive.
Both need a write credential. For a document that does not exist, both
print error: API 404: document_not_found and exit with status 1.
remember documents archive a1f3e0b4-1c2d-5e6f-8a9b-0c1d2e3f4a5b
remember documents unarchive a1f3e0b4-1c2d-5e6f-8a9b-0c1d2e3f4a5bforget erases one document, every version of it, and everything derived
only from it, for good. It first asks for confirmation on the terminal; any
answer but y or yes forgets nothing and exits with status 1, and --yes
skips the question. It prints the forget record, in the shape of
Forget:
{"forget_id":"…","doc_id":"…","status":"erasing","requested_at":"2026-11-24T10:41:07.318000Z","completed_at":null,"blocking_k_paths":[],"last_error":null}The document is gone from every read at once; what was derived from it is
erased in the background, which remember forget status
follows. There is no undo: the content can only be ingested again with
remember ingest --allow-forgotten. Forgetting the same document again prints
its existing record. A document that does not exist prints
error: API 404: document_not_found and exits with status 1. See
POST /documents/{doc_id}/forget.
remember documents forget a1f3e0b4-1c2d-5e6f-8a9b-0c1d2e3f4a5b --yestag changes the tags of one document in one step and prints its tags
afterwards, in the shape of
DocumentTags. --add and
--remove take a tag name or id and can each be repeated. --set replaces
the document's whole set instead and cannot be combined with them (exit
status 2); --set '' removes every tag. Every tag must be registered; see
remember tags. An unregistered tag prints
error: API 422: unknown tags: … and exits with status 1, and nothing
changes. See
POST /documents/{doc_id}/tags.
remember documents tag a1f3e0b4-1c2d-5e6f-8a9b-0c1d2e3f4a5b --add kind:decision --remove kind:draft{"doc_id":"a1f3e0b4-1c2d-5e6f-8a9b-0c1d2e3f4a5b","tags":["kind:decision","project:billing-migration"]}Section history and references
section-history follows a section key across document versions. It defaults
to history and shows the effective intervals and section state for each
version. Use --time to select a narrower scope.
references lists links into and out of a document or chunk. With
--doc-id, you can add --section-key to keep references for that section
and its descendants. --direction defaults to both. Repeat --kind to keep
any of the listed kinds. By default the read uses the current document
scope, or the chunk's in-force intervals up to now with --chunk-id.
Both commands take a page size of 1–200 (default 50). Pass the returned
next_cursor to --cursor to continue.
--time takes a JSON object. Use {"mode":"current"} for the current
version, {"mode":"history"} for all history, or {"mode":"at","at":"2026-09-24T12:00:00Z"}
for what was in force at an instant. Use mode: "overlap" with from and
to to read a time window. See Section history and references.
set-references replaces the entire supplied set for one version with an
NDJSON file. Write one reference object
per line. Blank lines are ignored. An empty file supplies an empty set.
reference-generations prints the version's generations newest first,
including their status and validation errors. Check for an active generation
after submitting a set.
Effective periods
set-effective-periods replaces all declarations for one version. Give
--periods a JSON array with an effective_from for each period and an
optional effective_until. Include a UTC offset in each ISO 8601 timestamp.
The start is inclusive and the end is exclusive. Omit the end to use the next
declared start in the document.
Use [] to leave this version with no in-force period while keeping declared
effective time for the document.
clear-effective-periods retracts the declarations for every version of the
document. Current reads then use the newest processed version. The engine
preserves the declaration history. See Versions in force.
remember forget
remember forget list [--api-url URL] [--api-key KEY] [--project PROJECT]
remember forget status FORGET_ID [--api-url URL] [--api-key KEY] [--project PROJECT]list prints every forget record of the deployment, oldest first, as a
ForgetList. status prints one
Forget record: status is erasing,
waiting_for_redaction (the authored knowledge pages in blocking_k_paths
still cite the document) or complete. An unknown FORGET_ID prints
error: API 404: forget_not_found and exits with status 1.
remember forget status 6c1d2e3f-4a5b-4c3d-9e8f-7a6b5c4d3e2f | jq -r .statusremember tags
remember tags list [--query TEXT] [--api-url URL] [--api-key KEY] [--project PROJECT]
remember tags create NAME --description TEXT [--api-url URL] [--api-key KEY] [--project PROJECT]
remember tags update TAG [--name NAME] [--description TEXT]
[--api-url URL] [--api-key KEY] [--project PROJECT]
remember tags delete TAG [--api-url URL] [--api-key KEY] [--project PROJECT]Manage the deployment's tags: names such as project:billing-migration that
you assign to documents, each with a description of what it means. What tags
are for: Tag documents.
| Command | Prints | Notes |
|---|---|---|
list | TagList | --query keeps tags whose name or description contains it, ignoring letter case. |
create NAME --description TEXT | the new Tag | --description is required. A name already registered in any letter case prints error: API 409: a tag named '…' is already registered and exits with status 1. |
update TAG | the changed Tag | TAG is the name (any letter case) or id. Give --name, --description or both; neither exits with status 2. Documents keep the tag; the old name stops working. |
delete TAG | the deleted Tag | Removes the tag from every document that carries it. |
A TAG that is not registered prints error: API 404: unknown tags: … and
exits with status 1. The commands print one JSON line.
remember tags create project:billing-migration \
--description "Documents about moving invoicing to the new billing provider."
remember tags list --query billing | jq -r '.tags[] | "\(.name) \(.description)"'remember query
remember query "QUESTION" [--combined] [--tag TAG]... [--any-tag TAG]... [--not-tag TAG]...
remember query text "QUESTION" [--combined] [--layers LIST] [--tag TAG]... [--any-tag TAG]... [--not-tag TAG]...
remember query sql STATEMENT [--parameters JSON] [--max-rows N] [--layers LIST]
remember query explain-sql STATEMENT [--parameters JSON] [--layers LIST]
remember query space [--pattern GLOB] [--include-examples]
remember query search-space QUERY [--k N]
remember query list-saved [--namespace NS] [--status STATUS]
remember query describe-saved NAMESPACE NAME [--version N]
remember query run-saved NAMESPACE NAME [--version N] [--parameters JSON] [--max-rows N] [--layers LIST]
remember query adjacent-chunks CHUNK_ID [--window {1,2}]Every subcommand also takes --api-url, --api-key and --project.
--layers narrows a read to some of the deployment's
processing layers: a
comma-separated subset of sources, claims and facts, for example
--layers sources,claims. Without it a read uses every layer the deployment
serves.
Asking a question
remember query "QUESTION" is short for remember query text "QUESTION".
It runs the facts_context operation and prints the result
envelope as indented JSON. With --combined it runs
combined_context instead and prints both the facts and what sources said.
remember query "Who owns the billing migration?"
remember query --combined "Why did the cutover move to October?"
remember query "Who owns the cutover?" --tag project:billing-migration--tag, --any-tag and --not-tag (each repeatable) read only documents
that carry every --tag, at least one --any-tag and no --not-tag, as on
remember documents search. Facts then come only
from those documents' support, while contradictions from other documents
stay in the answer, marked "in_documents_filter": false; see
The documents filter.
An unregistered tag is refused with unknown_tag.
Note
The shorthand applies unless the word right after query is exactly a
subcommand name (text, sql, explain-sql, space, search-space,
list-saved, describe-saved, run-saved, adjacent-chunks). To ask
a one-word question such as "space", write remember query text space.
For other operation arguments (time, entity_ids, k), use
remember operations run.
SQL queries
SQL queries run over the query space (memory_v1): prepared, read-only views
and functions. The engine parses every statement and validates it against
the query space before it runs; anything outside it is rejected. Output is
the QueryResult/v1 JSON object. See Query space memory_v1.
| Subcommand | Arguments | What it prints |
|---|---|---|
sql | STATEMENT; --parameters (JSON array of positional values for $1, $2, …); --max-rows (integer, 0 or more) | The result rows and their provenance. |
explain-sql | STATEMENT; --parameters | The plan, without running the statement. |
space | --pattern (shell-style filter over view names); --include-examples | The views, functions, comments and limits. |
search-space | QUERY; --k (default 10; the engine accepts 1–25) | Matching entries of the query space's own documentation, never your data. |
list-saved | --namespace; --status | Saved queries. Without --status, active versions only. |
describe-saved | NAMESPACE NAME; --version | One saved query's SQL, parameters and columns. |
run-saved | NAMESPACE NAME; --version; --parameters; --max-rows | The result of one active saved query. |
NAMESPACE and NAME must match ^[a-z][a-z0-9_]*$. A malformed
--parameters value exits with status 2.
remember query sql \
"SELECT predicate, count(*) AS n FROM facts_current GROUP BY 1 ORDER BY 2 DESC LIMIT \$1" \
--parameters '[10]'adjacent-chunks
Prints the passages immediately before and after one chunk, in document order.
--window is 1 (default) or 2.
remember query adjacent-chunks 6f1c2d0e-… --window 2remember search
remember search claims QUERY [--k N] [--channel {semantic,bm25}] [--documents JSON] [--time JSON]
remember search chunks QUERY [--k N] [--channel {semantic,bm25}] [--documents JSON] [--time JSON]Search claims or source passages and print an evidence envelope. --k is
1–400 (default 10). The channel defaults to semantic. Use bm25 for a
lexical search.
Use --documents for a JSON object of document filters.
Use --time to select versions in force in the same format as
section history. The default time scope is
current. Supplying either flag sends a POST search. The plain form sends GET.
See Search and adjacent chunks.
remember resolve
remember resolve NAME [--context-entity-id ENTITY_ID]...Print entity candidates for a name. Repeat --context-entity-id for up to eight
known entities to help disambiguate the name. See Entities and facts.
remember lookup
remember lookup relations [--subject-entity-id ENTITY_ID] [--predicate PREDICATE]
[--object-entity-id ENTITY_ID] [--valid-at INSTANT] [--limit N] [--cursor CURSOR]
remember lookup observations ENTITY_ID [--limit N] [--cursor CURSOR]
remember lookup observations ENTITY_ID --property-query QUERY [--k N]relations pages relations matching the given subject, predicate and object
filters. Pass an ISO 8601 instant with a timezone to --valid-at to read
relations that held then. Without it the command reads current relations.
observations browses live observations for one entity. Use --property-query
to rank observations by text. --k is 1–400 (default 10) for ranked results.
For either browse command, --limit is 1–200 (default 50), and the response's
next_cursor continues the browse. See Entities and facts.
remember graph
remember graph neighborhood ENTITY_ID [--hops N] [--predicate PREDICATE]...
[--valid-at INSTANT] [--believed-at INSTANT]
[--limit N] [--cursor CURSOR] [--include-paths]
remember graph path FROM_ENTITY_ID TO_ENTITY_ID [--max-hops N] [--predicate PREDICATE]...
[--valid-at INSTANT] [--believed-at INSTANT]
remember graph citation-path FROM_DOC_ID TO_DOC_ID [--max-hops N]neighborhood reads up to four hops around an entity (default two).
It pages results with --limit (1–500, default 100) and --cursor. Add
--include-paths to include paths to the returned neighbors.
path finds shortest paths between two entities. citation-path follows
directed document references from one document to another. Both accept a
--max-hops of 1–6, default four for path and six for citation-path.
For entity traversal, repeat --predicate to keep edges with any of the
given predicates. --valid-at selects when facts held, and --believed-at
selects when the engine held that belief. Supply ISO 8601 instants with a
timezone. See Graph.
remember relation
remember relation hydrate RELATION_ID
remember relation transcript RELATION_IDhydrate follows a relation's evidence to source documents. transcript
reads the bounded record of decisions that changed the relation. Use a
relation UUID from a lookup or fact result. See Entities and facts.
remember operations
remember operations list [--api-url URL] [--api-key KEY] [--project PROJECT]
remember operations run NAME [--arg KEY=VALUE]... [--layers LIST] [--api-url URL] [--api-key KEY] [--project PROJECT]list prints one JSON descriptor per line for the four assured operations,
with each one's input schema.
run runs one operation. Each --arg is KEY=VALUE; the value is parsed as
JSON when it can be, otherwise kept as a string. The result prints as one
line of JSON. --layers narrows the layers it reads, as for remember query.
remember operations run facts_context \
--arg query="billing migration owner" \
--arg 'time={"mode":"history"}' \
--arg k=25An --arg without = exits with status 2. Operation names and arguments are
in Assured operations.
Deployment diagnostics
remember deployment
Print the deployment build revision, model bindings, document binding generation and supported MCP tool versions as JSON. See Deployment info and health.
remember processing-layers
Print the claims and facts layer states as JSON. Each is enabled,
backfilling or disabled. The deployment always processes the sources layer.
See Processing layers.
Agent commands
remember mcp
remember mcp [--read-only] [--layers LIST] [--api-url URL] [--api-key KEY] [--project PROJECT]
remember mcp --transport http [--bind HOST:PORT] [--read-only] [--layers LIST] [--api-url URL]Runs an MCP server for a coding agent. By default it speaks on standard input
and output and finds the deployment the same way as every other
command.
--transport http serves the same tools over HTTP at
http://127.0.0.1:8765/mcp instead (--bind picks another loopback address or port).
--read-only removes the tools that change memory: ingest,
archive_document, unarchive_document, forget_document and the tag tools that change tags. --layers narrows every read of the session to those
processing layers and
leaves out the tools that read only other layers.
You rarely start it yourself; remember setup writes the agent
configuration that starts it. The two transports, the tools, their parameters
and the errors are in MCP tools.
remember setup
remember setup [--self-hosted] [--api-url URL] [--api-key KEY] [--mcp-url URL]
[--agent {cursor,claude,codex,agy,all}] [--dir DIR] [--dry-run]Writes each coding agent's MCP entry for Remember.
| Flag | Default | Meaning |
|---|---|---|
--self-hosted | Configure for an engine at --api-url, default http://127.0.0.1:8000. | |
--api-url | none | The engine address. It implies --self-hosted and is written into stdio entries as REMEMBER_API_URL. |
--api-key | none | With --self-hosted: the engine's key, stored in the credential file and never written into agent configuration. |
--mcp-url | none | The URL of your own remember mcp --transport http server. It implies --self-hosted. Agents that accept a URL entry connect to it; the others get a stdio entry. |
--agent | all | Which agent to configure. agy is Antigravity; claude means Claude Code and Claude Desktop. |
--dir | current directory | The project directory for project-level configuration. |
--dry-run | off | Print the entries it would write; write nothing. |
What it does, in order:
- Finds the launcher. It prefers an installed
rememberbinary; when that binary lives in a virtual environment or a cache, or when there is none, it usesuvx remember mcp. Paths are resolved to absolute paths so an editor started from a desktop launcher finds them. With neitherremembernoruvxonPATHit exits with status 1. - Chooses the agents. With
--agent allit configures what it finds: Cursor if.cursor/exists in the directory, Antigravity if.agents/exists, Codex if.codex/exists orcodexis installed, Claude Code ifclaudeis onPATH, Claude Desktop if its configuration file or directory exists (or, on macOS, the app is installed). If it finds none, it configures Cursor and Antigravity. - For a self-hosted engine, stores the engine address and key in the credential file (see the warning below).
- Writes one entry per agent. For a self-hosted engine the entry starts
remember mcpwithREMEMBER_API_URL. With--mcp-url, Cursor, Claude Code and Codex get a URL entry instead; Claude Desktop and Antigravity keep the stdio entry. A key, if any, is never written: a URL entry refers to theREMEMBER_API_KEYvariable, which you set in the agent's environment.
Claude Code and Codex count as accepting URL entries only when their
installed command line supports them: claude mcp add --help must list
--transport, and codex mcp add --help must list
--bearer-token-env-var. Otherwise they get the stdio entry, which works
everywhere.
The exact files and their content are listed in
MCP tools: configuration that remember setup writes.
Warning
remember setup --self-hosted replaces the credential file with the engine's
address and the key from --api-key (or no key). Afterwards every command
talks to that engine.
Existing configuration files must be valid JSON or TOML and must not be symbolic links; otherwise that agent is not configured and the command exits with status 1. A failure in one agent does not stop the others. Running the command again with the same flags leaves the files unchanged.
remember setup --self-hosted --agent cursor --dry-runremember doctor
remember doctor [--api-url URL] [--api-key KEY] [--project PROJECT]Checks your setup and prints one line per check:
rememberoruvxis onPATH.- The credential file: whether it is readable, and what it holds.
- The deployment:
GET /deploymentwith a 5-second timeout, resolved and authenticated exactly as every other command. - Agent configuration in the current directory:
.cursor/mcp.json,.agents/mcp_config.json,.codex/config.toml, and Claude Desktop's configuration file. For each it checks the file parses and contains arememberserver. For a stdio entry it checks the command exists and is executable; for a URL entry it prints the URL.
[✓] is a pass, [-] is informational, [!] is a failure. Exit status 1
when any check fails.
remember connectors
remember connectors list
remember connectors add KIND --name NAME [--config KEY=VALUE]... [--credential-ref REF]
remember connectors pause CONNECTOR_ID
remember connectors status CONNECTOR_IDThese commands call /connectors routes that no deployment serves today.
Every one fails with API 404 and exit status 1. Connectors are listed in
What is not built yet.
Self-hosted operations: remember ops
remember ops repairs and inspects a self-hosted engine's pipeline. It runs
inside the engine container, which enables it by setting
REMEMBERSTACK_INTERNAL_OPS=1. Elsewhere, including a remember installed
from PyPI, it prints an error and exits with status 1, and the help output
does not list it.
docker compose exec api \
remember ops inspect --deployment "$REMEMBERSTACK_SELFHOST_DEPLOYMENT_ID"--deployment is the engine's deployment id
(REMEMBERSTACK_SELFHOST_DEPLOYMENT_ID).
| Subcommand | Flags | What it does | Output |
|---|---|---|---|
inspect | --deployment ID | A bounded report of the pipeline: work in progress, dead letters, projections and freshness. | JSON |
cost-export | --deployment ID, --cursor CURSOR, --limit N (default 100, max 500) | One page of the cost export, which holds no document content. Exit 2 when --deployment does not match the engine or the cursor is invalid. | JSON |
resume-no-route | --deployment ID | Releases documents that were parked because no converter handled their media type, once a route now covers them. | {"released": [...]} |
replay | PROCESSING_ID, --deployment ID, --attempts N (default 1), --lane {steady,backfill}, --not-before ISO8601 | Reopens one dead-lettered work item with N more attempts. | JSON |
graph-catalog ensure | none | Checks the database's graph metadata and repairs it when needed. | {"ready", "changed", "problems_before", "problems_after", "definitions"} |
When and why to use each: Operating the pipeline.
Engine container commands
The engine image ghcr.io/writeitai/remember-stack has its own entry point,
python -m rememberstack.profiles.selfhost. compose.yaml runs each process
with one of these commands; you use them when you write your own
orchestration.
| Command | What it runs |
|---|---|
setup | Applies database migrations and prepares the deployment. Runs once; the other services start after it succeeds. |
api | The HTTP API. Listens on REMEMBERSTACK_SELFHOST_API_HOST (default 0.0.0.0) and REMEMBERSTACK_SELFHOST_API_PORT (default 8000). This is the image's default command. |
worker --class CLASS [--concurrency N] | One pipeline worker for a class of stages. convert runs the convert stage; llm runs every other stage (structure, crossref, chunk, embed_chunk, extract_claims, ground_claims, normalize_relations, adjudicate_observations, adjudicate_supersession, embed_claim, reconcile, label_relation, review_fact_windows). N is how many items it runs at once (default 1 for convert, 20 for llm). Run one process per class; add processes to add capacity. |
project --plane p3 | Verifies and reconciles the live corpus once. In compose.yaml it belongs to the operations profile. |
The pipeline stages are explained in The pipeline and readiness; configuration in Configuration; corpus folders and read-only mounts in Filesystem views.
Credential file
remember setup --self-hosted stores the engine address and key in
credentials.json. The CLI and the Python SDK both read it, after flags (or
arguments) and environment variables.
Location, first match wins:
REMEMBER_CONFIG_DIR$XDG_CONFIG_HOME/remember/~/.config/remember/
Protection:
- The directory is created with mode
0700and the file with mode0600. The file is written to a temporary name, synced and renamed, so a crash leaves either the old file or the new one. - The CLI refuses to read a file that is a symbolic link or that group or
other users can read, and exits with status 1. Fix it with
chmod 600 ~/.config/remember/credentials.json. - Commands that change the file take a lock (
.lockin the same directory).
Format, version 2, for a self-hosted engine:
{
"version": 2,
"api_url": "http://127.0.0.1:8000",
"key": "<the engine's key, or null>",
"issuer": null,
"key_id": null,
"expires_at": null,
"default_project": null
}A file in any other shape is refused. remember setup --self-hosted replaces
it.
Environment variables
| Variable | Used by | Meaning |
|---|---|---|
REMEMBER_API_URL | memory commands | Deployment address. |
REMEMBER_API_KEY | memory commands | API key, ahead of the credential file. |
REMEMBER_PROJECT | memory commands | Project id or name for a key that covers several projects. |
REMEMBER_CONFIG_DIR | all | Credential file directory. |
XDG_CONFIG_HOME | all | Base for the default credential directory. |
REMEMBERSTACK_INTERNAL_OPS, REMEMBER_INTERNAL_OPS | ops | Enables remember ops. The engine image sets it. |
REMEMBERSTACK_MCP_INGEST_ROOTS, REMEMBERSTACK_MCP_PATH_READ_MAX_BYTES | mcp | Path ingest; see MCP tools. |
APPDATA (Windows), XDG_CONFIG_HOME (Linux) | setup, doctor | Where Claude Desktop's configuration lives. |
Names are not case-sensitive. All client variables are in Configuration variables.