agentic-payments

Facilitate fee-free machine-to-machine payments on Stellar using x402 and MPP protocols.

3|Updated Jun 23, 2026
One-click install
npx skills add https://github.com/WritzProtocol/writz --skill agentic-payments-writzprotocol
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: agentic-payments
Source: https://github.com/WritzProtocol/writz/tree/main/.agents/skills/agentic-payments
Command: npx skills add https://github.com/WritzProtocol/writz --skill agentic-payments-writzprotocol

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill requires oz-channels, stellar-sdk, mppx, and includes scripts (resource) and references (resource) and assets (resource) components.

What problem does it solve?

This Skill unit provides streamlined solutions for agentic and machine-to-machine payments on Stellar, addressing the challenges of fee-free, high-frequency payments via x402 and off-chain transactions via MPP.

Core Features & Use Cases

  • x402 (HTTP 402 paid APIs via OZ Channels facilitator): Facilitates fee-free payment APIs for clients (including AI agents) using OZ Channels, ideal for API monetization.
  • MPP (Machine Payments Protocol): Offers two modes—Charge and Channel—for high-frequency agent payments, ensuring direct settlement on Stellar with minimal on-chain transactions.
  • Use Case: Design and implement a payment channel architecture for a service with a high volume of machine-generated transactions on Stellar, ensuring privacy and efficiency.

Quick Start

Use the 'agentic-payments' skill to implement x402 payments for your API by configuring the resource server with the appropriate pricing and network settings.

Frequently Asked Questions about agentic-payments

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I facilitate machine-to-machine payments on Stellar for high-frequency transactions?

Machine-to-machine payments on Stellar are facilitated using the MPP protocol, which enables high-frequency, off-chain agent payments with direct settlement and minimal on-chain transactions. It operates in two modes: Charge and Channel.

What is the x402 protocol for paid APIs?

The x402 protocol provides on-chain payments via HTTP 402 for paid APIs using OZ Channels. It facilitates fee-free payment APIs for clients, including AI agents, making it ideal for API monetization on the Stellar network.

Do I need USDC trustlines on my Stellar account to use MPP?

Yes, USDC trustlines on Stellar accounts are required. Both the x402 and MPP payment protocols require specific trustline configurations on your Stellar accounts to ensure secure and fee-free transaction settlement.

How do I configure a resource server for x402 payments?

To configure x402 payments for your API, set up the resource server with appropriate pricing and network settings. This requires an OZ Channels API key to leverage the OZ Channels facilitator for fee-free on-chain payments.

When should I use MPP Charge mode versus Channel mode for agent payments?

MPP offers Charge and Channel modes for high-frequency agent payments, ensuring direct settlement on Stellar with minimal on-chain transactions. Use Charge for standard billing or Channel for establishing dedicated payment streams.