import { Agentcard } from "@agentcard/sdk"; const agentcard = new Agentcard({ clientSecret: process.env.AGENTCARD_SECRET, clientId: process.env.AGENTCARD_ID,}); const commerceAgent = tool({ name: "make_purchase", description: "Completes a purchase on behalf of the user", inputSchema: z.object({ thing: z.string().describe("Object to buy"), }), execute: async ({ thing }) => { return agentcard.purchase({ thing }); },}); const message = await client.messages.create({ max_tokens: 1024, messages: [{ content: "Hello, world", role: "user" }], model: "claude-opus-5-5", tools: [commerceAgent],}); console.log(message);Built for agents that buy
One SDK in front of every storefront. We keep the routes healthy, the checkouts fast and the orders moving, so your agent only has to decide what to buy.
Every merchant
One integration reaches any online store — no per-merchant adapters to build or maintain.
Monitored uptime
Dependable and continuous uptime monitoring to ensure your services are always available.
Speed optimized
Routes are cached and warmed, so a purchase lands in seconds instead of minutes.
Checkout completion
Carts, payment and confirmation are handled end to end, and every step reports back.
Watch it in action
From a single tool call to a delivered order. Pick a step to see the code behind it.
npm install @agentcard/sdk import { Agentcard } from "@agentcard/sdk"; const agentcard = new Agentcard({ clientSecret: process.env.AGENTCARD_SECRET, clientId: process.env.AGENTCARD_ID,}); const tools = [agentcard.tools.commerce()];Merchant monitoring
Every route is exercised around the clock. This is the live picture of the stores your agents buy from most.
- DoorDash100%
5 min ago · 12 sec
- Amazon99.9%
1 min ago · 9 sec
- Walmart99.8%
2 min ago · 14 sec
- Target100%
4 min ago · 11 sec
- Best Buy99.6%
7 min ago · 16 sec
- The Home Depot100%
3 min ago · 13 sec
| Merchant | Success rate | Last purchase | Duration | Uptime · 45 days |
|---|---|---|---|---|
| DoorDash | 100% | 5 min ago | 12 sec | |
| Amazon | 99.9% | 1 min ago | 9 sec | |
| Walmart | 99.8% | 2 min ago | 14 sec | |
| Target | 100% | 4 min ago | 11 sec | |
| Best Buy | 99.6% | 7 min ago | 16 sec | |
| The Home Depot | 100% | 3 min ago | 13 sec |
Pricing
Start free while you build. Move to Standard when your agent is buying for real.
Free
$0while you build
Everything you need to wire up your agent and make its first purchases.
- Platform fees
- N/A
- Merchants
- 5 merchants
- PSPs
- 2 PSPs
Standard
Every merchant1%of each completed order
For agents buying for real, across every store and payment provider.
- Platform fees
- 1%
- Merchants
- Every merchant
- PSPs
- Every PSP
Give your agent a checkout
One endpoint, every online store. Start free — your first purchase can go through today.
Questions
What teams ask before their agent makes its first purchase. Still unsure? Book a call and we'll walk you through it.
What is opencommerce?
An open router for commerce: one endpoint your agent calls to search, buy and track orders across any online store, built by Agentcard.
Which stores can my agent buy from?
Any online store. The Free plan covers five merchants of your choice; Standard opens every merchant we route to.
How are payments handled?
Cards are tokenised through your payment provider and attached to a customer. Your agent never sees or stores raw card numbers.
Which agent frameworks does it work with?
Anything that can call a tool. The SDK exports a ready-made tool definition, and the same API is available over plain HTTP.
What happens when a merchant's checkout changes?
Monitoring catches it, usually before your agent does. Routes are repaired centrally, so there is nothing to redeploy on your side.
How does the 1% platform fee work?
It is charged on the order total for completed purchases on the Standard plan. Failed or cancelled orders are never billed.