---
title: "Agents can buy Fly credits with MPP"
date: "2026-11-23"
author: "Alex"
url: "https://fly.io/changelog/agents-can-buy-fly-credits-with-mpp/"
discussion: "https://community.fly.io/t/agents-can-buy-fly-credits-with-mpp/29143"
---

# Agents can buy Fly credits with MPP

Agents can now add credit to a Fly org themselves with [MPP](https://mpp.dev) (Machine Payments Protocol), so they can keep your apps running without you logging into the dashboard. 
You still approve every charge in the Link app.

Here's what it looks like with Stripe's `link-cli` (after `link-cli auth login`):

```bash
export FLY_TOKEN=$(fly tokens create org -o <org> --expiry 1h)

link-cli mpp pay https://fly.io/api/v1/mpp/credits \
  -X POST \
  -H "Authorization: $FLY_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{"org_slug": "<org>", "amount": "25"}' \
  --amount 2500 \
  --context "Adding \$25 of prepaid credit to the Fly.io org <org> so the apps I'm deploying for the user keep running."
```

* Fly answers with a 402 payment request, and `link-cli` asks you to approve the charge in the Link app
* `--context` is the reason you'll see in Link when you approve
* When an agent runs it, `link-cli` returns the commands to check for approval and then pay
* Credit shows up on the org's billing page and pays for usage before your card is charged
* Use the same org for `-o` and `org_slug` (`fly orgs list` shows slugs)
* Amounts are $5, $10, $25, $50 or $100
* Agent docs at [fly.io/agent-ready.md](https://fly.io/agent-ready.md), spec at [/api/v1/mpp/openapi.json](https://fly.io/api/v1/mpp/openapi.json)
