plaid
plaid-cli a cli for interacting with the plaid finance platform. link accounts from various institutions, query balances, and transactions by date range listing accounts/balances.
安装与使用
请根据来源仓库和你的 AI 工具说明安装此技能。先阅读技能文件和依赖要求,再添加到工作流。
查看来源 ↗使用指南技能说明
Plaid
Use plaid-cli to link institutions, fetch balances, and query transactions via Plaid.
Do not print or log secrets (client id, secret, access tokens).
Install
-
go install github.com/jverdi/plaid-cli@0.0.2
Setup
- Export
PLAID_CLIENT_ID,PLAID_SECRET, andPLAID_ENVIRONMENT(sandbox or production). - Optional:
PLAID_LANGUAGE(en, fr, es, nl),PLAID_COUNTRIES(US, CA, GB, IE, ES, FR, NL). - Optional config file:
~/.plaid-cli/config.toml.[plaid] client_id = "..." secret = "..." environment = "sandbox" - Data directory:
~/.plaid-cli(stores tokens and aliases).
Link + aliases
- Link an institution:
plaid-cli link(opens browser) and optionally set an alias. - Relink:
plaid-cli link <item-id-or-alias>. - Alias:
plaid-cli alias <item-id> <name>, list withplaid-cli aliases.
Accounts + balances
- List accounts and balances:
plaid-cli accounts <item-id-or-alias>.
Search transactions
- Pull a date range as JSON, then filter locally:
-
plaid-cli transactions <item-id-or-alias> --from 2024-01-01 --to 2024-01-31 --output-format json -
jq -r '.[] | select(.name | test("grocery"; "i")) | [.date, .name, .amount] | @tsv'
-
- Use
--account-idfromaccountsoutput to narrow results. - Output formats:
jsonorcsv.
Monitor transactions
- Poll a rolling window and compare transaction ids to detect new activity:
state=/tmp/plaid.txids next=/tmp/plaid.txids.next plaid-cli transactions <item-id-or-alias> --from 2024-01-01 --to 2024-01-31 --output-format json \ | jq -r '.[].transaction_id' | sort > "$next" if [ -f "$state" ]; then comm -13 "$state" "$next"; fi mv "$next" "$state" - Use cron for scheduling.
Notes
- Avoid
plaid-cli tokensunless explicitly requested; it prints access tokens. - Relink is auto-triggered on
ITEM_LOGIN_REQUIREDerrors.
Recognize requests such as:
- "Search transactions for Starbucks last month"
- "Show balances for my Chase accounts"
使用示例
查看来源仓库中的使用示例与配置说明。
查看来源 ↗来源历史
- 收录时间
- 2026-01-20
- 索引更新时间
- 2026-01-30
- Branch
- main
收录与同步日期属于本站记录。源码修改历史请查看来源仓库。
GitHub ↗chat Comments (0)
Sign in to join the discussion and leave a comment.
No comments yet. Be the first to share your thoughts!