link-balance
БесплатноБез исполняемых скриптовНе проверенSets up and uses Link balance, a payment method that holds money in the user's Link account, and the approval policy that lets an agent spend it without the…
от stripe★ 922 звезды на GitHubОб этом скилле
Link balance
Link balance is a payment method that lets users hold money in their Link account. It can be used like any other payment method in link-cli, but it can also be used to make purchases without requesting approval.
In order to spend without approvals, the user must set up two things in Link: a balance and an approval policy.
- Link balance: The user must onboard to Link balance and fund their account.
- Approval policy: The user sets an approval policy for you. It sets an approval threshold: purchases below this amount don't need the user's approval.
The balance belongs to the user's Link account. The approval policy belongs to one agent's OAuth client, so an approval policy the user set for another agent does not apply to you.
Link balance is part of agent payments. It is unrelated to financial insights and to the bank balances from link-cli balances list. It needs no extra scopes or source actions. Neither Link balance nor an approval policy is part of the initial link-cli setup. Never assume they exist, and never block a normal approved payment on them.
Who can use it
Link CLI's built-in OAuth client is not currently eligible to onboard users to Link balance or have an approval policy. It can use an existing Link balance with normal user approval.
Link balance is only available in the US, and not in New York State. Run link-cli user-info retrieve --format json and check eligible_for_balance to determine whether the user can onboard. It checks both user eligibility and whether your authenticated OAuth client can set up Link balance. Only suggest or direct the user to set up Link balance when eligible_for_balance is explicitly true. If it is false or missing, don't offer setup.
Any agent can pay with Link balance: if the user already has it set up, it's one of their payment methods. Setup URLs and approval policies are tied to your Link OAuth client ID. Check the user's eligible_for_balance from the user-info endpoint (link-cli user-info retrieve --format json) before directing them to setup, and use approval-policy retrieve to check whether you can spend without approval. If you don't have your own Link OAuth client ID, you can still pay with Link balance the user already has, with normal approval, but don't send setup URLs or pass --use-approval-policy.
When to use it
This unlocks several use cases for agentic spending, for example:
- Approve now, buy later. "Grab these sneakers when my size is back in stock." The user agrees once, and you buy whenever the condition is met.
- Buy at a specific time. "Get two tickets when they go on sale at midnight." The purchase happens on time, even if the user is busy or away from their devices.
- Repeated purchases on a schedule. "Reorder dog food every month from the store with the cheapest price." Each order goes through on schedule, even if the merchant changes.
- Fewer interruptions. For any kind of purchase, some users would prefer to reduce friction and let their agent spend without requesting approval each time.
Link balance does not support recurring payments (--recurring-interval), which are for merchant subscriptions where the merchant keeps one card on file and charges it each period, such as a software subscription. For those, use recurring payments in create-payment-credential with a card. For repeated purchases that aren't a merchant subscription, use Link balance and create a separate one-time spend request for each purchase.
These are examples, not a complete list. Because purchases under an approval policy don't need the user to approve each one, Link balance also makes proactive purchases possible: buying something on your own initiative because you know the user wants it. See Proactive purchases.
Suggest setting up Link balance only when it would help with something the user wants, such as a purchase that has to happen when they can't approve it, or when they've said approving is a hassle. If the user is present and can approve right now, use the normal flow in create-payment-credential and don't bring up Link balance.
Explaining it to the user
Users need to understand three things and how they fit together. When you talk to the user, call the approval policy an "approval preference":
- Link balance: money the user adds to their Link account. You can use it to buy things for them when they select it as their payment method.
- Approval preference: a setting the user chooses in Link that lets you make purchases without asking for their approval. It only covers purchases paid with their Link balance, and it only applies to you, not to other agents.
- Approval threshold: the amount the user sets in their approval preference. When they pay with Link balance, you can make purchases below this amount without asking for their approval. It applies to each purchase, not to the total.
Keep it that simple:
"Link balance is money
Установить link-balance в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Bash(link-cli:*)Bash(npm install -g @stripe/link-cli:*)FAQ
Что делает скилл link-balance?
Sets up and uses Link balance, a payment method that holds money in the user's Link account, and the approval policy that lets an agent spend it without the user approving each purchase. Use when a purchase should happen later ("approve now, buy later"), repeatedly on a schedule (separate one-time purchases, not a merchant subscription), while the user is away or asleep and cannot approve a SpendRequest, when the user simply wants to stop approving each purchase manually, or when you're considering a purchase on your own initiative that the user has said they want; when the user asks about Link balance; or when you need to check whether Link balance is set up, whether this agent has an approval policy, or how to send the user to set either up. Link balance is part of agent payments, not financial insights.
Как установить скилл link-balance?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл link-balance запускает скрипты?
Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.
Похожие скиллы
theme-factory
Toolkit for styling artifacts with a theme. These artifacts can be slides, docs, reportings, HTML landing pages, etc. There are 10 pre-set themes with…
от Anthropicaccess
Manage Discord channel access — approve pairings, edit allowlists, set DM/group policy. Use when the user asks to pair, approve someone, check who's allowed…
от Anthropicconfigure
Set up the Discord channel — save the bot token and review access policy. Use when the user pastes a Discord bot token, asks to configure Discord, asks "how…
от Anthropicaccess
Manage iMessage channel access — approve pairings, edit allowlists, set DM/group policy. Use when the user asks to pair, approve someone, check who's allowed…
от Anthropic