RulesV1),
and a chained receipt feed (ReceiptV1) — all settled through real
x402 HTTP payments in SPL stables (USDC, USDT, USDG) on
Solana, via any compatible facilitator. Drop it in front of any agent and it
can buy, get paid, and prove every transfer happened.
The three surfaces
| Surface | Lives at | What it’s for |
|---|---|---|
SDK — @leash/* | npm + this repo | TypeScript-first kits for buyers, sellers, agents, runner, schemas, and testing. |
| API — REST + OpenAPI | api.leash.market | Polyglot HTTP surface. Prepare/submit Solana txs, ingest receipts, monetise APIs. |
| Explorer — protocol UI | explorer.leash.market | Solscan-style search across agents, transactions, receipts, and events. Dual-network. |
Open-source SDK
- Packages —
@leash/schemas,@leash/core,@leash/registry-utils,@leash/seller-kit,@leash/buyer-kit,@leash/runner,@leash/testing - Apps —
web(playground),docs(this site),seller-demo,buyer-demo,merged-demo,agent-token-demo - Scripts —
fund-devnet,upload-registration,e2e-demo,gen-schema-docs
Where to start
- Quickstart — local stack in 5 minutes (Quickstart).
- API — drive the protocol from any language (Leash API).
- Monetise an API you already host — pay-per-call in two HTTP calls (Monetise an existing API).
- Build an agent end-to-end — the SDK walkthrough (Create an agent).
- Explorer — what
explorer.leash.marketshows and how to deeplink (Leash Explorer).
README.md for the 5-minute demo and environment variables.
For LLMs and coding agents
These docs are designed to be slurped wholesale into your model’s context.| Resource | What it gives you |
|---|---|
/llms.txt | A curated, sidebar-grouped index. Every entry links to the Markdown rendering of the page. Auto-discovered via the Link: rel="llms-txt" HTTP header. |
/llms-full.txt | The entire site concatenated into one Markdown file. Drop into a system prompt and you have the whole manual. |
/<page>.md | Append .md to any docs URL to fetch the raw Markdown for a single page (e.g. /api/overview.md). |
api.leash.market/openapi.json | Live OpenAPI 3.1 spec. Feed it to your client generator of choice. |
| In-page actions | The header on every page has a “Copy page” / “View as Markdown” / “Open in ChatGPT, Claude, Perplexity” / “Connect to Cursor or VS Code (MCP)” menu. |
SKILL.md (mental model + workflow), a
REFERENCE.md (full surface map — every SDK package, every API route,
every env var), and an EXAMPLES.md of copy-paste snippets for the
most common flows. Source: leash/skills/leash.
