# memory

> Manage the local shared memory that coding agents use across sessions and worktrees.

Manage the local shared memory that coding agents use across sessions and worktrees.

## nexus memory status

```sh
nexus memory status [--json]
```

Show whether shared memory is on.

| Option | Meaning |
| --- | --- |
| `--json` | Print only JSON on stdout |

## nexus memory enable

```sh
nexus memory enable [--json]
```

Turn on shared memory on this computer.

| Option | Meaning |
| --- | --- |
| `--json` | Print only JSON on stdout |

```sh
nexus memory enable
```

## nexus memory disable

```sh
nexus memory disable [--export <path>] [--skip-export] [--repo <path>]
```

Turn off shared memory with a Markdown export or an explicit choice to skip it.

| Option | Meaning |
| --- | --- |
| `--export <path>` | Save a Markdown copy to this path before turning off shared memory |
| `--skip-export` | Turn off shared memory without exporting |
| `--repo <path>` | Choose the repository whose notes to use |

## nexus memory list

```sh
nexus memory list [--repo <path>] [--json]
```

List personal and repository entries.

| Option | Meaning |
| --- | --- |
| `--repo <path>` | Choose the repository whose notes to use |
| `--json` | Print only JSON on stdout |

```sh
nexus memory list --json
```

## nexus memory add

```sh
nexus memory add <text>
```

Save a personal note.

## nexus memory edit

```sh
nexus memory edit <id> <text> [--repo <path>]
```

Replace the text of an entry.

| Option | Meaning |
| --- | --- |
| `--repo <path>` | Choose the repository whose notes to use |

## nexus memory forget

```sh
nexus memory forget <id> [--repo <path>]
```

Delete an entry.

| Option | Meaning |
| --- | --- |
| `--repo <path>` | Choose the repository whose notes to use |

## nexus memory import

```sh
nexus memory import <claude|codex> [--repo <path>]
```

Import memory from the selected agent's local profiles.

| Option | Meaning |
| --- | --- |
| `--repo <path>` | Choose the repository whose notes to use |

```sh
nexus memory import claude
```

## nexus memory export

```sh
nexus memory export <claude|codex|markdown> [--output <path>] [--repo <path>]
```

Export to an agent profile or Markdown. Codex loads every repository block in every session on that profile.

| Option | Meaning |
| --- | --- |
| `--output <path>` | Write a Markdown export to this path |
| `--repo <path>` | Choose the repository whose notes to use |
