claude-for-commerce-examples
Shopify example implementations for Anthropic commerce-agent patterns, including storefront and merchant agent workflows over Shopify APIs.
Key Takeaways#
- claude-for-commerce-examples is a Shopify developer resource for testing Anthropic commerce-agent patterns against Shopify storefront and merchant workflows.
- The canonical source is https://github.com/Shopify/claude-for-commerce-examples, which showed 106 GitHub stars, 13 forks, and a latest push date of 2026-09-02 at review time.
- Treat it as implementation guidance, not a finished SaaS product. You still need Shopify store access, API credentials, Claude access, testing, and human approval around merchant actions.
What this resource covers#
Shopify's repository implements Anthropic's commerce-agents blueprint in two practical examples. The storefront example runs a shopping assistant against a real Shopify store through UCP endpoints and optional Sign in with Shop. The merchant example runs an operator-facing agent over Shopify's Admin GraphQL API. That split is useful because consumer-facing shopping and merchant operations have very different trust, privacy, and approval requirements.
The storefront path shows how an agent can search a live catalog, answer policy questions, build a cart, and hand the buyer off to Shopify checkout. The repository notes that checkout, shipping, and payment happen on Shopify's own pages. That boundary matters. It lets builders prototype discovery and cart assistance without pretending the model should process payment or finalize orders.
The merchant path is more sensitive. It demonstrates how an agent can read products, orders, and inventory, propose changes, and apply approved changes through the Admin API. Builders should preserve that approval model. Merchant agents can touch business-critical records, so write actions need scopes, logs, previews, and rollback plans.
Why builders should care#
Commerce agents are easy to demo and hard to ship safely. A shopping assistant has to understand products, policies, variants, inventory, buyer context, checkout boundaries, and brand tone. A merchant assistant has to respect permissions, audit trails, data freshness, and human approval. This repository gives builders a concrete place to inspect those tradeoffs instead of starting from a blank chat widget.
The examples are especially useful for teams building custom storefront experiences on Shopify. They show how a catalog-aware agent can guide a buyer without replacing the whole storefront. They also show how to keep token handling server-side, avoid sending buyer tokens to the model or browser, and fall back to guest behavior when optional credentials are absent.
How to use this resource#
- Read the README and decide whether you are testing the storefront agent, merchant agent, or both.
- Create a local environment with the documented Python and Node versions.
- Add only the minimum environment variables needed for a demo store.
- Run the backend and frontend locally, then test the suggested shopping prompts.
- Inspect how catalog calls, cart writes, and checkout handoff are represented in code.
- Before using a real store, add logging, approval gates, and scope checks for every write action.
Evaluation checklist#
- Does your store expose the UCP endpoint required by the example?
- Have you separated buyer-facing actions from merchant operations?
- Are buyer tokens handled server-side and kept away from logs and model context?
- Are catalog, inventory, and policy answers grounded in store data?
- Do write actions require human confirmation before they change real merchant records?
- Is the assistant clear when it cannot complete checkout or take payment itself?
Adoption notes#
OpenTools classifies this as a resource because the durable asset is an example repository and implementation blueprint. It is not a hosted product. The value is in the reference architecture, environment layout, and source-backed examples that show how commerce agents can connect to Shopify safely. The best users are developers at Shopify merchants, agencies, and AI commerce startups who need practical code before designing their own agent flow.