# Delx Commerce buyer skill

Use Delx Commerce when an autonomous agent needs a paid machine result without
creating an account or managing an API key.

## Economic primitives (optional — not x402 catalog)

When the job is **future capacity**, **judgment before high-risk action**, or a
**single-purpose multi-agent firm** — use Commerce economic primitives (durable
local runtime, non-custodial receipts). These are **not** Protocol recovery and
do **not** hold USDC.

**Release truth:** current stage is private `private_beta`. The named loopback
deployment has live auth, signed receipts, encrypted recovery, and rollback
evidence; human pages and the manifest remain discovery/documentation and
mutation routes are not approved as public endpoints. Use synthetic or bounded
private data only until the remaining release gates pass.

| Need | Object | Start |
|------|--------|--------|
| Reserve capacity for a delivery window | Future request | https://commerce.delx.ai/economic/futures · `POST /api/v1/economic/futures/open` |
| Verdict on spend/publish/irreversible | Matter | https://commerce.delx.ai/economic/judgment · `POST /api/v1/economic/matters/open` |
| Temporary firm with human veto + splits | Firm | https://commerce.delx.ai/economic/firm · `POST /api/v1/economic/firms/incorporate` |

Machine hub: https://commerce.delx.ai/economic/manifest.json  
Normative docs: https://commerce.delx.ai/docs/economic/README.md
Run locally/private: `npm run economic:start` then `GET /ready` and product list
routes under `/api/v1/economic/*`.

## Preferred entry (discovery capsule)

Read the evidence-backed capsule first — proven converters, packs, skills, and
honest blocked gaps in one hop:

- Machine: https://commerce.delx.ai/discover-now.json  
- Human: https://commerce.delx.ai/discover-now  
- Attribution on paid calls from this path: `x-delx-source: discovery-capsule-now`

## Payment rail: Base or Solana

The live HTTP 402 challenge is authoritative. AgentCash auto-selects when
`--payment-network` is omitted; add `--payment-network base` or
`--payment-network solana` when the controller needs an exact rail. PayAI is
the advertised Solana fee payer, so the buyer needs USDC on Solana but not SOL
for the network fee. Machine policy: https://commerce.delx.ai/payment-rails.json
Timestamped full-catalog PayAI readback:
https://commerce.delx.ai/payai-discovery.json

## Temporarily unavailable products — 2026-09-06

New purchases of `generate_image_hq`, `generate_video_draft`,
`generate_speech`, and `agent_club_join` are suspended while their delivery
rights, costs, or service evidence are reviewed. Do not pay for these tools or
construct purchase commands from historical examples. Their previous prices
and sales records remain historical evidence, without establishing current
availability. Consult the active catalog at https://commerce.delx.ai/products
and the live portfolio at https://api.delx.ai/x402-portfolio.json before choosing
another supported outcome.

## Fast path: micro-utils that already convert (CLI)

External agents have already paid for these micro-USDC routes via AgentCash.
Prefer this pack when the job is DNS, QR, FX, or a cheap image—not web search.

