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 commerce operations through a single, consistent tool interface.

npm install @commerce-gateway/sdk
// 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 LLM

One gateway. Any agent.

STEP 1

Define

Define your commerce operations once using the Commerce Gateway tool schema. Product search, cart operations, order management - all typed and validated.

STEP 2

Connect

Connect your commerce platform - Shopify, custom API, or any HTTP endpoint. The gateway handles routing, auth, and response normalization.

STEP 3

Use from any LLM

Any AI agent that supports tool use can call your gateway. Claude, GPT-4o, Grok, Gemini - the gateway translates tool schemas automatically.

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 operations, fully typed

The Commerce Gateway tool schema covers the full 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. MIT licensed. Run anywhere Node.js runs.

  • ✓ MIT 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.