> For the complete documentation index, see [llms.txt](https://docs.overthereality.ai/over-sdk-manual/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.overthereality.ai/over-sdk-manual/sdk-coding-nodes/over-nodes/local-storage/save-local-value.md). Agents can also search and read this documentation through its [MCP server](https://docs.overthereality.ai/over-sdk-manual/~gitbook/mcp).

# Save Local Value

The **Save Local Value** node saves a key-value pair to the device local storage. This is useful for keeping data such as user preferences or game progress between sessions.

**Inputs**

* **Flow** : runs the node.
* **Key (String)** : a unique name for the data. You will use it to read the value later.
* **Value (String)** : the data to save, as a string. To save numbers or other types, convert them to strings first.

The node has no flow output: put it at the end of a flow.

**How It Works**

When this node runs, it stores the **Key** and **Value** in the local storage. If a value with the same key already exists, it is overwritten.

**Use Cases**

* Save user preferences, such as language settings or audio levels.
* Store game progress, such as the current level or score.
* Keep AR-specific data, like object positions or user-generated content.

<figure><img src="https://123660717-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F6xdubHTzJACGqFIM7yJy%2Fuploads%2Fc0JM6pyGox437JDHRv0i%2Fimage.png?alt=media&amp;token=fe0b8ff7-07a8-4c47-918d-e48da5528c92" alt=""><figcaption></figcaption></figure>