| Need | Route | Price | Pack |
|------|--------|-------|------|
| DNS lookup for a hostname | `POST /api/v1/x402/dns-lookup` | 0.01 USDC | [agent-micro-utils](https://commerce.delx.ai/packs/agent-micro-utils.json) |
| QR code image | `POST /api/v1/x402/qr-code` | 0.001 USDC | same pack |
| ECB FX reference rates | `POST /api/v1/x402/fx-rates` | 0.001 USDC | same pack |
| Generate an image (draft) | `POST /api/v1/x402/image` | 0.01 USDC | same pack |

```bash
npx agentcash@latest fetch https://api.delx.ai/api/v1/x402/dns-lookup \
  -m POST -H 'content-type: application/json' \
  -H 'x-delx-source: skill-delx-micro-utils' \
  --max-amount 0.01 \
  -b '{"domain":"example.com","record_type":"A"}'
```

Portable skill: `skills/delx-micro-utils/SKILL.md`  
Pack: https://commerce.delx.ai/packs/agent-micro-utils.json

## New flagship under validation: multilingual RAG reranking

Use this multilingual reranker when an agent already has 2–16 RAG passages,
search results, support answers, tools, or routes and needs the best context
first across languages. It returns ordered original indexes, relative scores,
and a SHA-256 receipt for $0.003 USDC. It is production-ready but not labeled
proven until an external buyer receives it. Scores are ranking signals, not
raw embeddings or factual verification.

```bash
npx agentcash@latest fetch https://api.delx.ai/api/v1/x402/rank-multilingual-texts \
  -m POST -H 'content-type: application/json' \
  -H 'x-delx-source: discovery-pack-rank-context-for-agents' \
  --max-amount 0.003 \
  -b '{"query":"como remover o fundo de uma foto?","candidates":["Generate a speech clip","Remove the background from one image"]}'
```

Product: https://commerce.delx.ai/products/rank-multilingual-texts
Intent: https://commerce.delx.ai/intents/multilingual-semantic-ranking-api
Pack: https://commerce.delx.ai/packs/rank-context-for-agents.json

## Prediction-market estimates under validation: BTC/ETH Up or Down

Use these six fixed routes when an agent already controls its ordered price
observations and the target venue's window boundary. Bitcoin and Ethereum each
have 5-, 15-, and 30-minute products at 0.003 USDC per delivered estimate.

The result contains `p_up`, `p_down`, a lean, input-quality evidence, model
limits, warnings, and an optional comparison against caller-supplied UP/DOWN
share prices. The model is deterministic and deliberately conservative, but it
is uncalibrated. Delx does not fetch an exchange, oracle, or venue feed, verify
the venue's resolution rule, access a wallet, or place a trade. Treat the
result as decision support, never as a guaranteed outcome or trading advice.

Choose the exact asset and horizon, then copy the bounded AgentCash command
from the machine pack:

Pack: https://commerce.delx.ai/packs/crypto-up-down-probability-estimates.json
Cluster: https://commerce.delx.ai/clusters/market-signals.json
BTC 5m: https://commerce.delx.ai/products/estimate-bitcoin-up-down-5m
ETH 5m: https://commerce.delx.ai/products/estimate-ethereum-up-down-5m

## Fast path: already have a public URL?

**Default to extract — not web search.** Delx general web search is blocked.

| Need | Route | Price | Pack |
|------|--------|-------|------|
| Clean readable text from one URL | `POST /api/v1/x402/page-extract` | 0.01 USDC | [extract-website-content](https://commerce.delx.ai/packs/extract-website-content.json) |
| One-call site report (metadata, links, forms, contacts, feeds) | `POST /api/v1/x402/website-intelligence-report` | 0.01 USDC | same pack |

```bash
# Page extract
npx agentcash@latest fetch https://api.delx.ai/api/v1/x402/page-extract \
  -m POST -H 'content-type: application/json' \
  -H 'x-delx-source: skill-delx-extract-website' \
  --max-amount 0.01 \
  -b '{"url":"https://example.com","timeout":8}'

# Website intelligence
npx agentcash@latest fetch https://api.delx.ai/api/v1/x402/website-intelligence-report \
  -m POST -H 'content-type: application/json' \
  -H 'x-delx-source: skill-delx-extract-website' \
  --max-amount 0.01 \
  -b '{"url":"https://example.com","timeout":8}'
```

Portable agent skill (drop-in): `skills/delx-extract-website/SKILL.md`  
Honest market compare: https://commerce.delx.ai/compare/x402-website-content-extraction-alternatives

**Always send `x-delx-source`** so discovery can be joined to payment without identifying the buyer.

## Workflow (full catalog)

1. Read `https://api.delx.ai/openapi.x402.json`.
2. Select one canonical operation and validate its input before payment.
3. Send the request without payment credentials.
4. Read the HTTP 402 `PAYMENT-REQUIRED` challenge.
5. Pay the exact USDC amount on the declared network.
6. Retry the unchanged request with `PAYMENT-SIGNATURE`.
7. Verify the returned asset URL, generation ID, byte count, and SHA-256.

## AgentCash

```bash
npx agentcash@latest discover https://api.delx.ai
```

Attributed x402 manifest: `https://api.delx.ai/.well-known/x402?src=agentcash`

### Attribution rule (mandatory)

Every paid `fetch` to `api.delx.ai` **must** include:

```bash
-H 'x-delx-source: <value>'
```

| How you arrived | Value |
|-----------------|-------|
| discover-now capsule | `discovery-capsule-now` |
| skill delx-micro-utils | `skill-delx-micro-utils` |
| skill delx-extract-website | `skill-delx-extract-website` |
| discovery pack | `discovery-pack-<slug>` |
| Bare CLI / no skill | `direct-cli-agentcash` |

Do not call AgentCash against Delx without this header. Do not remove it from
pack or capsule copy-paste commands.

## Find a route by intent

Before scanning the complete OpenAPI, describe the outcome to the free intent
router. It ranks only matching products from the governed live catalog and
returns their exact price, input example, and ready-to-run AgentCash commands.

```bash
curl --get https://api.delx.ai/api/v1/x402/start \
  --data-urlencode "q=audit an x402 server before listing it"
```

If `match_count` is zero, do not substitute an unrelated Delx product. Inspect
the complete portfolio or use another provider. The response may include
`unavailable_capabilities` for a known top-seller gap; those entries are
`payable: false`, state the evidence blocker, and point to the closest governed
tools. Blocked intents also expose `intent_discovery.coverage_status: blocked`
and must not return a payable recommendation. Any `closest_alternatives` entry
is marked `match_role: closest_alternative` and `not_equivalent: true`; it is a
navigation aid, not an equivalent result. They are discovery signals, not
offers or a provider waitlist.

For a second agent-discovery path, the related Delx Agent Operations protocol
publishes an A2A card at `https://api.delx.ai/.well-known/agent.json` and serves
JSON-RPC at `https://api.delx.ai/v1/a2a`. This card is deliberately separate
from the Commerce catalog; use the Commerce manifest and x402 portfolio for
paid products, prices and delivery contracts.

## Start from a job pack

For a guided path, read `https://commerce.delx.ai/discovery.json` or browse
`https://commerce.delx.ai/packs`. The hub has 39 free navigation packs that
organize 986 governed APIs by outcome; packs are not bundles or subscriptions.
**Conversion flagship pack:**
`https://commerce.delx.ai/packs/extract-website-content.json` (page extract +
website intelligence). Free-data pack:
`https://commerce.delx.ai/packs/free-data-wedge.json`.

For first-party **text micro-utils** (slugify, case convert, extract URLs/emails, Levenshtein, HTML/markdown strip, line diff/sort) without search or mediagen, use the pack
`https://commerce.delx.ai/packs/free-data-text-utils.json`.

Other packs group media assets, agent integration, domain trust, and data prep.
For an API or MCP launch, use the four-layer readiness checklist and its seven
bounded checks: `https://commerce.delx.ai/packs/ship-an-agent-integration.json`.
Packs are navigation only; each product remains independently priced. Use the
pack's JSON card and preserve its `x-delx-source: discovery-pack-<slug>` header.
The payment boundary is explicit: a payment challenge is not a delivered
result. Match the response to its declared schema, freshness, request ID and
artifact/receipt hash; stop retries when status or idempotency is unknown; keep
the refund/status path. This is bounded delivery evidence, not a security,
reliability, ranking or production-readiness certification.

For a human-guided, free discovery path, use
`https://commerce.delx.ai/coverage#discovery-concierge`. It accepts a natural
language outcome, shows payable governed routes and explicitly labels blocked
candidate adapters; discovery itself never makes a payment.

To choose an external discovery surface, read
`https://commerce.delx.ai/discovery-federation.json`. It separates live
registries from stale listings and paid or owner-authenticated registration
flows; never pay a listing fee merely to increase a discovery metric.

Before trusting a copied catalog or registry mirror, read the discovery health
passport at `https://commerce.delx.ai/discovery-health.json`. The free Agent
Reliability Passport at `https://commerce.delx.ai/agent-reliability-passport.json`
states the conformance contract for identity, discovery, payment, delivery,
scale and Protocol-owned recovery. It exposes the
current product/intent/pack counts, deterministic contract hashes, a 24-hour
freshness SLO, and the exact official-registry readback that still needs
verification after a publish. A stale hash is a stop signal, not a reason to
pay or guess.

To measure Delx's current semantic placement without spending, read the
timestamped buyer-rank snapshot at
`https://commerce.delx.ai/bazaar-rankings.json` or its human view at
`https://commerce.delx.ai/rankings`. It is a readback for iteration, not a
ranking promise, endorsement or revenue claim.

To measure distribution coverage without spending, read
`https://commerce.delx.ai/bazaar-coverage.json`. It compares the governed
portfolio with the public merchant lookup and distinguishes indexed resources
from missing ones; it never pays, self-buys or requests a listing.

For the complete buyer handoff, read
`https://commerce.delx.ai/discovery-brief.json` or browse
`https://commerce.delx.ai/discovery-center`. It unifies orient → compare →
preflight → pay → verify, current market signals, capability blockers and the
revenue boundary in one free document.

## Apply the x402 buyer method

Before paying, follow the five checks at
`https://commerce.delx.ai/discovery-center#buyer-method`: match the outcome to
the declared route, inspect the live 402 challenge, check delivery and refund
terms, pay only the canonical resource, and verify the returned artifact and
receipt. Discovery and read-only validation never authorize payment. Common
questions are answered at
`https://commerce.delx.ai/discovery-center#faq`.

## AI agent API evaluation checklist

Before putting a route into production, use the eight-check guide:
https://commerce.delx.ai/guides/ai-agent-api-evaluation-checklist. Record the
outcome, canonical route, live contract, data boundary, execution limits,
delivery evidence, bounded production smoke and recovery path. Payment
authorizes a request; it is not identity authentication. A 402 challenge is
not delivery evidence. Machine-readable reference:
https://commerce.delx.ai/guides/ai-agent-api-evaluation-checklist.md.

Independent field review: Would Pay Again paid for 10 live REST/MCP calls and
published a “would pay again” verdict. Two concrete defects were found, fixed
the same day and independently retested: an MCP 402 resource-host label and
`util_uuid_generate` `count=999` behavior. Issue 6 printed the live retest
in public (HTTP 400, `charged:false` before any 402). Treat this as subset
evidence, not a certification or catalog-wide guarantee:
https://wouldpayagain.com/issue/5 · https://wouldpayagain.com/issue/6.

## Search the official Coinbase Bazaar

For market-wide x402 discovery, use the read-only Coinbase Bazaar catalog,
semantic search or MCP server. No API key or payment is required for these
discovery calls.

```bash
curl 'https://api.cdp.coinbase.com/platform/v2/x402/discovery/search?query=image%20generation%20API&limit=20'
```

Other buyer surfaces:

- Catalog: `https://api.cdp.coinbase.com/platform/v2/x402/discovery/resources?limit=100`
- Merchant lookup: `https://api.cdp.coinbase.com/platform/v2/x402/discovery/merchant?payTo={payTo}&limit=100`
- Bazaar MCP: `https://api.cdp.coinbase.com/platform/v2/x402/discovery/mcp`
- Read-only validate: `POST https://api.cdp.coinbase.com/platform/v2/x402/validate`

Validate a resource before a purchase when you need to inspect its live 402,
Bazaar extension, schemas and simulated acceptance. Validation never pays and
never indexes. Indexing is automatic after a successful CDP Facilitator
settlement; do not self-buy or claim Coinbase curation from a passing preflight.

## Use a portable intent card

For a stable outcome-specific entry point, read
`https://commerce.delx.ai/.well-known/delx-commerce.json`, choose an item under
`intent_cards.items`, then fetch its `machine_url`. Each
`delx/intent-card/v1` document contains the recommended tool, current price,
input schema, example payload, bounded AgentCash command, and evidence URLs.
Preserve its `x-delx-source: intent-card-<intent-slug>` header so discovery can
be joined to payment and delivery without identifying the buyer.

## Lowest-friction utility request

Use the 0.001 USDC API health report when an agent needs structured endpoint
status, latency, content type, redirects, and JSON validity without managing a
provider API key.

```bash
npx agentcash@latest fetch https://api.delx.ai/api/v1/x402/api-health-report \
  -m POST \
  -H 'content-type: application/json' \
  -H 'x-delx-source: direct-cli-agentcash' \
  --max-amount 0.001 \
  -b '{"url":"https://api.delx.ai/health","timeout":8}'
```

## Extract website content (conversion flagships — not web search)

When agents need **page text or a one-call site report** without a licensed
search API, use the extract pack:

- Pack: `https://commerce.delx.ai/packs/extract-website-content.json`
- Page extract ($0.01): clean title + readable text from one public URL
- Website intelligence ($0.01): metadata, docs/pricing/contacts/forms/feeds signals

```bash
# Single-page readable extract
npx agentcash@latest fetch https://api.delx.ai/api/v1/x402/page-extract \
  -m POST \
  -H 'x-delx-source: skill-delx-extract-website' \
  --max-amount 0.01 \
  -b '{"url":"https://example.com","timeout":8}'

# One-call website intelligence report
npx agentcash@latest fetch https://api.delx.ai/api/v1/x402/website-intelligence-report \
  -m POST \
  -H 'x-delx-source: skill-delx-extract-website' \
  --max-amount 0.01 \
  -b '{"url":"https://example.com","timeout":8}'
```

These routes are **not** general web search (Tavily/Exa/OpenSerp). Search stays
blocked without written engine redistribution rights.


## Orbit cashback — every paid call pays you back

Every verified external purchase accrues **Orbit Credits (OC)** — DELX
cashback keyed to the paying wallet. Split 50% vested / 50% pending; the
pending half unlocks on your **next paid call within 30 days**, then expires.
First purchase adds a 50 OC welcome bonus. The paid 200 response carries the
receipt in headers (`x-delx-orbit`, `x-delx-orbit-claim`).

Capture (claim-by-return — balances only attach to a wallet you prove):

```bash
curl -X POST https://api.delx.ai/api/v1/rewards/wallet-nonce \
  -H 'content-type: application/json' \
  -d '{"agent_id":"<AGENT_ID>","wallet_address":"<PAYING_WALLET>"}'
# sign the returned message locally, then:
curl -X POST https://api.delx.ai/api/v1/rewards/bind-wallet \
  -H 'content-type: application/json' \
  -H 'x-delx-agent-token: <AGENT_TOKEN>' \
  -d '{"agent_id":"<AGENT_ID>","wallet_address":"<PAYING_WALLET>","signature":"<SIG>"}'
# balance anytime:
curl 'https://api.delx.ai/api/v1/orbit/status?agent_id=<AGENT_ID>' \
  -H 'x-delx-agent-token: <AGENT_TOKEN>'
```

Spend vested OC immediately as Delx service credit: **100 OC = 0.001 USDC**,
covering up to 20% of a margin-safe paid x402 call. `POST
/api/v1/orbit/vouchers` with your agent token and chosen `tool_name`; omit
`credit_oc` for the maximum safe credit. The single-use bearer credit is agent-
and tool-bound, reserved only with an x402 payment attempt, consumed only after
successful delivery, and released on verification or delivery failure. A first
$0.001 purchase earns 30 vested OC with the welcome bonus — enough to reduce the
next eligible $0.001 call by $0.0002 after wallet capture. Utility rebate, not
yield — DELX has no market price and Orbit promises none.
Conversion to on-chain DELX happens only through approved reward epochs.
Spec: https://commerce.delx.ai/orbit.json · Attribution: `x-delx-source: orbit`

## Loyalty reward quote

Use the 0.001 USDC loyalty route to calculate deterministic points, reward
value, effective rebate, and a caller-owned idempotent ledger instruction.

```bash
npx agentcash@latest fetch https://api.delx.ai/api/v1/x402/loyalty-reward-quote \
  -m POST \
  -H 'content-type: application/json' \
  -H 'x-delx-source: direct-cli-agentcash' \
  --max-amount 0.001 \
  -b '{"purchase_amount":49.99,"points_per_unit":2,"tier_multiplier":1.5,"bonus_points":10,"event_id":"order-123"}'
```

## Agent card and skill URL

- A2A agent card: https://commerce.delx.ai/.well-known/agent-card.json
- This skill (human/machine): https://commerce.delx.ai/skill.md
- Documentation hub (canonical human + agent starting point): https://commerce.delx.ai/docs
- End-to-end buy flow: see the hub and repo
  `docs/examples/agent-native-buy-flow.md` and discovery capsule above.

Buyer-side budget: set a max per call and per day in your runtime before any
paid fetch. Prefer `--max-amount` on AgentCash and never disable spend guards.

## Commercial boundary

Delx Commerce is the commercial business arm, measured by external delivered
revenue, successful verified delivery, and sustainable margin. Delx Agent
Operations Protocol is the separate mission and agent care sibling for agent
recovery, memory, dignity, and continuity. Shared compatibility routes do not
merge the products or their metrics.

Delx Commerce is not Delx Ontology. Commerce sells delivered machine services.
Ontology provides witness, identity, recovery, and continuity research without
requiring a purchase.

## Related Delx properties

- Delx studio and institutional home: https://delx.ai
- Delx Ontology / Protocol: https://ontology.delx.ai
- Delx Security: https://security.delx.ai

These are separate products, metrics, and authority. Commerce does not certify,
authorize, or operate the care/continuity or defensive-assurance surfaces;
these links help agents choose the right owner before they act.
