Changelog
Copy
View as Markdown

2 min read 3 likes

Pocket money for agents

Kyle McLaren

Agents are good at finding the thing you want. They’re bad at paying for it, because the only way to let one pay has been to hand it your card number and hope it doesn’t discover .ai domains. Now you can connect Link, Stripe’s wallet, to your Sprites, and give your agent a better option: a one-time card for each purchase, approved by you.

From the connectors page, configure the connector once. Then an agent in one of your Sprites can ask Link for a one-time virtual card for a specific purchase: this merchant, this amount, and a plain-English line about why. You get a push notification in the Link app and approve or deny it. Approve it and the agent gets a single-use card, capped at that amount, that’s invalid after 12 hours. Your real card number never leaves Link.

Sprites has dozens of connectors, and the list keeps growing, but this one is special: behind the credential is money. That’s why the gateway forwards only the routes an agent needs to request and collect a payment, and blocks the ones that would let it approve its own.

How it works

Here’s what it looks like from inside a Sprite, using Stripe’s link-cli:

link-cli spend-request create \
  --merchant-name "Stripe Press" --merchant-url "https://press.stripe.com" \
  --context "Buying 'Working in Public' from press.stripe.com for the user, who asked for it in today's session and set a $40 budget." \
  --amount 3500
{
  "id": "lsrq_...",
  "status": "pending_approval",
  "amount": 3500,
  "currency": "usd",
  "merchant_name": "Stripe Press",
  "merchant_url": "https://press.stripe.com",
  "credential_type": "card",
  "approval_url": "https://app.link.com/activity/approve/lsrq_..."
}

At this point your phone buzzes. Once you approve, your agent can request the card:

link-cli spend-request retrieve lsrq_... --include card
{
  "id": "lsrq_...",
  "status": "approved",
  "card": {
    "brand": "visa",
    "number": "4242424242424242",
    "cvc": "100",
    "exp_month": 6,
    "exp_year": 2029,
    "billing_address": {
      "name": "Jenny Rosen",
      "line1": "354 Oyster Point Blvd",
      "city": "South San Francisco",
      "state": "CA",
      "postal_code": "94080",
      "country": "US"
    },
    "valid_until": "2026-11-09T21:40:10Z"
  }
}

Try it

  1. On the connectors page for your org in the dashboard, pick Link Agent Payments and choose Continue with Link. Approve it in Link.
  2. Choose which Sprites get access.
  3. In a Sprite, install the CLI and point it at the gateway.

We’d like to hear what your agents end up buying. Tell us in the thread below, or have the agent tell us itself through the feedback API.

Link Agent Payments is available to Link accounts in the US and Canada, with a $500 cap per request. The connector card has the full limits.