> ## Documentation Index
> Fetch the complete documentation index at: https://docs.ariacompute.cn/llms.txt
> Use this file to discover all available pages before exploring further.

# MEMO 记忆存储

MEMO 是咏唱引擎的**记忆产品线**：一端是开源、端侧的 **Aria Memo**（长期记忆 CLI/SDK，记忆存在本地 SQLite，支持 cloud / local / both），另一端是云端托管的 **AriaMem**（知识记忆融合平台）。两者用统一的记忆 API 和 `search_memory` 打通。

## 记忆概念

| 概念 | 含义 |
| - | - |
| 记忆 Memory | 按主体的事实、偏好、上下文片段（cube / fragment） |
| 立方体 Cube | 记忆的隔离单元，可多主体、多租户 |
| 上下文片段 Context fragment | 一条记忆原子（事实 / 偏好 / 约束 / 事件） |
| Wiki | 由 Agent 提炼、可回滚的互连知识文档 |
| 知识↔记忆转换 | 文档变记忆、记忆变 Wiki 的双向桥梁 |
| 技能 Skill | 版本化、可共享的执行能力（L1–L4 分级） |
| 分层 Chat Memory（L0–L3） | 对话→原子→场景→画像的提炼管线 |
| Code-Graph | 导入仓库后解析的符号与调用/引用边 |

## 云端入口

云端的 AriaMem 基础 URL 为：

* 中国站：`https://memo.ariacompute.cn`
* 国际站：`https://memo.ariacompute.com`

也可以自托管 AriaMem（Docker，端口 `8010`，路径 `/ariamem/`），数据面用 API 密钥认证（`Authorization: ApiKey sk_aria_your_memo_api_key`）。

## 端侧 Aria Memo

Aria Memo 是开源的长期记忆 CLI/SDK，记忆保存在本地 SQLite 数据库（路径 `~/.ariacompute/memo.db`），不需要服务器和网络。它支持 cloud / local / both 三种形态；选 `both` 时，同一个记忆 API 既在本机落地，也同步到 AriaMem 云端，端侧和云端都用 `search_memory` 召回。

## 如何运行

* **云端**：直接用上文的云端入口，不用部署。
* **端侧**：安装 `aria-memo`（`pip install ariamemo` / `cargo add aria-memo`），先用本地 SQLite；需要云端能力时切换到 `both`。
* 相关：[MEMO 产品页](https://ariacompute.cn/memo)、[AGENT 云端智能体](/concepts/agent-cloud)、[AFM 基础模型](/concepts/models)。


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.