STEP 1
Define
Define your commerce operations once using the Commerce Gateway tool schema. Product search, cart operations, order management - all typed and validated.
Commerce Gateway is an open protocol and self-hostable server that lets any AI agent - Claude, GPT-4o, Grok, Gemini - call commerce operations through a single, consistent tool interface.
// Claude calls the gateway like any other tool
const result = await anthropic.messages.create({
model: "claude-opus-4-6",
tools: await gateway.getTools(["product.search", "cart.add"]),
messages: [{ role: "user", content: "Find running shoes under $100" }]
});
// Gateway routes to your commerce platform
// Returns structured data back to the LLMSTEP 1
Define your commerce operations once using the Commerce Gateway tool schema. Product search, cart operations, order management - all typed and validated.
STEP 2
Connect your commerce platform - Shopify, custom API, or any HTTP endpoint. The gateway handles routing, auth, and response normalization.
STEP 3
Any AI agent that supports tool use can call your gateway. Claude, GPT-4o, Grok, Gemini - the gateway translates tool schemas automatically.
Adapters handle tool schema translation automatically.
tool_use format, streaming supported, multi-turn tool loops
Open docs →function_calling + parallel tool calls, JSON mode
Open docs →OpenAI-compatible API, function calling
Open docs →function_declarations format, Gemini 1.5+ Pro/Flash
Open docs →One schema. All LLMs. Auto-translated.
The Commerce Gateway tool schema covers the full commerce lifecycle.
Full control. MIT licensed. Run anywhere Node.js runs.
Production-ready. Multi-tenant. Built for scale.
Hosted by Better Data, the team behind Commerce Gateway.