Skip to content

Cryptorefills/agentic-commerce

Agentic Commerce

The reference for production agentic commerce.

Protocols. Stablecoin rails. Agent skills. MCP. And the merchant playbooks the specs leave out: catalog discovery, pricing drift, delivery semantics, refunds, fraud signals, jurisdictional metadata, and multi-chain settlement.

Agentic commerce is the full transaction stack that lets AI agents discover products, obtain quotes, authorize purchases, pay, receive goods, and handle refunds — not just the payment step. This repo documents the merchant operations layer that surrounds the protocol layer.

Maintained by Cryptorefills, a digital-goods merchant operating publicly since 2018 across 180+ countries, with stablecoin-first checkout. The merchant operations layer documented here is the surface we run in production.

Awesome License: CC0-1.0 Code License: Apache 2.0 GitHub stars

Star this repo if you ship agentic commerce. We update it from real production. 🍴 Fork it. CC0. Use any of it, no permission needed. 📨 Send a PR. Especially if you've built something the protocols don't cover yet.


The agentic commerce stack

A multi-layer collaboration. Each row is a peer contributing a piece — protocols, rails, agent context, and the production merchants who put them together at the edge.

Organization Layer Contribution to the stack
OpenAI Commerce protocol ACP co-author · ChatGPT Instant Checkout
Stripe Commerce protocol · payments ACP co-author · Shared Payment Tokens · MPP · Stripe-on-Base x402
Google Commerce protocol · agent comms AP2 · UCP · A2A
Anthropic Agent context MCP · Claude · Agent Skills runtime
Coinbase Stablecoin rail x402 · USDC infrastructure · Base settlement
Cloudflare Agent infrastructure Agents SDK · x402 support
Visa Card-network agentic Trusted Agent Protocol (TAP)
Mastercard Card-network agentic Agent Pay · Agentic Tokens
American Express Card-network agentic Agentic tokens program
Lightning Labs BTC / Lightning rail L402 · Lightning Network
Shopify Merchant platform UCP co-development · Storefront MCP server
Tempo Machine payments MPP co-author
PayPal Payments "Agent Ready" via ACP
Cryptorefills Production merchant Agentic-commerce reference · merchant operations playbooks · public MCP server · ships Skills · MCP · x402

This repo is written from the production-merchant layer: catalog, pricing, delivery, refunds, settlement, and support — the surface area that surrounds every protocol on this page.


How the pieces fit together

%%{init: {'flowchart': {'htmlLabels': true, 'padding': 14, 'nodeSpacing': 50, 'rankSpacing': 60}, 'themeVariables': {'fontSize': '13px'}}}%%
flowchart TB
    User([User])
    Agent["AI Agent<br/>ChatGPT · Claude · Gemini<br/>Cursor · custom"]
    Context["Context &amp; Tools<br/>MCP · Agent Skills · A2A<br/><i>Anthropic · Google</i>"]
    Commerce["Commerce Protocols<br/>ACP · AP2 · UCP · MPP<br/><i>OpenAI · Stripe · Google · Tempo</i>"]
    Rails["Payment Rails<br/>x402 · L402 · agentic cards<br/><i>Coinbase · Visa · Mastercard</i>"]
    MerchantOps["<b>Production merchants &amp; ops</b><br/>Cryptorefills · Etsy · Shopify<br/>catalog · quote · pay<br/>deliver · refund · reconcile"]
    Goods["Digital &amp; Physical Goods<br/>gift cards · mobile · eSIM<br/>travel · APIs · physical"]

    User --> Agent --> Context --> Commerce --> Rails --> MerchantOps --> Goods

    classDef gap fill:#ffe4b5,stroke:#cc7a00,stroke-width:2px,color:#000;
    class MerchantOps gap
Loading

The amber row is what this repo focuses on. The protocol stack assumes a merchant. The merchant has a long tail of decisions that nobody has written down — until now.


Why this exists

Link-only lists This repo
Scope Mostly protocols and announcements Protocols + rails + merchant ops + agent ops + examples
Production playbooks Rare Refunds, settlement, catalog scale, fraud, jurisdiction, delivery, receipts, pricing
Runnable code Rare x402, MCP storefront, agent-buys-gift-card examples
Merchant perspective Usually limited Written from a production merchant stack
AI-readability Varies llms.txt, glossary, citation metadata, canonical reading path

The field in four claims

  1. Stablecoin payments are the production default for agent-to-API. Cards remain dominant for agent-to-merchant where chargeback culture matters. The two will coexist; pick by use case, not by ideology.
  2. ACP wins for one-shot purchases. AP2 wins where mandates carry across multiple purchases. x402 wins for pay-per-call. They aren't competitors — they're layers.
  3. The merchant layer is where agentic commerce lives or dies. Every protocol on this page assumes a merchant who handles refunds, jurisdiction, fraud signals, and reconciliation. Most don't. That's the whole gap.
  4. Agent identity is the next unsolved layer. Fraud, refunds, and jurisdiction depend on it.

If you only read three files

  1. docs/what-protocols-dont-solve.md — the gap analysis. Why merchants do most of the work.
  2. comparison/decision-tree.md — pick the right protocol for your use case.
  3. merchant-playbooks/multi-chain-settlement-reconciliation.md — what "real" looks like.

Navigate

