360 Secure SkillHub
360 安全技能中心

Manage YNAB budgets, accounts, categories, and transactions.

封装 @stephendolan/ynab-cli,通过命令行管理 YNAB 的预算、账户、分类、交易、收款人、月份和计划交易,支持查看、搜索、创建、更新、删除以及原始 API 调用;需 YNAB_API_KEY,速率限制 200 次/小时。

obviyus
obviyus
热度 94.79
最近更新 2026-05-19 04:48:39
分类:生活依赖:代码执行 / 第三方 API应用场景:财务 / 个人理财 / 工作流 / 数据处理 ...

安装技能

复制下面的话术发给你的 Agent,它会通过 secure-skills 检索并安装该技能。

执行命令安装此 skill: npx secure-skills-cli add ynab
Metadata
name
ynab
description
Manage YNAB budgets, accounts, categories, and transactions via CLI.
metadata
{"clawdbot":{"emoji":"💰","requires":{"bins":["ynab"],"env":["YNAB_API_KEY"]},"primaryEnv":"YNAB_API_KEY","install":[{"id":"node","kind":"node","package":"@stephendolan/ynab-cli","bins":["ynab"],"label":"Install ynab-cli (npm)"}]}}

YNAB CLI

Install

npm i -g @stephendolan/ynab-cli

Auth

# Get API key from https://app.ynab.com/settings/developer
# Then set YNAB_API_KEY env var, or:
ynab auth login
ynab auth status

Budgets

ynab budgets list
ynab budgets view [id]
ynab budgets set-default <id>

Accounts

ynab accounts list
ynab accounts view <id>
ynab accounts transactions <id>

Categories

ynab categories list
ynab categories view <id>
ynab categories transactions <id>
ynab categories budget <id> --month <YYYY-MM> --amount <amount>

Transactions

ynab transactions list
ynab transactions list --account <id> --since <YYYY-MM-DD>
ynab transactions list --approved=false --min-amount 100
ynab transactions search --memo "coffee"
ynab transactions search --payee-name "Amazon"
ynab transactions view <id>
ynab transactions create --account <id> --amount <amount> --date <YYYY-MM-DD>
ynab transactions update <id> --amount <amount>
ynab transactions delete <id>
ynab transactions split <id> --splits '[{"amount": -50.00, "category_id": "xxx"}]'

Payees

ynab payees list
ynab payees view <id>
ynab payees update <id> --name <name>
ynab payees transactions <id>

Months

ynab months list
ynab months view <YYYY-MM>

Scheduled

ynab scheduled list
ynab scheduled view <id>
ynab scheduled delete <id>

Raw API

ynab api GET /budgets
ynab api POST /budgets/{budget_id}/transactions --data '{"transaction": {...}}'

Notes

  • Amounts are in your budget's currency, not milliunits
  • Use --compact for minified JSON
  • Rate limit: 200 req/hour
  • Cannot create categories/groups/payees via API