agentleFS
rylsherdamz-rgbrylsherdamz-rgb/stellar-forge/skills/agentic-payments/SKILL.md

agentic-payments

Skill17 starsChanged 2 months agoMITView on GitHub

Agentic and machine-to-machine payments on Stellar. Covers x402 (HTTP 402 paid APIs) and MPP (Machine Payments Protocol) Charge/Channel modes.

  • Reads credentials

2 other projects use a version of this.

Adopted by

Most recently taken up by

The file

Files
SKILL.md

Agentic Payments (x402 + MPP)

Source Files (published with this skill)

FileContents
templates/src/middleware/x402.tsExpress middleware — checks x402 payment header, verifies OZ channel, rejects unpaid requests with 402

x402 Middleware

See templates/src/middleware/x402.ts for the full implementation. Import and apply:

import { x402Middleware } from "./middleware/x402";

app.use("/api/paid", x402Middleware({ channelId: process.env.OZ_CHANNEL_ID! }));

Payment Setup

  • USDC (SEP-41 SAC) on stellar:testnet / stellar:pubnet
  • OZ Channels facilitator for x402
  • MPP Charge mode: per-request SAC
  • MPP Channel mode: off-chain commits for high-frequency traffic

Download now (ZIP)

Does it work?

Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.

No reviews yet

People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.

  • It worked
  • Partly
  • It didn't
What did you use it for? e.g. Reviewing pull requests in a Rails app

Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.

Your trail

Files you open will collect here, so you can find them again.

Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.

Now do this for your own.

Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.