Skip to main content
agenta pay wraps the same checkout flow as the @agentaos/pay SDK and the dashboard: create a checkout, get back a payment link, and track its status, all without leaving the terminal. Useful for one-off invoicing, quick testing, and scripting payment creation into whatever tool you already use.
agenta pay commands authenticate with your agenta login session, not an API key. For key-based auth in a backend or script, use @agentaos/pay or the REST API with an sk_live_/sk_test_ key instead.

Create a checkout

number
required
Payment amount in currency units, e.g. -a 49.99 for €49.99. Not cents.
string
default:"org default"
Currency code, e.g. EUR, USD.
string
Shown to the buyer on the checkout page.
string
Pre-fills the buyer’s email on the checkout page.
boolean
Output a single JSON object instead of the human-readable summary.
Output

--json

Checkouts expire in 30 minutes by default. Share the checkoutUrl with your buyer.

Get a checkout

string
required
The checkout session ID, e.g. mZrESFyR7RC9RPsJfZCVkg.
boolean
Output a single JSON object instead of the human-readable summary.
--json
amount here reflects a per-checkout override and can be null if this checkout used its payment link’s own amount rather than overriding it. status is one of open, completed, expired, cancelled.

List checkouts

string
Filter by open, completed, expired, or cancelled. Omit to list all.
number
default:"10"
Results per page, 1 to 100.
boolean
Output a single JSON object instead of a table.
Output

--json

Every agenta pay command supports --json, and JSON output kicks in automatically whenever stdout isn’t a terminal. Pipe to jq or a file without the flag: agenta pay list --status open | jq '.items[].checkoutUrl'.

Next steps

Subscriptions

List and cancel recurring subscribers.

Invoices

Pull receipts once a checkout is paid.

Checkouts (SDK)

Create checkouts from your own backend.

Checkouts (concept)

How checkouts, payment links, and settlement fit together.