# ed memory

> ed memory talks to Edith's memory backend. Memory stores notes, recordings, photos, videos and PDFs as append-only episodes in Postgres, keeps original files…

- Canonical URL: https://getedith.pro/docs/cli/memory
- Updated: 2026-12-02

`ed memory` talks to Edith's memory backend. Memory stores notes,
recordings, photos, videos and PDFs as append-only episodes in Postgres, keeps
original files in its vault, and deduplicates sources by their SHA-256 content
hash.

Let [`ed memory deploy`](https://getedith.pro/docs/cli/memory/deploy) install and start the backend on this
Mac or a registered machine. The CLI reaches a remote deployment through a saved `ed machines`
port forward.

The endpoint resolution order is: `--endpoint`, `EDITH_MEMORY_URL`, the URL
saved by the app, the localhost port saved by `ed memory deploy`, then
`http://127.0.0.1:4820`. An invalid saved or supplied URL falls back to the
deployed localhost port, or to port 4820 when there is no deployment record.

Chat, conversation history, deletion, memory search, episode reading, and
indexing use the same typed operations in the app and CLI. Deleting a
conversation requires confirmation in the app and a preview followed by
`--yes` in the CLI.

For the machinery behind these commands, start at
[how Memory works](https://getedith.pro/docs/cli/memory/concepts), the overview, then go deep:
[memory](https://getedith.pro/docs/cli/memory/concepts-memory), [ingestion](https://getedith.pro/docs/cli/memory/concepts-ingestion),
[chunks, embeddings and search](https://getedith.pro/docs/cli/memory/concepts-search),
[asking and chatting](https://getedith.pro/docs/cli/memory/concepts-chat),
[the learning loop](https://getedith.pro/docs/cli/memory/concepts-learning),
[reasoning it does on its own](https://getedith.pro/docs/cli/memory/concepts-brain) and
[not being a yes-man](https://getedith.pro/docs/cli/memory/concepts-friend).

## At a glance

| Command | What it does |
| --- | --- |
| `ed memory` | Runs `ed memory status`, the default subcommand. |
| `ed memory status` | Counts stored records and episodes waiting to be indexed. |
| `ed memory stop` | Stops a reply that is still being written. |
| `ed memory doctor` | Checks storage, migrations, search dependencies, media tools and reasoning configuration. |
| `ed memory search <query>` | Searches indexed memory with hybrid retrieval. |
| `ed memory index` | Embeds episodes that are waiting to be indexed. |
| `ed memory ingest <path>` | Sends a note, recording, photo, video or PDF, or a folder of them, to the backend. |
| `ed memory episodes` | Lists recent episodes, newest first. |
| `ed memory episode <id>` | Reads one episode in full, body included. |
| `ed memory sync <connector>` | Pulls GitHub observations or Notion pages. |
| `ed memory observations` | Lists independent activity records from connectors and Edith usage. |
| `ed memory reflect` | Distills and reconciles beliefs from recent episodes. |
| `ed memory extract` | Pulls typed claims out of recent episodes. |
| `ed memory claims` | Lists extracted claims and their verdicts. |
| `ed memory corroborate` | Checks testable claims against observations. |
| `ed memory runs` | Lists background learning runs and per-step outcomes. |
| `ed memory chat <message>` | Talks with Memory, streamed as it thinks. |
| `ed memory conversations` | Lists chats, or replays one by id. |
| `ed memory forget <id>` | Previews deleting a conversation; `--yes` applies it. |
| `ed memory export <dir>` | Saves remembered records as a restorable bundle; `--include-media` also saves originals. |
| `ed memory import <path>` | Restores a bundle, merging and skipping what already exists. |
| `ed memory erase <id>` | Deletes one episode and everything derived from it. |
| `ed memory wipe` | Deletes the entire memory; the stack and its settings survive. |
| `ed memory nightly` | Runs the nightly learning pipeline right now. |
| `ed memory reason` | Shows or changes the reasoning provider, model and API key. |
| `ed memory ask <question>` | Answers from your own memory, through one lens. |
| `ed memory council <question>` | Asks several lenses and finds the crux they disagree on. |
| `ed memory personas` | Lists the lenses that can answer, and how each thinks. |
| `ed memory lenses` | What each lens learned about being useful to you. |
| `ed memory core` | Reads or edits the standing summary of who you are. |
| `ed memory why <id>` | Prints the whole chain behind a belief, theory or claim. |
| `ed memory hypotheses` | The theories it holds about you, and how they are faring. |
| `ed memory predictions` | What it expects to happen, and what did. |
| `ed memory commitments` | What you said you would do, and what happened. |
| `ed memory discrepancies` | Where your account and the record parted company. |
| `ed memory calibration` | How your account compares with the record, both directions. |
| `ed memory inquire` | The questions it wants to ask you, and your answers. |
| `ed memory entities` | The people, projects and places it knows, with every spelling. |
| `ed memory eval` | Scores the friend layer against the cases it should fail. |
| `ed memory standup <file>` | Records a standup; `--verify` also checks it against the record. |
| `ed memory machines` | Where the stack runs, and what each machine can do. |
| `ed memory hosts` | Machines that could run Memory, and what each one needs. |
| `ed memory deploy` | Choose the machine that runs it, and bring it up there. |
| `ed memory stack` | Start, stop, restart, log and inspect the stack on its host. |
| `ed memory baselines` | Your own delivery baselines, which every signal is measured against. |
| `ed memory connectors` | Tokens for GitHub and Notion, and imports for calendar, music and YouTube. |
| `ed memory facts` | What was true, and what it believed at the time. |
| `ed memory correct <id>` | Retires a wrong belief, or rewrites it in your words. |
| `ed memory weekly` | The wider weekly pass: relate, reopen, retire. |
| `ed memory db` | Migrate, reindex, or rebuild everything derived. |

## Commands

- [`ed memory hosts`](https://getedith.pro/docs/cli/memory/hosts)
- [`ed memory deploy`](https://getedith.pro/docs/cli/memory/deploy)
- [`ed memory stack`](https://getedith.pro/docs/cli/memory/stack)
- [`ed memory status`](https://getedith.pro/docs/cli/memory/status)
- [`ed memory doctor`](https://getedith.pro/docs/cli/memory/doctor)
- [`ed memory search`](https://getedith.pro/docs/cli/memory/search)
- [`ed memory index`](https://getedith.pro/docs/cli/memory/index)
- [`ed memory ingest`](https://getedith.pro/docs/cli/memory/ingest)
- [`ed memory episodes`](https://getedith.pro/docs/cli/memory/episodes)
- [`ed memory sync`](https://getedith.pro/docs/cli/memory/sync)
- [`ed memory observations`](https://getedith.pro/docs/cli/memory/observations)
- [`ed memory reflect`](https://getedith.pro/docs/cli/memory/reflect)
- [`ed memory beliefs`](https://getedith.pro/docs/cli/memory/beliefs)
- [`ed memory ask`](https://getedith.pro/docs/cli/memory/ask)
- [`ed memory extract`](https://getedith.pro/docs/cli/memory/extract)
- [`ed memory claims`](https://getedith.pro/docs/cli/memory/claims)
- [`ed memory corroborate`](https://getedith.pro/docs/cli/memory/corroborate)
- [`ed memory runs`](https://getedith.pro/docs/cli/memory/runs)
- [`ed memory capture`](https://getedith.pro/docs/cli/memory/capture)
- [`ed memory chat`](https://getedith.pro/docs/cli/memory/chat)
- [`ed memory conversations`](https://getedith.pro/docs/cli/memory/conversations)
- [`ed memory forget`](https://getedith.pro/docs/cli/memory/forget)
- [`ed memory export`](https://getedith.pro/docs/cli/memory/export)
- [`ed memory import`](https://getedith.pro/docs/cli/memory/import)
- [`ed memory erase`](https://getedith.pro/docs/cli/memory/erase)
- [`ed memory wipe`](https://getedith.pro/docs/cli/memory/wipe)
- [`ed memory episode`](https://getedith.pro/docs/cli/memory/episode)
- [`ed memory nightly`](https://getedith.pro/docs/cli/memory/nightly)
- [`ed memory reason`](https://getedith.pro/docs/cli/memory/reason)
- [`ed memory personas`](https://getedith.pro/docs/cli/memory/personas)
- [`ed memory council`](https://getedith.pro/docs/cli/memory/council)
- [`ed memory lenses`](https://getedith.pro/docs/cli/memory/lenses)
- [`ed memory core`](https://getedith.pro/docs/cli/memory/core)
- [`ed memory why`](https://getedith.pro/docs/cli/memory/why)
- [`ed memory hypotheses`](https://getedith.pro/docs/cli/memory/hypotheses)
- [`ed memory predictions`](https://getedith.pro/docs/cli/memory/predictions)
- [`ed memory commitments`](https://getedith.pro/docs/cli/memory/commitments)
- [`ed memory discrepancies`](https://getedith.pro/docs/cli/memory/discrepancies)
- [`ed memory calibration`](https://getedith.pro/docs/cli/memory/calibration)
- [`ed memory inquire`](https://getedith.pro/docs/cli/memory/inquire)
- [`ed memory entities`](https://getedith.pro/docs/cli/memory/entities)
- [`ed memory eval`](https://getedith.pro/docs/cli/memory/eval)
- [`ed memory standup`](https://getedith.pro/docs/cli/memory/standup)
- [`ed memory machines`](https://getedith.pro/docs/cli/memory/machines)
- [`ed memory baselines`](https://getedith.pro/docs/cli/memory/baselines)
- [`ed memory connectors`](https://getedith.pro/docs/cli/memory/connectors)
- [`ed memory facts`](https://getedith.pro/docs/cli/memory/facts)
- [`ed memory correct`](https://getedith.pro/docs/cli/memory/correct)
- [`ed memory weekly`](https://getedith.pro/docs/cli/memory/weekly)
- [`ed memory db`](https://getedith.pro/docs/cli/memory/db)

## Concept pages

- [How Memory works](https://getedith.pro/docs/cli/memory/concepts)
- [Memory](https://getedith.pro/docs/cli/memory/concepts-memory)
- [Ingestion](https://getedith.pro/docs/cli/memory/concepts-ingestion)
- [Chunks, embeddings and search](https://getedith.pro/docs/cli/memory/concepts-search)
- [Asking and chatting](https://getedith.pro/docs/cli/memory/concepts-chat)
- [The learning loop](https://getedith.pro/docs/cli/memory/concepts-learning)
- [Reasoning it does on its own](https://getedith.pro/docs/cli/memory/concepts-brain)
- [Not being a yes-man](https://getedith.pro/docs/cli/memory/concepts-friend)

## Exit codes

| Code | Meaning |
| --- | --- |
| `0` | Success, including a reachable doctor report whose `ok` is false. |
| `1` | General failure. |
| `2` | Bad usage, including a missing required path or a non-positive limit. |
| `4` | The Memory backend is unreachable, or indexing receives an embedding-service HTTP 502. |

## Notes and gotchas

`--endpoint` wins over `EDITH_MEMORY_URL`, which wins over the app's saved
endpoint, the deployed localhost port, and finally
`http://127.0.0.1:4820`. A remote deployment normally creates and opens its
forward during `ed memory deploy`. If that fails, run
`ed machines forwards on <machine>` and retry `ed memory status`.

Each Markdown file must be no larger than 2MB, recordings, photos and PDFs no
larger than 48MB, and video no larger than 768MB. Anything bigger is skipped
before any request, and note uploads are split into batches of 200 files. The
backend deduplicates by SHA-256 of the content, so ingesting the same file again
is safe and returns `duplicate` with the original episode id.

Search and indexing need the Ollama service and configured embedding model.
Photos also need the configured vision model. Video ingestion additionally
needs `ffmpeg` and `ffprobe` in the API container; `exiftool` enriches photo
metadata when present. `ed memory doctor` reports these prerequisites.

## Where to go next

Use [`ed machines`](https://getedith.pro/docs/cli/machines) to create and open a port forward. Read
[conventions and contracts](https://getedith.pro/docs/cli/conventions) for JSON, stdout, stderr and exit
code guarantees shared by every command.

- [All `ed` commands](https://getedith.pro/docs/cli)

## Get Edith

Edith is a native Mac app for macOS 14 or later on Apple silicon with 100+ extensions, the `ed` command line and an MCP server. $35 once for one Mac, plus $7 for each additional Mac, with no subscription and a 30-day refund.

- [Buy Edith](https://getedith.pro/pricing): $35 once for one Mac, plus $7 for each additional Mac
- [Download Edith](https://getedith.pro/download): the installer, or Homebrew
