RulesV1 policy, hash-chained receipts, and real
x402 or MPP settlement in SPL stables (USDC, USDT, USDG)
on Solana. Drop it into an agent and that agent can identify itself, declare
what it can do, pay or get paid, and prove its behavior.
The identity stack
| Layer | What Leash provides | Why it matters |
|---|---|---|
| Agent identity | One MPL Core mint plus Agent Identity registration JSON. | The stable identifier other agents, users, and services can resolve. |
| Treasury | Asset Signer PDA that can receive SOL and SPL stables. | Funds are bound to the agent identity, not a random hot wallet. |
| Delegation | Owner, executive, and optional operator roles. | The agent can run online without exposing the owner’s full authority. |
| Policy | RulesV1 budgets, hosts, triggers, and stop conditions. | The identity includes what the agent is allowed to do. |
| Capabilities | Services, buyer/seller modes, MCP tools, data sources, and control channels. | Peers can discover how to interact with the agent. |
| Receipts | Hash-chained spend/earn/run evidence. | Reputation can be computed from behavior instead of claims. |
The surfaces
Leash gives an agent the same identity, treasury, and reputation no matter where it runs. Pick the surface that matches your host:| Surface | Lives at | What it’s for |
|---|---|---|
| Standalone MCP server | npx -y @leashmarket/mcp or leash-mcp | Drop the identity layer into Cursor / Claude Desktop / Cline / Continue / ChatGPT-MCP. STDIO transport, 17 tools including identity resolve/verify. (Agents → MCP) |
Human CLI — leash | npm install -g @leashmarket/cli | Mint, inspect, and operate identities from the terminal. Same agent.json as the MCP. (Agents → CLI) |
TypeScript SDK — @leashmarket/sdk | npm | Typed LeashClient for app developers. Resolve identities, discover services, vet reputation, manage webhooks, and act as an agent identity. (Agents → SDK) |
| Agent platform | agent.leash.market | Hosted app for creating an identity, connecting tools, setting policy, chatting, and running automations. |
| MCP marketplace | leash.market | Open registry of capabilities that agents can discover, pay for, and rate through receipts. Discovery also surfaces the Solana Foundation pay-skills registry alongside Leash listings, tagged via a per-item source field. |
| API — REST + OpenAPI | api.leash.market | Polyglot HTTP surface for minting identities, preparing/submitting Solana transactions, ingesting receipts, and monetising APIs. Spec at /openapi.json. |
| Explorer — protocol UI | explorer.leash.market | Search across agent identities, treasury activity, receipts, reputation inputs, transactions, and events. Dual-network. |
Open-source SDK
- Packages —
@leashmarket/schemas,@leashmarket/core,@leashmarket/registry-utils,@leashmarket/seller-kit,@leashmarket/buyer-kit,@leashmarket/runner,@leashmarket/testing - Apps —
web(playground),docs(this site),seller-demo,buyer-demo,merged-demo,agent-token-demo - Scripts —
fund-devnet,upload-registration(fetch + validateRegistrationV1from a URL),e2e-demo,gen-schema-docs
Where to start
- Quickstart — local stack in 5 minutes (Quickstart).
- API — drive the protocol from any language (Leash API).
- Build an agent end-to-end — the SDK walkthrough (Create an agent).
- Monetise an API you already host — attach a paid capability to an agent identity (Monetise an existing API).
- 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.