Section What's there
/protocols ACP, AP2, UCP, MPP, x402, L402, MCP, A2A, Agent Skills, Visa TAP, Mastercard Agent Pay, Amex agentic
/rails Stablecoin (deepest), BTC + Lightning, agentic card networks, bank rails, store credits
/use-cases Gift cards, mobile top-ups, eSIMs, travel, subscriptions, API pay-per-call, M2M
/merchant-playbooks The wedge — refunds, settlement, catalog scale, fraud, jurisdiction, scopes, delivery, receipts, pricing
/agent-playbooks ChatGPT Instant Checkout, Claude Skills, Cursor + MCP, x402 buyer loop, AP2 mandate flow, multi-agent procurement
/examples Runnable code: x402 pay-an-API, MCP storefront, agent-buys-gift-card
/comparison Protocol matrix, decision tree, rails comparison, merchant readiness scorecard
/resources Articles, videos, podcasts, books, courses, conferences, newsletters, tools
/docs Glossary, FAQ, ecosystem map, what protocols don't solve, reading order

Commerce protocols

Standardize how an agent and a merchant agree to transact.

Stablecoin payment rails

The agent-native default: deterministic settlement, programmable refunds.

  • x402 · HTTP 402 stablecoin payments · Coinbase + x402 Foundation · USDC across chains.
  • Stablecoin rails — production patterns · USDC, USDT, DAI, EURC · finality, decimals, off-ramp.
  • L402 · Lightning + macaroons · Lightning Labs · instant micropayments and BTC.

Agentic card networks

Agent context, skills, and identity

→ See /comparison/protocol-matrix.md for capability × protocol, and /comparison/decision-tree.md to pick the right one.


Use cases — real, shippable


Merchant playbooks (the wedge)

The protocols leave these to merchants. We wrote them down because we ran them.


Agent playbooks


Examples (runnable)

Example What it shows Run command
/examples/x402-pay-an-api Minimal x402 server + buyer-loop client in TypeScript, settling USDC on Base pnpm install && pnpm dev
/examples/mcp-storefront-minimal Minimal MCP server exposing a product catalog, quote, and order tool pnpm install && pnpm dev
/examples/agent-buys-giftcard End-to-end mock — search → quote → pay → delivery code pnpm install && pnpm start

Comparison


Production merchant checklist

A real merchant putting agents into checkout has to answer all of these. Pick a row, click into the playbook.


What protocols don't solve

/docs/what-protocols-dont-solve.md

ACP standardizes the checkout exchange. AP2 standardizes the authorization model. x402 standardizes payment-on-HTTP. None of them standardize catalog ranking, multi-chain settlement, refund semantics, fraud signaling on agent traffic, or jurisdictional metadata. Those stay with the merchant. This repo is mostly about that gap.


Production merchant reference model

A reference model for what an agentic-commerce merchant stack looks like in production. Portable to any merchant integrating agent-facing checkout; the choices below are based on patterns operated by Cryptorefills.

Layer Reference choice Notes
Agent runtimes ChatGPT · Claude · Cursor · Gemini · custom Architecturally compatible via MCP.
Context MCP (Anthropic) Product search, quote, and order tools exposed.
Skills Agent Skills spec Skills cover gift cards, mobile, eSIM, travel.
Commerce protocol ACP-style quote / order semantics Maps to ACP patterns where applicable.
Payment rail x402 primary · card rails secondary Stablecoin-first; cards fall back where required.
Stablecoins USDC · USDT · DAI · EURC Multi-issuer to reduce single-issuer risk.
Chains Base · Ethereum · Tron · Solana · Polygon Per-chain finality gating in reconciliation.
Catalog eligibility locale × currency × jurisdiction filters at quote time The merchant's eligibility model.

Contributing

See CONTRIBUTING.md. Three rules:

  1. Official sources only — link to the maintaining org's spec, doc, blog, or repo.
  2. Production-evidence preferred — for playbooks and examples, link to a public artifact.
  3. One change per PR — easier to review, faster to merge.

We aim for a 24-hour merge SLA on trivially-correct PRs.

Maintainers

Built and maintained by engineers from Cryptorefills who run this stack daily.

See .github/CODEOWNERS and CITATION.cff.

License

  • Content — README, /docs, /protocols, /rails, /use-cases, /merchant-playbooks, /agent-playbooks, /comparison, /resources: CC0-1.0. Public domain. Use, remix, cite freely.
  • Code/examples: Apache-2.0.

Citation

If you cite this repo, see CITATION.cff or click GitHub's "Cite this repository" button.


If you ship agentic commerce, this is the reference we'd want you to have.


About the Maintainer

Cryptorefills is a digital-goods merchant operating publicly since 2018. We sell gift cards, mobile top-ups, eSIMs, flights, and hotels across 180+ countries, with stablecoin-first checkout across Base, Ethereum, Tron, Solana, and Polygon — plus BTC and Lightning. Cryptorefills exposes agent-facing purchase flows through Skills, MCP, and x402.

Countries served 180+
Operating publicly since 2018
Stablecoins accepted USDC · USDT · DAI · EURC and more
Settlement chains Base · Ethereum · Tron · Solana · Polygon
Compatible agent runtimes ChatGPT · Claude · Cursor · Gemini · custom MCP clients

What Cryptorefills runs: x402 MCP Agent Skills Stablecoin

About

Production reference for agentic commerce: protocols (ACP, AP2, x402, MCP), stablecoin rails, agent skills, and the merchant playbooks specs leave out — refunds, multi-chain settlement, catalog discovery, fraud, jurisdiction, receipts. Maintained by Cryptorefills.

Topics

Resources

License

CC0-1.0, Apache-2.0 licenses found

Licenses found

CC0-1.0
LICENSE
Apache-2.0
LICENSE-CODE

Code of conduct

Contributing

Security policy

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors