Memorion CLI 快速上手

在终端里访问你的录音、转录和 AI 总结——也可以给任何能执行命令的 AI Agent 使用。

1

安装 Node.js

CLI 需要 Node.js 20 或更高版本。先检查版本:

Terminal
node --version   # needs v20 or newer

如果没有安装 Node.js,去 nodejs.org 下载 LTS 版本即可。

2

安装 CLI

用 npm 全局安装:

Terminal
npm install -g @memorion/cli

也可以不安装,直接用 npx @memorion/cli 运行。

3

登录

Terminal
memorion login

这条命令会打开浏览器。用你在 Memorion App 里使用的同一账号登录(Google、Apple 或邮箱),CLI 会自动拿到凭证,完成。

凭证保存在 ~/.memorion/。CI、Agent 等非交互环境可以改用环境变量,见下文。
4

试一试

配置完成,先跑几条命令:

Terminal
memorion today                 # today's recordings
memorion recent                # last 7 days
memorion transcript <id>       # full transcript
memorion summary <id>          # AI summary + action items
memorion audio <id> -o out.wav # download the audio
5

在 AI Agent 里使用

所有命令都支持 --json 输出机器可读的结果,很容易接入 Claude Code 这类 Agent。无界面环境用环境变量提供凭证:

Environment variables
export MEMORION_API_KEY=memorion_dev_prod_xxx
export MEMORION_USER_ID=<your_user_id>

memorion list --from 24h --json

命令一览

CommandDescription
memorion list列出或搜索录音(--from、--to、--query)
memorion recent最近 7 天的录音
memorion today今天的录音
memorion get <id>单条录音的详情和总结
memorion transcript <id>带说话人标注的完整转录
memorion summary <id>AI 总结和待办事项
memorion audio <id>下载 WAV 音频
memorion config管理本地默认配置

常见问题

  • 退出码 3(认证失败):重新运行 memorion login。
  • 列表是空的:确认登录的是 Memorion App 同一个账号,且 App 已完成同步。
  • audio 提示链接过期:下载链接 15 分钟有效,重新运行命令即可。