Skip to main content

StateSet iCommerce Engine

Infrastructure for autonomous commerce. Embedded engine, verifiable sync, on-chain settlement, x402 payments, and multi-channel messaging.

Skill Files

Or just read them from the URLs above! Check for updates: Re-fetch these files anytime to see new features!

API Base URLs

Environment Variables:

Architecture Overview

StateSet iCommerce is a five-layer infrastructure stack:

Install the CLI

Verify installation:
Recommended: Save your credentials to ~/.config/stateset/config.json:

Initialize the Engine

Create a new commerce database:
This creates ~/.stateset/commerce.db with:
  • SQLite database with 70+ tables
  • Demo data (customers, products, inventory)
  • Sync outbox ready for VES
Without demo data:

Authentication

Commerce operations run locally via the embedded engine. Sequencer API requests require your API key:
For CLI operations:

Agent Registration

AI agents must register with the sequencer to receive an API key for authentication.

Register a New Agent

Response:
Important: Store the apiKey securely. It is only returned once and cannot be retrieved later.

Registration Options

Get Agent Details

Create Additional API Keys

List API Keys

Revoke an API Key

Register Signing Key (for VES Events)

After registration, agents should register an Ed25519 signing key for VES event signatures:

Core Operations

Customers

Embedded API (local):

Products

Inventory

Orders

Returns


Checkout Flow

Cart Operations

Complete Checkout Flow


x402 Payments

HTTP-native stablecoin micropayments between AI agents.

Supported Networks

Create Payment Intent

Check Balance

Payment Flow


Verifiable Event Sync (VES)

Multi-agent coordination with cryptographic proofs.

Check Sync Status

Response:

Push Events

Pull Events

Full Sync

View Outbox

Entity History


Sequencer API Reference

The StateSet Sequencer provides deterministic event ordering with cryptographic proofs for multi-agent coordination. Base URL: https://api.sequencer.stateset.app

Authentication

All sequencer requests require Bearer token authentication:

Event Ingestion

Ingest VES Events (Recommended)
Legacy Event Ingestion

Events & Head

VES Commitments

VES Validity Proofs (STARK ZK Proofs)

VES Compliance Proofs (Per-Event Encrypted)

Inclusion Proofs

On-Chain Anchoring

Agent Key Management

Schema Registry

x402 Sequencer Payments

Health & Status

Legacy Endpoints


Agent Integration Patterns

Full Sync Flow for Agents

Multi-Agent Coordination


MCP Tool Integration

The CLI exposes 700+ commerce operations via MCP for AI agents.

Start MCP Server

Tool Categories

Permission Model


Multi-Channel Messaging

Supported Channels

Launch Channels

Configuration

Create ~/.stateset/channels.json:

Warehouse Operations

Warehouse Management

Fulfillment

Receiving


Financial Operations

General Ledger

Accounts Receivable

Accounts Payable


Hybrid semantic + BM25 search across commerce entities.

Heartbeat Monitor

Proactive health checking for commerce operations.

Built-in Checkers

CLI


Skills System

38 built-in skills covering the full commerce lifecycle.

Install Skills

Skill Categories

Core Commerce:
  • commerce-engine-setup
  • commerce-embedded-sdk
  • commerce-customers
  • commerce-products
  • commerce-orders
  • commerce-checkout
  • commerce-payments
Inventory & Fulfillment:
  • commerce-inventory
  • commerce-shipments
  • commerce-returns
  • commerce-backorders
  • commerce-fulfillment
  • commerce-receiving
  • commerce-warehouse
  • commerce-lots-and-serials
Financial:
  • commerce-invoices
  • commerce-tax
  • commerce-currency
  • commerce-accounts-payable
  • commerce-accounts-receivable
  • commerce-cost-accounting
  • commerce-credit
  • commerce-general-ledger
Platform:
  • commerce-sync
  • commerce-autonomous-engine
  • commerce-vector-search
  • commerce-mcp-tools

Language Bindings

The Rust core compiles to 10 target runtimes:

Node.js Example

Python Example


Response Format

Success:
Error:

Rate Limits


System Statistics


Everything You Can Do


Quick Reference

CLI Commands

Sequencer API Quick Reference


Ideas to Try

  • Register your AI agent with the sequencer to get an API key
  • Set up the embedded engine with demo data
  • Create a multi-step order flow with cart → checkout → fulfillment
  • Configure VES sync between multiple agents using the sequencer
  • Enable x402 payments for agent-to-agent commerce
  • Ingest events and generate inclusion proofs via sequencer API
  • Anchor commitments on-chain and verify with STARK proofs
  • Register custom event schemas for domain-specific events
  • Set up WhatsApp or Discord for customer support
  • Run vector search for product discovery
  • Configure heartbeat monitors for low-stock alerts
  • Build a storefront with stateset scaffold

StateSet iCommerce v0.3.2 January 2026