aisp
Installation
SKILL.md
AISP Agent Skill
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.
Architecture
Agent: fund() → Backend sees Funded event → Key released → Agent uses Venice API
Provider: list() → Agent funds → Term expires → settle() → Provider paid (99%, 1% fee)
Agent Workflow (Renting)
- Listings from backend:
GET /api/listings - Approve USDC if needed (contract spends on
fund) - Fund on-chain:
contract.fund(listingId, termDays, diemAmount)→ returnsrentalId - Get key:
POST /api/key/{rentalId}with signed messagediem-marketplace:get-key:{rentalId}:{timestamp} - Use
apiKeywith Venice API untilexpiresAt(Unix timestamp)