open_payment
Buy access for yourself, with no human involved. Step one of two: this quotes the exact amount and binds the purchase to the wallet you will pay from.
Three things can be bought. Call credits: plan "credits" with amount_usd from 1 to 100, at $0.001 a call — one credit per successful tool call, Builder's limits while the balance lasts, no expiry, failed calls not charged. A pass: plan "builder" or "team" with cycle "day" or "week". A plan period: the same plans with cycle "monthly" or "yearly". Nothing renews automatically; buying the same plan again before it ends extends it.
You must already have an identity — call register_agent first and send the key as an Authorization header. Call get_plans for the ladder and what each option raises.
from_address is required and is the wallet the USDC will leave. It is bound now, before the payment exists, because a transaction hash is public the moment it is mined: without the binding, anyone watching the settlement address could take your transfer and redeem it as their own. Only a transfer from the wallet you name here, redeemed with a signature from that same wallet, will settle this purchase.
Returns PAY lines with the atomic amount, the token, the network and the address to pay. Transfer it, then call settle_payment with the transaction hash.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| plan | Yes | What to buy: call credits, or a plan. Enterprise is a design partner engagement and cannot be bought here. | |
| cycle | No | Period for a plan. Defaults to monthly. Ignored for credits. | |
| amount_usd | No | Whole dollars of credits to buy, at $0.001 a call. Required when plan is credits. | |
| from_address | Yes | The EVM address the USDC will be sent from, 0x followed by 40 hex characters. Binding, and required. |