名称: copilot-money
描述: 查询 Copilot Money 个人财务数据(账户、交易、净资产、持仓、资产配置)并刷新银行连接。当用户询问财务、账户余额、近期交易、净资产、投资配置或需要同步/刷新银行数据时使用。
Copilot Money 个人理财应用的命令行界面。一次认证后,即可在终端查询账户、交易、持仓和资产配置数据。
注意: 此为非官方工具,与 Copilot Money 无关联。
pip install copilot-money-cli
copilot-money config init
copilot-money accounts
copilot-money networth
copilot-money refresh # 刷新所有银行连接
copilot-money accounts # 列出账户及余额
copilot-money accounts --type CREDIT # 按类型筛选
copilot-money accounts --json # 输出为 JSON 格式
copilot-money transactions # 近期交易(默认 20 条)
copilot-money transactions --count 50 # 指定交易数量
copilot-money networth # 资产、负债与净资产
copilot-money holdings # 投资持仓(按类型分组)
copilot-money holdings --group account # 按账户分组
copilot-money holdings --group symbol # 按代码分组
copilot-money holdings --type ETF # 按证券类型筛选
copilot-money allocation # 股票/债券及美国/国际分布
copilot-money config show # 显示配置与令牌状态
copilot-money config init # 自动从浏览器检测令牌
copilot-money config init --source chrome # 从指定浏览器获取
copilot-money config init --source manual # 手动输入令牌
配置存储于 ~/.config/copilot-money/config.json。CLI 支持在 macOS 上自动从受支持的浏览器检测 Copilot Money 刷新令牌。
copilot-money config initcopilot-money config init --source arc|chrome|safari|firefoxcopilot-money config init --source manual使用浏览器自动检测时,CLI 会读取浏览器本地 IndexedDB 存储以获取 Copilot Money 会话令牌。此过程在本地完成——除 Copilot Money API 外,数据不会发送至任何地方。