# ed memory chat

> Talks with Memory. Retrieval grounds the reply in your own episodes, the reply streams to stdout as the model produces it, and validated citations print after…

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

Talks with Memory. Retrieval grounds the reply in your own episodes, the
reply streams to stdout as the model produces it, and validated citations print
after it. Every exchange persists, so a conversation can be continued later
from any machine.

Usage:

```
ed memory chat <message> [--conversation <id>] [--persona <id>] [--json] [--endpoint <url>]
```

Options:

| Name | Type / values | Default | What it does |
| --- | --- | --- | --- |
| `--conversation` | conversation id | new conversation | Continues that conversation with its history in context. |
| `--persona` | persona id | `friend` | Answers through that lens; [`ed memory personas`](https://getedith.pro/docs/cli/memory/personas) lists them. |
| `--json` | flag | off | Suppresses streaming and emits one JSON document at the end. |
| `--endpoint` | URL | resolution order | Uses this Memory API base URL. |

Before starting the stream, `--persona` is checked against the live persona
list when that list can be fetched. An unknown id exits 1 and names the known
ids. If the persona list itself cannot be fetched, the chat request still gets
a chance to report the backend error.

`--json` shape:

```json
{
  "answer": "You shipped the auth refactor and kept avoiding the billing migration.",
  "chunksConsidered": 8,
  "citations": [
    {
      "episodeId": "6a7c1f0e-6f0f-4bb0-9d3a-2f6f6f0e1a2b",
      "occurredAt": "2026-08-05T09:00:00Z",
      "quote": "shipped the session-scoped tokens today",
      "support": "verbatim",
      "title": "auth-refactor.md"
    }
  ],
  "conversationId": "e3b6d2a4-27c8-4f7c-9b7e-3e2b1a0c9d8f",
  "latencyMs": 1874,
  "model": "openai-compatible at http://ollama:11434/v1, model qwen3:1.7b"
}
```

The conversation id prints on stderr after a plain-text chat; pass it back with
`--conversation` to keep talking in the same thread.

Behaviour: requires a configured reasoning provider (`ed memory reason`);
without one the backend answers 412 and the command exits `1`. A transport
failure, including no server at the endpoint, exits `4`.

## Where to go next

- [`ed memory`](https://getedith.pro/docs/cli/memory), the rest of this group
- [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
