AI Agent skill

Give agents one careful tool boundary for billing.

Rute Bayar lets an AI Agent create dynamic invoices, attach product or run references, verify payment status, and continue work only after the payment state is clear.

agent billing flow
$ rutebayar pay create --provider xendit \
  --reference agent-run-2042 \
  --amount 49000

$ rutebayar pay status --provider xendit --reference agent-run-2042
status: paid

$ rutebayar reconcile --provider xendit --reference agent-run-2042
verified: true
01

Invoice

Generate payment links from the agent workflow using product, usage, tenant, or run metadata as the reference.

02

Verify

Check current status through the provider adapter and prefer signed webhook events for final payment state.

03

Continue

Only unlock paid work after the local state has been reconciled with provider evidence.

Guide

Minimum agent behavior

  1. Create a payment with a unique agent run reference.
  2. Return the payment URL to the user or product surface.
  3. Poll status only when needed, then trust verified webhooks for final state.
  4. Run reconcile before fulfillment if the workflow was interrupted.