Get an API key
api.agents

Options · memory and sessions

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.

memory: false by defaultmemories oncheckpoints on
Using Python?

Switch any code block to Python: the choice applies to every page. Python SDK guide and resource reference.

memorybooleanfalse

Makes the agent a session: an identifier before the first run, the conversation kept.

idstring

Reopen a session. Implies memory.

memoriesbooleantrue

Long-term notes. false removes the memory tool and its index from the prompt.

checkpointsbooleantrue

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.

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

KeptWhere
Messages, and each tool call's name, target, success, cost and durationOn the account
The content of tool resultsOn the device only
Long-term notesOn the account
CheckpointsIn 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.