用途
Deeplake Memory 是面向 AI 智能体的持久化内存,也是一个由 Deeplake Cloud 支持的云备份文件系统。它以 FUSE 挂载文件夹的形式提供,使写入其中的内容能够跨会话保留,并实时同步给所有连接的 AI 智能体,例如 Claude Code、Cursor、Copilot 等。
主要能力
- 持久化内存挂载在 ~/.deeplake/memory/ 路径下。
- 可使用标准命令读写文件(cat、ls、echo >)。
- 会话持久:文件在所有 Claude Code 会话之间共享。
- 多智能体:其他 AI 助手可实时看到相同文件。
- 云端支持:数据存储在 Deeplake Cloud,可从任意机器访问。
- 提供 CLI,用于初始化、挂载、卸载、登录、组织与工作区管理、成员邀请、目录批量导入等操作。
使用方式
首次设置与登录:
# First time setup (interactive)
deeplake init
# Login to Deeplake
deeplake login
# Mount all registered filesystems
deeplake mount --all
# Check what's running
deeplake list
常用命令包括:
- deeplake init [options]:交互式初始化新挂载。
- deeplake mount <path|--all>:挂载指定路径或全部已注册挂载。
- deeplake umount <path|--all>:卸载指定路径或全部挂载。
- deeplake list:显示所有已注册挂载及状态。
- deeplake login / deeplake logout:登录或清除存储的凭据。
- deeplake organization list / set <name|id>:列出组织或切换当前组织。
- deeplake workspace list / set <name|id>:列出工作区或切换当前工作区。
- deeplake member invite <email|user> / remove:邀请或移除组织成员。
- deeplake import <source-dir> <table>:将目录批量导入表。
- deeplake version / help:查看版本或帮助。
别名:org 等价于 organization,ws 等价于 workspace,stop 等价于 umount,status 等价于 list,--version 等价于 version,-h 与 --help 等价于 help。
初始化选项:
- --org <name|id>:组织名称或 ID,默认取自凭据。
- --workspace <name>:工作区名称,默认 default。
- --table <name>:表名称,默认 memory。
- --path <path>:挂载路径(跳过交互式提示)。
- --hook:自动安装记忆同步钩子(跳过提示)。
- --skill <local|global>:为 Claude Code 安装 Deeplake skill(跳过提示)。
- --auto:使用全部默认值并跳过所有提示(隐含 --hook --skill global)。
成员邀请选项:--role <admin|writer|reader>,默认 writer。 全局选项:-v, --verbose 启用详细日志。
环境变量:
- DEEPLAKE_API_URL:Deeplake API URL,默认 https://api.deeplake.ai。
- DEEPLAKE_TOKEN:API token(用于托管服务)。
- DEEPLAKE_ORG_ID:组织 ID。
- DEEPLAKE_WORKSPACE_ID:工作区 ID。
- DEEPLAKE_MOUNT_PATH:默认挂载路径。
示例:
# First time setup (interactive)
deeplake init
# Fully automatic setup — all defaults, no prompts
deeplake init --auto
# Custom org and workspace
deeplake init --org my-org --workspace my-ws --table my_project
# Non-interactive with custom path + hooks + skill
deeplake init --org my-org --path ~/my-memory --hook --skill global
# Install skill only for this project
deeplake init --hook --skill local
# Switch organizations (re-points all memory mounts)
deeplake organization list
deeplake org set my-org
# Switch workspaces
deeplake workspace list
deeplake ws set production
# Invite a teammate
deeplake member invite user@example.com --role writer
# Revoke access
deeplake member remove user@example.com
# Unmount everything
deeplake umount --all
# Bulk import a directory (~400x faster than cp)
deeplake import ./my-data my_table
适用场景
适合需要在多个 AI 智能体或多个会话之间共享、保留文件与记忆的场景,也适合希望将内存数据集中存储在云端并从任意机器访问的用户。多智能体协作、跨会话延续上下文、团队间共享内存文件等均可使用。
限制
资料未提供价格、收费模式、平台支持范围、性能上限、配额或安全合规等具体信息,暂未提供。