昨晚 vibe coding 自己做了一个小工具,叫 amex-cli,主要是把 Amex 账户里的卡片、benefit、offer 拉到本地,之后可以直接在 terminal 里看,也可以输出 JSON 给 AI 工具分析。
示意图
我自己会做这个,主要是因为 Amex 官网虽然信息很多,但分得比较散,平时想快速看某张卡还有哪些 benefit、哪些 offer 已经 enrolled、哪些还没用,不太顺手。另外串接AI Workflow也不方便。这个工具现在能做的事情大概有:
- 同步 Amex 的 cards / benefits / offers 到本地
- 用 terminal 里的交互界面查看
- 输出 JSON,直接丢给 OpenClaw/ChatGPT / Claude / Codex 之类工具
- 全部都在本地完成,确保帐号与资料隐私
安装和使用也比较简单,前提是电脑上已经装了 Node.js 和 Google Chrome。
- 先确认 node / npx 可以用,然后直接:
npx amex-cli --help - 第一次使用先存账号密码:
npx amex-cli auth set - 然后同步数据:
npx amex-cli sync有时候会需要 2FA - 同步完之后,直接打开交互界面:
npx amex-cli - 纯文字版:
npx amex-cli show benefits - 如果想看 JSON,也可以:
npx amex-cli show benefits --json - 加全部 Offer (支援多卡,目前还不稳定能加到全部)
npm amex-cli enroll all-offers --all-cards - Web UI:
npx amex-cli ui