Skip to content

feat(wave-dispatch): add WAVE Dispatch — paid AI routing skill#13

Open
yakimoto wants to merge 1 commit into
Merit-Systems:masterfrom
yakimoto:add-wave-dispatch-skill
Open

feat(wave-dispatch): add WAVE Dispatch — paid AI routing skill#13
yakimoto wants to merge 1 commit into
Merit-Systems:masterfrom
yakimoto:add-wave-dispatch-skill

Conversation

@yakimoto

@yakimoto yakimoto commented Jun 3, 2026

Copy link
Copy Markdown

What

Adds the wave-dispatch skill: WAVE Dispatch (https://dispatch.wave.online) is a paid AI inference router. Agents send a prompt → an edge classifier picks the cheapest capable model (edge-local free / local-LLM cheap / frontier priced) → response includes the answer + a signed `Payment-Receipt`.

`npx agentcash@latest discover https://dispatch.wave.online\` already finds us via OpenAPI; this skill makes the endpoints first-class in this bundle so users can install with `npx skills add Merit-Systems/agentcash-skills` and get WAVE Dispatch alongside the other 12 skills.

Scope

  • `skills/wave-dispatch/SKILL.md` — frontmatter (USE FOR / TRIGGERS / IMPORTANT), Quick Reference table with prices, examples for /classify, /, /payments, OpenAI-compat /v1/chat/completions, Anthropic-compat /v1/messages, identity (did:wave) overview.
  • `skills/wave-dispatch/rules/getting-started.md` — install, wallet setup, first call, Payment-Receipt verification, troubleshooting.

Pricing (from SKILL.md Quick Reference)

Task Endpoint Price
Route + execute (frontier) `POST /` $0.001 + model markup
Route + execute (cheap) `POST /?tier=plus` $0.0005 + model markup
Classify only `POST /classify` $0.0001
OpenAI-compat `POST /v1/chat/completions` $0.001 + model markup
Anthropic-compat `POST /v1/messages` $0.001 + model markup
Discovery (/payments, /openapi.json, /llms.txt, /v1/mpp/discovery) various GET FREE

Why agents want this

  • Cost-aware: classifier escalates only when needed; ~$0.0001 covers most simple prompts
  • No account, no API key: x402 challenge settles in USDC per call
  • Compatibility modes: drop-in for any OpenAI- or Anthropic-SDK consumer
  • Verifiable receipts: every settlement is JWS-signed against did:wave-platform (public key at /.well-known/did.json)
  • Open-core + auditable: source at github.com/wave-av/dispatch-edge, version-stamped via X-Dispatch-Version header

Identity + safety

  • Every Credential carries `source = did:pkh:eip155:8453:` (default) or `did:wave-agent:` (if registered)
  • T0-T4 tier authorization caps per-tx + per-session spend (T0=$0 floor, T4=$1k+ requires explicit per-tx confirmation)
  • OFAC sanctions screening on every settlement source address (KV cache → bundled SDN → Chainalysis fallback, fail-CLOSED)
  • Atomic replay-protection (DO-backed) per MPP IETF security model
  • Full STRIDE matrix: github.com/wave-av/wave-dispatch/blob/master/docs/threat-model.md

WAVE Dispatch (https://dispatch.wave.online) is a paid AI inference router:
agents send a prompt, an edge classifier picks the cheapest capable model
(edge-local free / local-LLM cheap / frontier priced), and the response
includes both the answer and a signed Payment-Receipt.

Adds skills/wave-dispatch/:
  - SKILL.md (frontmatter + Quick Reference + endpoint docs + payment flow)
  - rules/getting-started.md (install, wallet setup, first call,
    Payment-Receipt verification, troubleshooting)

The endpoints already discoverable via `npx agentcash@latest discover
https://dispatch.wave.online` (source: openapi). This skill makes them
first-class in the agentcash-skills bundle so they can be installed with
`npx skills add Merit-Systems/agentcash-skills`.

Pricing surfaced in the Quick Reference table — $0.0001 for /classify,
$0.001 + model markup for /, $0.0005 for the Dispatch+ cheap tier.

Compatibility modes documented: OpenAI-compat at /v1/chat/completions
and Anthropic-compat at /v1/messages — any agent already calling those
APIs can swap base URL to dispatch.wave.online and pay per call via x402.

Identity: every settlement carries a verifiable Credential.source
(did:pkh:eip155:8453:<addr> or did:wave-agent:<id>); receipts are JWS-
signed against the platform DID at /.well-known/did.json.

Source-of-truth links in SKILL.md point at:
  - https://dev.wave.online (docs)
  - https://dispatch.wave.online/openapi.json (live API spec)
  - https://github.com/wave-av/dispatch-edge (open-core mirror)
  - https://github.com/wave-av/wave-dispatch/blob/master/docs/threat-model.md
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant