{
  "schemaVersion": "1.0",
  "item": {
    "slug": "aisp",
    "name": "AISP",
    "source": "tencent",
    "type": "skill",
    "category": "开发工具",
    "sourceUrl": "https://clawhub.ai/DaveO280/aisp",
    "canonicalUrl": "https://clawhub.ai/DaveO280/aisp",
    "targetPlatform": "OpenClaw"
  },
  "install": {
    "downloadMode": "redirect",
    "downloadUrl": "/downloads/aisp",
    "sourceDownloadUrl": "https://wry-manatee-359.convex.site/api/v1/download?slug=aisp",
    "sourcePlatform": "tencent",
    "targetPlatform": "OpenClaw",
    "installMethod": "Manual import",
    "extraction": "Extract archive",
    "prerequisites": [
      "OpenClaw"
    ],
    "packageFormat": "ZIP package",
    "includedAssets": [
      "CHANGELOG.md",
      "PUBLISHING.md",
      "SKILL.md"
    ],
    "primaryDoc": "SKILL.md",
    "quickSetup": [
      "Download the package from Yavira.",
      "Extract the archive and review SKILL.md first.",
      "Import or place the package into your OpenClaw setup."
    ],
    "agentAssist": {
      "summary": "Hand the extracted package to your coding agent with a concrete install brief instead of figuring it out manually.",
      "steps": [
        "Download the package from Yavira.",
        "Extract it into a folder your agent can access.",
        "Paste one of the prompts below and point your agent at the extracted folder."
      ],
      "prompts": [
        {
          "label": "New install",
          "body": "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."
        },
        {
          "label": "Upgrade existing",
          "body": "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."
        }
      ]
    },
    "sourceHealth": {
      "source": "tencent",
      "status": "healthy",
      "reason": "direct_download_ok",
      "recommendedAction": "download",
      "checkedAt": "2026-04-23T16:43:11.935Z",
      "expiresAt": "2026-04-30T16:43:11.935Z",
      "httpStatus": 200,
      "finalUrl": "https://wry-manatee-359.convex.site/api/v1/download?slug=4claw-imageboard",
      "contentType": "application/zip",
      "probeMethod": "head",
      "details": {
        "probeUrl": "https://wry-manatee-359.convex.site/api/v1/download?slug=4claw-imageboard",
        "contentDisposition": "attachment; filename=\"4claw-imageboard-1.0.1.zip\"",
        "redirectLocation": null,
        "bodySnippet": null
      },
      "scope": "source",
      "summary": "Source download looks usable.",
      "detail": "Yavira can redirect you to the upstream package for this source.",
      "primaryActionLabel": "Download for OpenClaw",
      "primaryActionHref": "/downloads/aisp"
    },
    "validation": {
      "installChecklist": [
        "Use the Yavira download entry.",
        "Review SKILL.md after the package is downloaded.",
        "Confirm the extracted package contains the expected setup assets."
      ],
      "postInstallChecks": [
        "Confirm the extracted package includes the expected docs or setup files.",
        "Validate the skill or prompts are available in your target agent workspace.",
        "Capture any manual follow-up steps the agent could not complete."
      ]
    },
    "downloadPageUrl": "https://openagent3.xyz/downloads/aisp",
    "agentPageUrl": "https://openagent3.xyz/skills/aisp/agent",
    "manifestUrl": "https://openagent3.xyz/skills/aisp/agent.json",
    "briefUrl": "https://openagent3.xyz/skills/aisp/agent.md"
  },
  "agentAssist": {
    "summary": "Hand the extracted package to your coding agent with a concrete install brief instead of figuring it out manually.",
    "steps": [
      "Download the package from Yavira.",
      "Extract it into a folder your agent can access.",
      "Paste one of the prompts below and point your agent at the extracted folder."
    ],
    "prompts": [
      {
        "label": "New install",
        "body": "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."
      },
      {
        "label": "Upgrade existing",
        "body": "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."
      }
    ]
  },
  "documentation": {
    "source": "clawhub",
    "primaryDoc": "SKILL.md",
    "sections": [
      {
        "title": "AISP Agent Skill",
        "body": "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."
      },
      {
        "title": "Architecture",
        "body": "Agent: fund() → Backend sees Funded event → Key released → Agent uses Venice API\nProvider: list() → Agent funds → Term expires → settle() → Provider paid (99%, 1% fee)"
      },
      {
        "title": "Agent Workflow (Renting)",
        "body": "Listings from backend: GET /api/listings\nApprove USDC if needed (contract spends on fund)\nFund on-chain: contract.fund(listingId, termDays, diemAmount) → returns rentalId\nGet key: POST /api/key/{rentalId} with signed message diem-marketplace:get-key:{rentalId}:{timestamp}\nUse apiKey with Venice API until expiresAt (Unix timestamp)"
      },
      {
        "title": "SDK (Agent)",
        "body": "import { DiemAgent } from \"diem-marketplace-sdk\";\n\nconst agent = new DiemAgent({\n  signer: wallet,\n  contractAddress: \"0x...\",\n  backendUrl: \"https://diem-marketplace-backend.fly.dev\",\n  usdcAddress: \"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913\",\n});\n\nconst listings = await agent.getListings();\nconst { apiKey, expiresAt } = await agent.rent(\n  listings[0].listingId,\n  termDays,\n  ethers.parseUnits(diemAmount, 6)\n);"
      },
      {
        "title": "Provider Workflow (Listing)",
        "body": "Create listing on-chain: contract.list(pricePerDay, termDays, diemMin, diemMax) → listingId\nStore key on backend: POST /api/keys with { listingId, apiKey, signature, timestamp }\n\nMessage: diem-marketplace:store-key:{listingId}:{timestamp}\n\n\nSettle when rental expires: contract.settle(rentalId) → provider receives 99% (1% protocol fee)"
      },
      {
        "title": "SDK (Provider)",
        "body": "import { DiemProvider } from \"diem-marketplace-sdk\";\n\nconst provider = new DiemProvider({\n  signer: wallet,\n  contractAddress: \"0x...\",\n  backendUrl: \"https://diem-marketplace-backend.fly.dev\",\n  usdcAddress: \"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913\",\n});\n\nconst listingId = await provider.createListing({\n  pricePerDay: ethers.parseUnits(\"0.80\", 6),\n  termDays: 30,\n  diemMin: ethers.parseUnits(\"1000\", 6),\n  diemMax: ethers.parseUnits(\"4000\", 6),\n  apiKey: \"vn-scoped-...\",\n});"
      },
      {
        "title": "Key Paths",
        "body": "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"
      },
      {
        "title": "Backend API",
        "body": "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"
      },
      {
        "title": "Signatures",
        "body": "All backend requests requiring auth use EIP-191 signing:\n\ngetKey: diem-marketplace:get-key:{rentalId}:{timestamp}\nstoreKey: diem-marketplace:store-key:{listingId}:{timestamp}\nbalance: apiKey in body (no signature)"
      },
      {
        "title": "Contract (Base)",
        "body": "Chain: Base (8453)\nMainnet: 0xeeDa7657f2018b3b71B444b7ca2D8dE91b3B08f3\nUSDC: 0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913"
      },
      {
        "title": "Security & Signing",
        "body": "Use an external signer or hardware wallet; never paste raw private keys.\nRequire explicit user confirmation before fund transfers or credential usage.\nVenice API keys must be scoped (inference-only), revocable, and minimal for escrow."
      },
      {
        "title": "Notes",
        "body": "Venice API keys must be inference-only (not admin)\n1% protocol fee deducted at settlement"
      }
    ],
    "body": "AISP Agent Skill\n\nAgent 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.\n\nArchitecture\nAgent: fund() → Backend sees Funded event → Key released → Agent uses Venice API\nProvider: list() → Agent funds → Term expires → settle() → Provider paid (99%, 1% fee)\n\nAgent Workflow (Renting)\nListings from backend: GET /api/listings\nApprove USDC if needed (contract spends on fund)\nFund on-chain: contract.fund(listingId, termDays, diemAmount) → returns rentalId\nGet key: POST /api/key/{rentalId} with signed message diem-marketplace:get-key:{rentalId}:{timestamp}\nUse apiKey with Venice API until expiresAt (Unix timestamp)\nSDK (Agent)\nimport { DiemAgent } from \"diem-marketplace-sdk\";\n\nconst agent = new DiemAgent({\n  signer: wallet,\n  contractAddress: \"0x...\",\n  backendUrl: \"https://diem-marketplace-backend.fly.dev\",\n  usdcAddress: \"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913\",\n});\n\nconst listings = await agent.getListings();\nconst { apiKey, expiresAt } = await agent.rent(\n  listings[0].listingId,\n  termDays,\n  ethers.parseUnits(diemAmount, 6)\n);\n\nProvider Workflow (Listing)\nCreate listing on-chain: contract.list(pricePerDay, termDays, diemMin, diemMax) → listingId\nStore key on backend: POST /api/keys with { listingId, apiKey, signature, timestamp }\nMessage: diem-marketplace:store-key:{listingId}:{timestamp}\nSettle when rental expires: contract.settle(rentalId) → provider receives 99% (1% protocol fee)\nSDK (Provider)\nimport { DiemProvider } from \"diem-marketplace-sdk\";\n\nconst provider = new DiemProvider({\n  signer: wallet,\n  contractAddress: \"0x...\",\n  backendUrl: \"https://diem-marketplace-backend.fly.dev\",\n  usdcAddress: \"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913\",\n});\n\nconst listingId = await provider.createListing({\n  pricePerDay: ethers.parseUnits(\"0.80\", 6),\n  termDays: 30,\n  diemMin: ethers.parseUnits(\"1000\", 6),\n  diemMax: ethers.parseUnits(\"4000\", 6),\n  apiKey: \"vn-scoped-...\",\n});\n\nKey Paths\nPath\tPurpose\nsdk/src/agent.ts\tDiemAgent: getListings, rent, getKey, getMyRentals\nsdk/src/provider.ts\tDiemProvider: createListing, settle, revokeAndRefund\nbackend/src/routes.ts\tAPI routes: /api/listings, /api/keys, /api/key/:id\ncontracts/DiemMarketplace.sol\tOn-chain escrow, 1% fee\nBackend API\nEndpoint\tMethod\tPurpose\n/api/listings\tGET\tList rentable listings\n/api/listings/:id\tGET\tSingle listing\n/api/keys\tPOST\tProvider stores API key\n/api/key/:rentalId\tPOST\tAgent retrieves key (signature required)\n/api/balance\tPOST\tCheck DIEM balance for API key\n/api/requests\tPOST\tCreate rental request\nSignatures\n\nAll backend requests requiring auth use EIP-191 signing:\n\ngetKey: diem-marketplace:get-key:{rentalId}:{timestamp}\nstoreKey: diem-marketplace:store-key:{listingId}:{timestamp}\nbalance: apiKey in body (no signature)\nContract (Base)\nChain: Base (8453)\nMainnet: 0xeeDa7657f2018b3b71B444b7ca2D8dE91b3B08f3\nUSDC: 0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913\nSecurity & Signing\nUse an external signer or hardware wallet; never paste raw private keys.\nRequire explicit user confirmation before fund transfers or credential usage.\nVenice API keys must be scoped (inference-only), revocable, and minimal for escrow.\nNotes\nVenice API keys must be inference-only (not admin)\n1% protocol fee deducted at settlement"
  },
  "trust": {
    "sourceLabel": "tencent",
    "provenanceUrl": "https://clawhub.ai/DaveO280/aisp",
    "publisherUrl": "https://clawhub.ai/DaveO280/aisp",
    "owner": "DaveO280",
    "version": "2.0.2",
    "license": null,
    "verificationStatus": "Indexed source record"
  },
  "links": {
    "detailUrl": "https://openagent3.xyz/skills/aisp",
    "downloadUrl": "https://openagent3.xyz/downloads/aisp",
    "agentUrl": "https://openagent3.xyz/skills/aisp/agent",
    "manifestUrl": "https://openagent3.xyz/skills/aisp/agent.json",
    "briefUrl": "https://openagent3.xyz/skills/aisp/agent.md"
  }
}