memorybooleanfalseMakes the agent a session: an identifier before the first run, the conversation kept.
idstringReopen a session. Implies memory.
memoriesbooleantrueLong-term notes. false removes the memory tool and its index from the prompt.
checkpointsbooleantrueSnapshot the workspace before each of your messages. Needs a session.
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.
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
});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
)What a session unlocks
- Reopening from any device with get().
- Checkpoints and
rewind(). recall— searching earlier conversations.- A title, for a conversation list.
- A compacted state that survives a restart.
Where things are kept
| 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
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
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.