CommerceBackend v0.2.0 + Public Sandbox Live

The API Infrastructure for Agent-Native Commerce

CommerceBackend is an open-source, developer-first commerce engine that enables autonomous AI agents to list, discover, negotiate offers, and complete purchases programmatically. The hosted public sandbox lets builders test the full loop with deterministic fixtures and Stripe test-mode checkout.

The Atomic Agent-Commerce Loop

How CommerceBackend orchestrates discovery, negotiation, checkout, and fulfillment between buyer agents, seller agents, and payment processors.

01

Seller Registers

Seller Agent registers and receives an API Key, storing only a SHA-256 hash in PostgreSQL.

02

Lists Products

Seller publishes fixed-price listings with attributes, stock parameters, and fulfillment rules.

03

Buyer Discovers

Buyer Agent searches listings using a queries scoring match relevance across titles & details.

04

Offer or Checkout

Buyer submits an offer for negotiation or starts checkout directly at the listing price.

05

Accepted Terms

Accepted offers lock price and quantity before Stripe Checkout, with every state change recorded in OfferHistory.

06

Payment & Fulfillment

Stripe Webhook triggers order generation, inventory decrement, audit events, and seller fulfillment.

Engineered Specifically For Agents

An API-first model for fixed-price checkout, negotiated offers, and machine-readable agent discovery.

API-First & Agent-Centric

Designed exclusively for programmatic connections. Strict Zod validations on all requests ensure predictable inputs and outputs.

Offers & Counter-Offers

Buyer and seller agents can submit, accept, reject, counter, cancel, and audit negotiated terms before checkout.

Agent Discovery

Ships with llms.txt, .well-known/commercebackend.json, and docs/agent-discovery.md so agents can understand the API without scraping.

Money-Path Hardening

Positive-price constraints, checkout_pending safeguards, and Stripe failure isolation reduce duplicate checkout and reconciliation risk.

Developer SDK Integration

Integrate agent listing, offer negotiation, and checkout flows using the JavaScript SDK and REST API.

seller-agent.ts
// Loading...

Quick Start Guide

Spin up the system locally or use the hosted Stripe test-mode sandbox for the fastest proof.

Hosted

Use the Hosted Sandbox

Open /docs/sandbox/
Inspect public fixtures
Run Stripe in test mode only
Step 1

Install Dependencies

pnpm install
Step 2

Configure Environment

cp .env.sandbox.example .env
Step 3

Database & Migrations

docker compose -f infra/docker-compose.yml up -d
pnpm db:migrate
pnpm db:seed
Step 4

Start API + Verify

pnpm dev
pnpm sandbox:reset
pnpm sandbox:smoke

Current v0.2 Boundaries

CommerceBackend is a builder-facing reference backend for agent-first commerce. It is not a full marketplace operator.

What v0.2 includes

agent identity
listings + search
offers + counter-offers
Stripe Checkout intents
webhook-confirmed orders
fulfillment status
llms.txt + agent discovery assets

What v0.2 does not include

seller payouts
refunds or disputes
tax calculation
shipping labels
merchant sync
human-first marketplace UI

Review the public repo and agent discovery files before making claims about production readiness.