> For the complete documentation index, see [llms.txt](https://docs.openmind.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.openmind.com/full-autonomy-guidelines/features/memory-sync.md). Agents can also search and read this documentation through its [MCP server](https://docs.openmind.com/~gitbook/mcp).

# Memory Sync

Persist and share the agent's memory across sessions and machines via the cloud.

An agent's long-term memory — the context it builds up over time, like people it has met and past interactions — can either stay on the device or sync to the cloud. Memory Sync is the cloud path: memory is written locally *and* backed up to the cloud, so it isn't lost when the device restarts.

It's controlled by the `memory` block in the agent config:

```json5
memory: {
  enabled: true,
  cloud_connection: true,
}
```

`enabled` turns long-term memory on; `cloud_connection` decides where it lives. See [Configuration](https://docs.openmind.com/build/concepts/3_configuration.md) for where this sits in the full config.

### What it does

* **`cloud_connection: false`** — memory is kept **locally** on the device.
* **`cloud_connection: true`** — memory is written locally **and synced to the cloud**: interactions, user profiles, and daily logs are uploaded, context is retrieved from the cloud, and periodic summaries are generated there. This uses your API key.

Either way, memory persists across restarts, and it complements [face memory](https://docs.openmind.com/build/concepts/6_actions.md) (remembering people) and the [Knowledge Base](https://docs.openmind.com/build/concepts/knowledge_base.md) (retrieval over your own documents).

### Sharing across robots (Groups)

Cloud sync backs up one robot's memory; **Groups** are how you share it across a fleet. In the portal's **Manage Groups**, you create a group and add robots to it — and **robots in the same group share their Memory, Maps, and Routes**. Robots left **Ungrouped** keep their resources private.

So a person remembered, a map built, or a route drawn on one robot in a group becomes available to the others in that group.

<img src="https://2120135774-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Ft8vMsruGqqhYpVx9qhd5%2Fuploads%2Fgit-blob-cc0de13d1ba0ec58d47b11a53d297a3ee13ebf05%2Fportal-manage-groups.png?alt=media" alt="" height="434" width="480">

Cloud-synced memory is tied to your OpenMind account (via your API key); retention depends on your plan, so align with your OpenMind contact when enabling it for a deployment.

### Related

* [Configuration](https://docs.openmind.com/build/concepts/3_configuration.md) — the `memory` block
* [Knowledge Base (RAG)](https://docs.openmind.com/build/concepts/knowledge_base.md)
* [Plans & Access](https://docs.openmind.com/full-autonomy-guidelines/premium_features.md)


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation by asking a question.

Perform an HTTP GET request on the following URL with the `ask` and `goal` query parameters:

```
GET https://docs.openmind.com/full-autonomy-guidelines/features/memory-sync.md?ask=<question>&goal=<user_goal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is what the user is ultimately trying to achieve, the reason they need the answer. Sharing it helps GitBook give you a better, more relevant answer. A goal is most helpful when it describes the outcome the user wants rather than restating the question. For example, with `ask=how do I create an API token`, a goal like `automate deployments from our CI pipeline` lets GitBook tailor the answer to that use case.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
