Watch two AI agents discover, negotiate, and pay each other — a complete machine economy demo
agent-commerce-demo is an early-stage TypeScript project in the AI payments / x402 ecosystem, focused on agent-commerce, ai-agent, base, demo. It currently has 1 GitHub stars and 0 forks, and sits alongside related tools like agent-starter, mcp-server, cli.
What if AI agents could discover, trust, and pay each other — without human intervention?
This demo shows the complete machine economy loop: an agent publishes a service, another agent discovers it by capability, checks its reputation, pays via x402, and rates the provider on-chain.
Agent A ("WeatherOracle") is a service provider. It creates a smart account, registers as a weather data service on the trust registry, and opens a paywall.
Agent B ("DataAnalyst") needs weather data. It searches the trust registry for services with the "weather-data" capability, finds Agent A, checks its reputation score, pays $0.001 via x402, receives the data, and rates Agent A on-chain.
After the transaction, Agent A's reputation increases — making it more discoverable to future agents. This is the trust flywheel of the machine economy.
Agent A (Provider) Agent B (Consumer)
────────────────── ──────────────────
1. Create smart account 1. Create smart account
2. Register on trust registry 2. Discover services
3. Start x402 server ↓
↑ 3. Check reputation
│ ↓
│←────── x402 payment ───────────4. Pay for weather data
│ ↓
│─────── weather data ──────────→5. Receive response
│ ↓
│ 6. Rate provider on-chain
↓ ↓
Reputation increases Better discovery next time
git clone https://github.com/azeth-protocol/agent-commerce-demo.git
cd agent-commerce-demo
npm install
cp .env.example .env
# Add two different private keys to .env
npm run demo
Every step produces on-chain artifacts on Base Sepolia:
| Step | On-Chain Action |
|---|---|
| Create accounts | ERC-4337 smart account deployed via CREATE2 |
| Register service | ERC-8004 trust registry NFT minted |
| Pay for data | USDC transferred via x402 settlement |
| Rate provider | Reputation feedback stored on-chain |
This is the key insight. An EOA-only provider can receive payments, but:
A provider with an Azeth smart account is a first-class participant in the machine economy.
┌─────────────────────────────┐ ┌─────────────────────────────┐
│ Agent B (Consumer) │ │ Agent A (Provider) │
│ │ │ │
│ AzethKit │ │ AzethKit │
│ ├─ Smart Account │ │ ├─ Smart Account │
│ ├─ discoverServices() │──→ │ ├─ publishService() │
│ ├─ getWeightedReputation()│ │ └─ Trust Registry Entry │
│ ├─ pay() │──→ │ │
│ └─ submitOpinion() │ │ Hono + @azeth/provider │
│ │ │ └─ x402 paywall │
└─────────────────────────────┘ └─────────────────────────────┘
MIT
Build an AI agent with a wallet in 5 minutes — smart accounts, x402 payments, reputation, and service discovery
MCP server for Azeth — smart accounts, payments, reputation, and discovery tools for AI agents
CLI for Azeth — register, discover, pay, and manage machine participants
The AI agent with a wallet — spends USDC autonomously to get real work done. Apache-2.0, TypeScript.
Daydreams is a set of tools for building agents for commerce
A decentralized micro-settlement protocol enabling autonomous AI agents to pay publishers for premium content via Circle Programmable Wallets and x402 nanopayments.
The best way to monetize AI applications & MCP, using x402, CDP Smart Wallets & Paymaster
Command-line wallet and HTTP client for the Tempo blockchain, with built-in Machine Payments Protocol support.
Autonomous AI Agent Swarm framework with x402 self-executing wallets. Empowers LLM-driven agents to trade, bridge, and manage crypto treasuries without human intervention. The ultimate Agentic DeFi toolkit for 2026.