# Options · memory and sessions

Canonical URL: https://developers.iagenify.com/sdk/ref/agents/options/memory/
Language: en

`memory · id · memories · checkpoints`

Whether the conversation survives the process, whether the agent keeps long-term notes, and whether the workspace is photographed before each message.

Status: memory: false by default · memories on · checkpoints on

| Name | Type | Requirement | Description |
| --- | --- | --- | --- |
| `memory` | boolean | false | Makes the agent a session: an identifier before the first run, the conversation kept. |
| `id` | string |  | Reopen a session. Implies `memory`. |
| `memories` | boolean | true | Long-term notes. `false` removes the `memory` tool and its index from the prompt. |
| `checkpoints` | boolean | true | Snapshot the workspace before each of your messages. Needs a session. |

> **Two different things called memory**
>
> memory: true is the conversation surviving. memories is the agent's long-term notes about the user. They are independent: an agent can have notes without a session, and a session without notes.

```javascript
api.agents.create({
  runtime: "local", machine: pc, model,
  memory: true,          // the conversation is kept
  memories: false,       // but it keeps no notes about the user
  checkpoints: true,     // and the workspace is photographed
});
```

## What a session unlocks {#what-unlocks}

- Reopening from any device with [get()](/sdk/ref/agents/get).
- [Checkpoints](/sdk/agent/checkpoints) and `rewind()`.
- `recall` — searching earlier conversations.
- A title, for a conversation list.
- A compacted state that survives a restart.

## Where things are kept {#where}

| Kept | Where |
| --- | --- |
| Messages, and each tool call's name, target, success, cost and duration | On the account |
| **The content of tool results** | On the device only |
| Long-term notes | On the account |
| Checkpoints | In the workspace, under a hidden folder |

## What it costs {#cost}

Nothing in credits. Checkpoints take space in the workspace — content is stored once per fingerprint, so an unchanged workspace costs a few kilobytes per message, and the last twenty messages are kept.

## When to turn checkpoints off {#turning-off}

On a very large workspace, or where the storage quota matters more than going back. A snapshot that cannot be taken never blocks an answer — it is skipped and the run continues.

- [Sessions](/sdk/agent/sessions): The whole mechanism.
- [Checkpoints](/sdk/agent/checkpoints): Going back.
- [memory](/sdk/agent/tools/memory): The notes tool.

```python
api.agents.create(
    runtime="local", machine=pc, model=model,
    memory=True,             # the conversation is kept
    tools=[t for t in api.tools.all if t != "memory"],   # but it keeps no notes about the user
    checkpoints=True,        # and the workspace is photographed
)
```
