Part of Better Data's open operational infrastructure. Use standalone or with Commerce Chain Optimization.

See Commerce Chain Optimization →
Commerce Gateway

Every LLM. Every commerce platform. One tool schema.

Commerce Gateway is an open protocol and self-hostable server that lets any AI agent — Claude, GPT-4o, Grok, Gemini — call typed commerce tools and data through one consistent tool interface. Pair it with Commerce Registry for discovery; both are first-class in the Better Data workspace (self-host and OSS paths use the same protocol).

Commerce Gateway is the operational connectivity layer for Better Data's hosted platform and self-hosted commerce chain deployments.

npm install @commerce-gateway/sdk @anthropic-ai/sdk
import { AnthropicAdapter } from "@commerce-gateway/sdk/adapters";

const adapter = new AnthropicAdapter({
  apiKey: process.env.ANTHROPIC_API_KEY!,
  tools: ["search_products", "get_product_details"],
});

const result = await adapter.handleRequest({
  model: "claude-sonnet-4-6",
  messages: [{ role: "user", content: "Find running shoes under $100" }],
});

// Same AnthropicAdapter + handleRequest pattern as the quick start

Developer path

Commerce Registry (discovery) is a native platform capability — configure it in Better Data alongside the gateway; docs here describe the open protocol for self-hosted and OSS deployments.

STEP 1

Run the gateway

Self-host or use Better Data hosted — same protocol, one unified system. Configure connectors and auth in your workspace; external MCP endpoints come after setup.

STEP 2

Connect tools

Wire Shopify, custom APIs, or any HTTP backend. The gateway normalizes tool schemas so Claude, GPT-4o, Grok, and Gemini all speak one interface.

STEP 3

Build on the demo experience

The Commerce Demo is a developer accelerator — a reference app, not a separate product. Use it to validate flows before you ship your own UI.

STEP 4

Add governance

Layer Loop Engine on actions executed through the gateway for approvals, guards, and audit — governance as a control layer, not a standalone bot.

Works with

Gateway is one layer in a connected stack

Self-host the gateway, use Better Data hosted, or both — registry and setup stay inside a unified platform experience. External endpoints (MCP URLs, connectors) come after you configure the workspace.

Commerce Registry

Discovery & identity

Publish and resolve gateways inside the same Better Data system — native capability, not a separate signup elsewhere. Protocol docs cover self-hosted and OSS topologies.

How registry fits →

Loop Engine

Governance & control

Policy, guards, and audit on actions that flow through the gateway. Loop Engine is the control layer — not a parallel automation product.

Loop Engine →

Commerce Demo

Developer accelerator

A reference experience that shows gateway + tools end-to-end. It illustrates integration patterns — not a second control plane or operator surface.

Try the demo →

Developer path: (1) run the gateway → (2) connect tools → (3) build on the demo experience → (4) add governance with Loop Engine.

Works with every major AI platform

Adapters handle tool schema translation automatically.

Claude (Anthropic)

Live

tool_use format, streaming supported, multi-turn tool loops

Open docs →

OpenAI (GPT-4o, o-series)

Live

function_calling + parallel tool calls, JSON mode

Open docs →

Grok (xAI)

Live

OpenAI-compatible API, function calling

Open docs →

Gemini (Google)

Live

function_declarations format, Gemini 1.5+ Pro/Flash

Open docs →

Every LLM requires a different tool format

  • Claude tool format
  • OpenAI function calling
  • Grok tools API
  • Gemini function declarations
  • → Four different schemas. Four integrations. Four maintenance burdens.

@commerce-gateway/sdk

One schema. All LLMs. Auto-translated.

Commerce tooling, fully typed

The Commerce Gateway tool schema covers discovery, cart, checkout, orders, and returns across the commerce lifecycle.

Product Discovery

  • product.search
  • product.detail
  • product.availability
  • product.recommendations

Cart & Checkout

  • cart.create
  • cart.add
  • cart.remove
  • cart.checkout

Orders & Returns

  • order.status
  • order.history
  • order.cancel
  • returns.initiate
Full tool schema reference →

Run it yourself or let us run it

Self-Hosted

Full control. Apache-2.0 licensed. Run anywhere Node.js runs.

  • ✓ Apache-2.0 licensed
  • ✓ Docker image available
  • ✓ No usage limits
  • ✓ No phone home
Self-host docs →

Better Data Hosted

Production-ready. Multi-tenant. Built for scale.

  • ✓ Managed infrastructure
  • ✓ Brand portal for merchants
  • ✓ Usage analytics
  • ✓ SLA and support
View hosted plans →

Hosted by Better Data, the team behind Commerce Gateway.