Claude Commerce Agents for any merchant on any payment processor

A reference implementation of Anthropic's Claude Commerce Agents blueprint for merchants whose payments run through Stripe, Adyen, Worldpay, CyberSource or Clover, with Shopify's example running beside it unchanged.

What this is

On 2 September 2026 Anthropic published the Claude Commerce Agents blueprint (anthropics/commerce-agents): two assistants a merchant runs on its own site, one that helps customers find, compare and buy, and one that helps staff run the store. The blueprint ships the conversation loops, the safety gates, the skills and the presentation cards. It ships no payment step: a store implements a small set of backend functions, and the checkout is a link the server attaches to a card after the model has finished its turn.

Shopify published an example the same week (Shopify/claude-for-commerce-examples) in which that link opens Shopify's own checkout page. A merchant on any other stack has to supply the link, the tender figures, the orders and the payments reporting itself. This reference implementation supplies them for five processors and leaves the blueprint untouched.

It adds three things to the blueprint.

Who it is for

Merchants and their product teams can read the articles in docs/ without opening the code, run a store in simulated mode, and watch the payment step. Processors can see which of their APIs are called (each adapter's docstring lists the endpoint behind every method) and what was verified against their test environments. Platform teams can point one shopping agent at any merchant here and at a Shopify store, because the endpoints have the same shape.

Pick your platform

Platform Demo merchant First-party (the store's assistant) Third-party (a platform agent) Verified live Folder
Shopify the public demo store fakestore-ai.myshopify.com Shopify's example, unchanged: API on :8004, web app on :3005 scripts/platform_agent.py over the store's own UCP endpoint 8 September 2026: discovery, the storefront MCP, the UCP shopping service, a checkout staged with a continue_url platforms/shopify/README.md
Stripe Lumen Home (home retail) store :3016, portal :3116, API :8016; all four checkout models UCP and ACP served by the merchant; ACP answers a Stripe checkout_url 6 September 2026, test mode: hosted and embedded sessions, PaymentIntent, Payment Links, a chat turn that staged a session, the return leg, Claude Code over MCP platforms/stripe/README.md
Adyen Aurora Escapes (travel) the blueprint's travel apps on :3017 and :3117; API :8017 UCP and ACP served by the merchant 7 September 2026, test merchant account: hosted session, payment link, embedded session, /payments with a test card, a chat turn that staged a hosted page platforms/adyen/README.md
Worldpay (Access Worldpay) Beacon Wireless (telecom) the blueprint's telecom apps on :3018 and :3118; API :8018 UCP and ACP served by the merchant not run in this repository; simulated mode only platforms/worldpay/README.md
CyberSource Encore Seats (ticketing) the blueprint's ticketing apps on :3019 and :3119; API :8019 UCP and ACP served by the merchant not run in this repository; simulated mode only platforms/cybersource/README.md
Clover Northstar Outfitters (outdoor retail on a Clover-shaped inventory) store :3010, portal :3110, API :8010 UCP and ACP served by the merchant not run in this repository; simulated mode only platforms/clover/README.md

Every folder has the same shape: README.md, .env.example, first-party/run.sh, third-party/run.sh and test.sh. Without the processor's variables in platforms/<platform>/.env, the folder runs on the simulated gateway and GET /api/brand reports gateway_mode: simulated.

Five minutes to a running store

Python 3.12, Node.js with npm, and git are required. The setup script clones the two vendored repositories at pinned commits, creates .venv, installs the web apps, derives the fixtures and assembles the skills.

git clone https://github.com/ajnarasi/commerce-agents-reference.git
cd commerce-agents-reference
./setup.sh
platforms/stripe/first-party/run.sh

With no STRIPE_SECRET_KEY set, the script prints Stripe: simulated and starts the Lumen Home API on :8016, the storefront on :3016 and the portal on :3116. Open http://localhost:3016. The catalog, the cart, the hosted checkout page and the portal's payments panel work with no credentials. Chat turns need ANTHROPIC_API_KEY: copy platforms/stripe/.env.example to platforms/stripe/.env and put the key there (git ignores the file).

platforms/stripe/test.sh

That script runs the Stripe merchant's tests, boots the API, checks UCP discovery and the MCP handshake, and has a scripted platform agent stage a checkout, ending with ALL PASS (Stripe).

How the documentation is organized

Ten articles in docs/, to be read in order or picked by role.

Article Read it for
01 Commerce agents explained merchants and executives: what the two agents do, and why the payment step is where designs diverge
02 How it works engineers and product managers: the architecture from the blueprint's runtime to the processor adapters, with ports and tests
03 First-party use cases every scene the store's own assistant and the operations assistant handle, with what runs underneath
04 Third-party agents how ChatGPT, Gemini, Claude Code or your own agent shops at a merchant here over UCP and ACP
05 Payment processors one section per processor: endpoints, test credentials, what was verified live, what is not enabled by default
06 Shopify running Shopify's own example against a real store, and a platform agent shopping at a Shopify store
07 Any model the same loop on Claude, an OpenAI model, Gemini or a local endpoint
08 Skills and modules the skills each agent loads, and the 53 modules by how tightly they couple to a runtime
09 Security and trust what keeps the shopper and the merchant safe, and what a public endpoint needs
10 What is verified a dated ledger of what was run live, what is simulated, and how to reproduce each claim

docs/media/ holds a recording of Claude Code shopping at the Stripe merchant over its MCP endpoint, and docs/diagrams/ holds the twenty-two stepped diagrams the articles embed: on GitHub each appears as a static image followed by its steps, and the same articles can be read as a local site where every diagram plays step by step.

python scripts/build_docs_site.py
python -m http.server 5356 --bind 127.0.0.1 --directory docs/site

Then open http://127.0.0.1:5356/. The same site is published at https://ajnarasi.github.io/commerce-agents-reference/ by the docs workflow on every push that touches the articles.

What is verified and what is not

Stripe was run live on 6 September 2026 in test mode and Adyen on 7 September 2026 against a test merchant account, each through scripts/psp_smoke.py, a demo merchant's chat turn and the scripted platform agent. The Shopify public demo store was exercised on 8 September 2026. Claude Code shopped at the Stripe merchant over MCP on 6 and 7 September 2026. The Worldpay, CyberSource and Clover adapters are HTTP clients tested against documented shapes with a mock transport; they were not run live. The OpenAI and Gemini providers of the model-agnostic runtime are unit-tested and were not run live. Paying on the processor's own page from inside the demo storefront, end to end in a browser, was not run in this repository. The 69 tests run with no credentials in about ten seconds. The full ledger is docs/10-what-is-verified.md.

License and attribution

The code in this repository is licensed under Apache-2.0. setup.sh clones two Apache-2.0 repositories into vendor/ (ignored by git) at pinned commits and never edits them: anthropics/commerce-agents at fd4d59224ab96b43c6dc6888207c67b3bd5a24cf and Shopify/claude-for-commerce-examples at d68c7fa24f26ab138d8b4ccdd0488db140a6bfe6. web/storefront and web/portal are forks of the blueprint's retail web apps, and the demo merchants' fixtures derive from the blueprint's example data; NOTICE carries the details.