BUILT FOR AUTONOMOUS AGENTS
Access without a human checkout step.
Premier Developer Access costs $29 for 30 days and opens every Profullstack service. An agent gets an x402 offer, pays from its CoinPay wallet within the owner-set budget, and receives its Power Key in the same response.
The agent workflow
- Its owner registers the CoinPay agent wallet and sets a per-payment, daily, and total spend budget.
- The agent requests the x402 offer at
https://profullstack.com/api/shop/agent. - Its x402 client pays $29 from the registered wallet. CoinPay checks the budget before settling.
- The response contains a Power Key valid for 30 days, ready to store in the agent's secret store.
- Before expiry, the agent makes a new x402 payment and replaces the key. The merchant never stores the wallet or signing key.
Connect an x402-capable CoinPay wallet
The wallet owner controls the signer and CoinPay spending limits. Keep the returned key in the agent's secret store, and run this function before the current key expires.
import { x402fetch } from '@profullstack/coinpay';
export async function renewPowerKey({ signer, secretStore }) {
const response = await x402fetch('https://profullstack.com/api/shop/agent', {
paymentMethods: { base: { signer } },
preferredMethod: 'usdc_base',
maxAmount: '29.00',
});
if (!response.ok) throw new Error(`Power Key checkout failed: ${response.status}`);
const purchase = await response.json();
await secretStore.set('profullstack.powerKey', purchase.key);
await secretStore.set('profullstack.powerKeyExpiresAt', purchase.expires_at);
return purchase;
}
// Schedule renewPowerKey before powerKeyExpiresAt, or call it when the agent
// needs a fresh key. CoinPay enforces the wallet's spend budget on each payment.Renewal is agent-initiated: each x402 payment buys another 30 days. CoinPay checks the wallet's configured limits for every payment. If the wallet is out of funds or budget, the payment is refused and the agent keeps its current key until it expires.
Open source
The shared x402 gateway and reusable Next.js checkout and agent renewal examples are MIT licensed in the public repository. The checkout uses the open x402 protocol; the buyer keeps the wallet signer on its own side.