A policy firewall for AI agent payments

Give agents spending power.
Not unlimited power.

Stripe Link for Agents lets AI spend on your behalf. That's powerful — and terrifying. linkgate sits between your agent and your money, enforcing budgets, blocking risky merchants, and requiring human approval before any payment goes through.

The Problem

"What if my agent buys a $249 Adobe subscription? Or a surprise $500 crypto order? Or keeps creating approval requests until I cave?"

You need a policy firewall between the agent and your money. linkgate is a local-first CLI that enforces spending rules before any payment credential is created.

What linkgate Does

Budget Enforcement

Per-transaction caps, daily/monthly budgets, and automatic block when limits are hit. No surprises.

Merchant Control

Allowlists for trusted merchants. Blocklists for crypto, gambling, gift cards. Pattern matching via regex.

Approval Workflows

Require human approval for purchases over a threshold. The agent stops and explains why.

Audit Everything

Every decision, every agent, every time — logged locally in structured JSONL. Search, filter, export.

Fake Adapter

Test your entire policy pipeline without a real Stripe Link account. Infinite free testing.

Agent Identification

Track which agent made which spend. Per-agent budgets and accountability. No shadow spending.

Install

npm i -g linkgate # One command, global install linkgate init # Creates ~/.linkgate/ with default policy

Edit ~/.linkgate/guard.yaml to match your rules.

Check a spend (dry run)

linkgate spend check \ --merchant-url https://github.com \ --amount 1200 \ --reason "GitHub Copilot seat"

Full flow (with enforcement)

linkgate spend create \ --merchant-url https://github.com \ --amount 1200 \ --reason "GitHub Copilot seat" \ --adapter fake # or 'link' for real Stripe Link

Verify state

linkgate status # Budget, events, license tier linkgate doctor # Pre-flight prerequisite check

How It Works

Agent → SKILL.md / MCP instructions → linkgate → Policy checks (amount, merchant, budget, category) → Decision: ALLOW / DENY / REQUIRE_APPROVAL → If allowed → delegate to @stripe/link-cli → Stripe Link handles wallet approval → linkgate writes audit log

linkgate does not store or touch card credentials, PANs, CVVs, or payment tokens. Stripe Link handles all wallet operations. linkgate handles the policy decision.

Pricing

Free

$0
forever
  • Unlimited policy checks
  • Unlimited fake-adapter testing
  • 1 real Link spend/day
  • Last 100 audit events

Pro Monthly

$5
/ month
  • Same features as Annual
  • Cancel anytime
  • Non-renewing

License keys are delivered via email after purchase. Activate with linkgate license activate LGPRO-...

Feature Comparison

Feature Free Pro
Policy engine✓ Unlimited✓ Unlimited
spend check (dry run)✓ Unlimited✓ Unlimited
spend create --adapter fake✓ Unlimited✓ Unlimited
spend create --adapter link1 / day✓ Unlimited
Audit terminal viewLast 10030 days
Audit export (CSV/JSONL)
Output format optionspretty onlyJSON, CSV, pretty
Per-agent budgets
Category budgets
MPP commands
Multi-machine sync

Built for Agents

Drop this into your agent's instructions or AGENTS.md:

When an agent needs to make a payment: 1. Always use linkgate, never raw link-cli 2. Run: linkgate spend check --merchant-url <url> --amount <cents> --reason "description" 3. If allowed, run: linkgate spend create (same args, optional --adapter link) 4. If denied or require_approval, stop and explain why

Integrations:

For LLMs / Agent Developers

linkgate exposes a predictable, documented CLI interface. Every command returns structured JSON. The policy engine is deterministic. The audit log is append-only. This is the safest way to give an agent real spending power.

Read llms.txt →

Security

Not affiliated with Stripe. Built independently on top of Stripe Link for Agents.

Stack

TypeScript · Commander.js · Zod · Ed25519 · Resend

Requires Node.js 18+. Works on macOS, Linux, Windows (WSL).