A decentralized identity registry enabling trusted commerce between shoppers, merchants, and AI agents. Register identities, delegate purchasing authority, and facilitate verified transactions including loans and leases.
Try the Interactive DemoThe registry connects three types of participants to enable agent-mediated commerce.
Registers their identity and financial profile (credit score, limits). Delegates purchasing authority to trusted AI agents with configurable scope, spending limits, and allowed transaction types.
Registers their business and the transaction types they support (loans, leases, direct purchases). Verifies agent tokens through the registry before fulfilling orders.
Registers as a purchasing agent. Receives delegated tokens from shoppers and uses them to negotiate and complete purchases with merchants on the shopper's behalf.
How identities, tokens, and transactions flow through the system.
Alice wants to lease a $2,000 couch from FurnitureCo. She delegates her AI agent ShopBot to handle the purchase on her behalf.
Alice registers with the commerce registry, providing her identity and financial profile (credit score: 750, credit limit: $10,000).
FurnitureCo registers as a merchant that accepts both loans and leases for furniture purchases.
ShopBot AI registers as a purchasing agent with capabilities for negotiation and purchase execution.
Alice delegates purchasing authority to ShopBot: up to $5,000, allowed for loans and leases. A cryptographic delegation token is generated and stored.
ShopBot finds a couch at FurnitureCo for $2,000 and initiates a 12-month lease. The registry verifies the token, checks delegation scope, confirms credit eligibility, and creates the transaction.
FurnitureCo independently verifies ShopBot's token against the registry, confirming Alice's identity and credit eligibility before approving the lease.
The lease agreement is finalized: $2,000 over 12 months at $166.67/month. All parties have a verified record in the registry.
Walk through the full scenario with live API calls. Watch the request lifecycle traced across Cloudflare services in real time.
Each session uses unique KV keys to guarantee cold reads on first run.
Built on Cloudflare Workers with KV for globally distributed identity storage.
| Key Pattern | Purpose |
|---|---|
| shopper:{id} | Identity + credit profile |
| merchant:{id} | Business + capabilities |
| agent:{id} | Agent identity |
| delegation:{a}:{s} | Delegation record |
| token:{hash} | Token fast-lookup |
| transaction:{id} | Transaction state |
| Endpoint | Purpose |
|---|---|
| POST /api/register/shopper | Register shopper |
| POST /api/register/merchant | Register merchant |
| POST /api/register/agent | Register agent |
| POST /api/delegate | Delegate authority |
| POST /api/verify | Verify token |
| POST /api/transaction/* | Manage transactions |
| Component | Technology |
|---|---|
| Runtime | Cloudflare Workers |
| Framework | Hono |
| Storage | Workers KV |
| Auth Tokens | Web Crypto API (SHA-256) |
| Config | Wrangler (jsonc) |
| Observability | Workers Observability |
| Feature | Description |
|---|---|
| Token Generation | SHA-256 hashed UUIDs |
| Scope Control | Per-delegation limits |
| Expiry | 24h token TTL (KV native) |
| Amount Limits | Configurable per delegation |
| Type Restrictions | loan, lease, purchase |
| Credit Check | Against shopper profile |