Requirements
- Target platform
- OpenClaw
- Install method
- Manual import
- Extraction
- Extract archive
- Prerequisites
- OpenClaw
- Primary doc
- SKILL.md
Enables AI agents to interact with AISP (Agent Inference Sharing Protocol) for renting or providing DIEM API capacity. Use when working with diem-marketplace, Venice API keys, USDC escrow, listings, rentals, or when the user wants to rent inference capacity or list API keys.
Enables AI agents to interact with AISP (Agent Inference Sharing Protocol) for renting or providing DIEM API capacity. Use when working with diem-marketplace, Venice API keys, USDC escrow, listings, rentals, or when the user wants to rent inference capacity or list API keys.
Hand the extracted package to your coding agent with a concrete install brief instead of figuring it out manually.
I downloaded a skill package from Yavira. Read SKILL.md from the extracted folder and install it by following the included instructions. Tell me what you changed and call out any manual steps you could not complete.
I downloaded an updated skill package from Yavira. Read SKILL.md from the extracted folder, compare it with my current installation, and upgrade it while preserving any custom configuration unless the package docs explicitly say otherwise. Summarize what changed and any follow-up checks I should run.
Agent Inference Sharing Protocol (AISP) lets agents rent idle DIEM/Venice API capacity via USDC escrow. Providers list capped API keys; agents fund and receive keys automatically.
Agent: fund() โ Backend sees Funded event โ Key released โ Agent uses Venice API Provider: list() โ Agent funds โ Term expires โ settle() โ Provider paid (99%, 1% fee)
Listings from backend: GET /api/listings Approve USDC if needed (contract spends on fund) Fund on-chain: contract.fund(listingId, termDays, diemAmount) โ returns rentalId Get key: POST /api/key/{rentalId} with signed message diem-marketplace:get-key:{rentalId}:{timestamp} Use apiKey with Venice API until expiresAt (Unix timestamp)
import { DiemAgent } from "diem-marketplace-sdk"; const agent = new DiemAgent({ signer: wallet, contractAddress: "0x...", backendUrl: "https://diem-marketplace-backend.fly.dev", usdcAddress: "0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913", }); const listings = await agent.getListings(); const { apiKey, expiresAt } = await agent.rent( listings[0].listingId, termDays, ethers.parseUnits(diemAmount, 6) );
Create listing on-chain: contract.list(pricePerDay, termDays, diemMin, diemMax) โ listingId Store key on backend: POST /api/keys with { listingId, apiKey, signature, timestamp } Message: diem-marketplace:store-key:{listingId}:{timestamp} Settle when rental expires: contract.settle(rentalId) โ provider receives 99% (1% protocol fee)
import { DiemProvider } from "diem-marketplace-sdk"; const provider = new DiemProvider({ signer: wallet, contractAddress: "0x...", backendUrl: "https://diem-marketplace-backend.fly.dev", usdcAddress: "0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913", }); const listingId = await provider.createListing({ pricePerDay: ethers.parseUnits("0.80", 6), termDays: 30, diemMin: ethers.parseUnits("1000", 6), diemMax: ethers.parseUnits("4000", 6), apiKey: "vn-scoped-...", });
PathPurposesdk/src/agent.tsDiemAgent: getListings, rent, getKey, getMyRentalssdk/src/provider.tsDiemProvider: createListing, settle, revokeAndRefundbackend/src/routes.tsAPI routes: /api/listings, /api/keys, /api/key/:idcontracts/DiemMarketplace.solOn-chain escrow, 1% fee
EndpointMethodPurpose/api/listingsGETList rentable listings/api/listings/:idGETSingle listing/api/keysPOSTProvider stores API key/api/key/:rentalIdPOSTAgent retrieves key (signature required)/api/balancePOSTCheck DIEM balance for API key/api/requestsPOSTCreate rental request
All backend requests requiring auth use EIP-191 signing: getKey: diem-marketplace:get-key:{rentalId}:{timestamp} storeKey: diem-marketplace:store-key:{listingId}:{timestamp} balance: apiKey in body (no signature)
Chain: Base (8453) Mainnet: 0xeeDa7657f2018b3b71B444b7ca2D8dE91b3B08f3 USDC: 0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913
Use an external signer or hardware wallet; never paste raw private keys. Require explicit user confirmation before fund transfers or credential usage. Venice API keys must be scoped (inference-only), revocable, and minimal for escrow.
Venice API keys must be inference-only (not admin) 1% protocol fee deducted at settlement
Code helpers, APIs, CLIs, browser automation, testing, and developer operations.
Largest current source with strong distribution and engagement signals.