link-balance

link-balance is a skill for Claude Code from stripe/link-cli. It costs 166 tokens per session (5,265 once invoked), scanned A, original, MIT.

A payment balance and spending rule for Link, a service that lets an agent make purchases. Money is added to the balance first, and purchases under the chosen limit can happen without asking every time.

In plain words
What is it for?
Use it to set up Link balance payments, fund the balance, and configure an agent-specific approval limit for later or repeated purchases.
Why use it?
It avoids repeated approval requests for planned or recurring purchases while still limiting how much the agent can spend.

Skill for Claude Code ✓ vendor

Written for Claude Code: allowed-tools in frontmatter. Also seen: built for openclaw.

Good fit Use it to set up Link balance payments, fund the balance, and configure an agent-specific approval limit for later or repeated purchases.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/stripe/link-cli/link-balance
About the project

stripe/link-cli is a command-line tool that lets agents obtain temporary payment credentials from a Link wallet for approved purchases without exposing the user's real card details. It is used by agents to complete web checkouts or programmatic payments while requiring purchase approval. The catalogue entries provide components for integrating the CLI with agents.

stripe/link-cli · 921 stars · on GitHub · link.com

Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add stripe/link-cli --skill link-balance
Clone the repo
git clone --depth 1 https://github.com/stripe/link-cli

Made for: Claude Code.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for link-balance

README.md
[![agentmods](https://agentmods.dev/badge/skills/stripe/link-cli/link-balance/github.svg)](https://agentmods.dev/skills/stripe/link-cli/link-balance)
Your own site
<a href="https://agentmods.dev/skills/stripe/link-cli/link-balance"><img src="https://agentmods.dev/badge/skills/stripe/link-cli/link-balance/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for link-balance

Your own site · 80×15
<a href="https://agentmods.dev/skills/stripe/link-cli/link-balance"><img src="https://agentmods.dev/badge/skills/stripe/link-cli/link-balance.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 166 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 5,265 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe. Third-party audits
  • Socket warn 17 Nov 2026
  • Snyk fail 17 Nov 2026
How audits are shown
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00166 $0.05265
Opus 5.5 $0.00066 $0.02106
Sonnet 5.5 $0.00033 $0.01053
Haiku 4.5 $0.00017 $0.00526

Measured 11d ago against content hash 8bc65fbbaedc, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

link-balance scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 11d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

skills/link-balance/SKILL.md · 255 lines

How it starts

The opening of the file, as written. The whole thing — 255 lines — stays where its author put it; the contents beside it link to each section on GitHub.

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.

  1. Link balance: The user must onboard to Link balance and fund their account.
  2. 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 set up Link balance, but it can use an existing 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.

Read the full file on GitHub · 255 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 11d ago First seen · 255 lines · 166 tokens per session scan A 8bc65fbbaedc

Subscribe to this mod's changes

link-balance is a skill published in the GitHub repository stripe/link-cli (921 stars, last pushed 4d ago), licensed MIT. It adds 166 tokens to every session and 5,265 once invoked, about $0.0007 per session on Opus 5.5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-11-19.

Related

link-balance compared with skills from other repositories

link-balance next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
link-balancestripe/link-cliSkill9214d agoMITA166Claude Code
sector-rotationHKUDS/Vibe-TradingSkill39ktodayMITA39Claude Code, Codex
strategy-pivot-designertradermonty/claude-trading-skillsSkill9.1ktodayMITA28Claude Code, Codex
twitter-readerhimself65/finance-skillsSkill3.6k26d agoMITA110Claude Code
energy-procurementhashgraph-online/awesome-codex-pluginsSkill1.6kyesterdayApache-2.0A93Claude Code, Codex
airdrop-hunting-guidenirholas/three.wsSkill287yesterdayApache-2.0A54Claude Code, Codex
multi-expert-analyzerdigoal/blogSkill8.6ktodayGPL-2.0A292Codex