{"openapi":"3.1.0","info":{"title":"Agentware","version":"1.0.0","description":"Agentware, the onchain marketplace for agents on Robinhood Chain: builders sell skills, prompts, MCP configs, workflows, and code, and agents buy them plus model inference paid per call. Every package is read by a scan agent before it lists, and reviews are onchain (ERC-8004). Inference is x402-native and settles through the MeshGateway facilitator: POST OpenAI-style messages here (or directly at agentware.sh/api/inference/{model}), answer the 402 challenge with USDG permit2, and payment goes straight to the Agentware treasury.","contact":{"email":"contact@meshgateway.co"},"x-guidance":"Every path is payable per request over HTTP 402 in USDG on eip155:4663. GET or POST without credentials to receive the challenge (WWW-Authenticate Payment header, plus the x402 payment-required header). Sign PermitWitnessTransferFrom for the advertised offer (spender is the canonical x402ExactPermit2Proxy) and retry with the payment-signature header. Buyers only need USDG: a one-time sponsored Permit2 approval is available at POST /api/gas/sponsor {\"address\"}."},"x-service-info":{"description":"Agentware, the onchain marketplace for agents on Robinhood Chain: builders sell skills, prompts, MCP configs, workflows, and code, and agents buy them plus model inference paid per call. Every package is read by a scan agent before it lists, and reviews are onchain (ERC-8004). Inference is x402-native and settles through the MeshGateway facilitator: POST OpenAI-style messages here (or directly at agentware.sh/api/inference/{model}), answer the 402 challenge with USDG permit2, and payment goes straight to the Agentware treasury."},"paths":{"/inference":{"post":{"summary":"One chat completion from Claude, GPT, Gemini, Grok, Kimi, Qwen, GLM, or DeepSeek. Append the model key to the path, e.g. inference/claude-sonnet-5, and POST {\"messages\":[{\"role\":\"user\",\"content\":\"...\"}],\"max_tokens\":512}. Returns the OpenAI chat completion shape. Each call is charged its worst case up front (estimated input plus max_tokens, default 2048, capped at 8192). No streaming. Model keys and per-million-token prices are under models. Charged by Agentware over x402 v2 (USDG, permit2, Robinhood Chain).","requestBody":{"required":false,"content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"description":"Forwarded to the upstream API verbatim"}}}},"responses":{"200":{"description":"Successful response"},"402":{"description":"Payment Required"}},"x-payment-info":{"price":{"mode":"fixed","currency":"USD","amount":"0.006000"},"protocols":[{"mpp":{"method":"evm","intent":"charge","currency":"0x5fc5360D0400a0Fd4f2af552ADD042D716F1d168"}},{"x402":{}}],"amount":"6000","currency":"0x5fc5360D0400a0Fd4f2af552ADD042D716F1d168","description":"Agentware: Model inference","intent":"charge","method":"evm","recipient":"0x7bDEa26f793d08702196DD5e7aD1EdBF57AacBd5","scheme":"exact","network":"eip155:4663","extra":{"assetTransferMethod":"permit2","spender":"0x402085c248EeA27D92E8b30b2C58ed07f9E20001","name":"USDG"}}}},"/models":{"get":{"summary":"Every inference model with its key, vendor, tier, endpoint, and USDG price per million input and output tokens, plus the pricing rule.","responses":{"200":{"description":"Successful response"},"402":{"description":"Payment Required"}},"x-payment-info":{"price":{"mode":"fixed","currency":"USD","amount":"0.005000"},"protocols":[{"mpp":{"method":"evm","intent":"charge","currency":"0x5fc5360D0400a0Fd4f2af552ADD042D716F1d168"}},{"x402":{}}],"amount":"5000","currency":"0x5fc5360D0400a0Fd4f2af552ADD042D716F1d168","description":"Agentware: Inference models","intent":"charge","method":"evm","recipient":"0x7bDEa26f793d08702196DD5e7aD1EdBF57AacBd5","scheme":"exact","network":"eip155:4663","extra":{"assetTransferMethod":"permit2","spender":"0x402085c248EeA27D92E8b30b2C58ed07f9E20001","name":"USDG"}}}},"/packages":{"get":{"summary":"Live packages in the Agentware library with kind, category, price, and scan verdict. Pass ?kind=skill|prompt|mcp|workflow|code or ?category=payments. Append a slug for one package with its full scan report and onchain reviews, e.g. packages/my-skill.","responses":{"200":{"description":"Successful response"},"402":{"description":"Payment Required"}},"x-payment-info":{"price":{"mode":"fixed","currency":"USD","amount":"0.005000"},"protocols":[{"mpp":{"method":"evm","intent":"charge","currency":"0x5fc5360D0400a0Fd4f2af552ADD042D716F1d168"}},{"x402":{}}],"amount":"5000","currency":"0x5fc5360D0400a0Fd4f2af552ADD042D716F1d168","description":"Agentware: Package library","intent":"charge","method":"evm","recipient":"0x7bDEa26f793d08702196DD5e7aD1EdBF57AacBd5","scheme":"exact","network":"eip155:4663","extra":{"assetTransferMethod":"permit2","spender":"0x402085c248EeA27D92E8b30b2C58ed07f9E20001","name":"USDG"}}}}}}