# Send AISP to your agent
Hand the extracted package to your coding agent with a concrete install brief instead of figuring it out manually.
## Fast path
- 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.
## Suggested prompts
### New install

```text
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.
```
### Upgrade existing

```text
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.
```
## Machine-readable fields
```json
{
  "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": {
    "downloadUrl": "/downloads/aisp",
    "sourceDownloadUrl": "https://wry-manatee-359.convex.site/api/v1/download?slug=aisp",
    "sourcePlatform": "tencent",
    "targetPlatform": "OpenClaw",
    "packageFormat": "ZIP package",
    "primaryDoc": "SKILL.md",
    "includedAssets": [
      "CHANGELOG.md",
      "PUBLISHING.md",
      "SKILL.md"
    ],
    "downloadMode": "redirect",
    "sourceHealth": {
      "source": "tencent",
      "slug": "aisp",
      "status": "healthy",
      "reason": "direct_download_ok",
      "recommendedAction": "download",
      "checkedAt": "2026-04-29T04:36:41.876Z",
      "expiresAt": "2026-05-06T04:36:41.876Z",
      "httpStatus": 200,
      "finalUrl": "https://wry-manatee-359.convex.site/api/v1/download?slug=aisp",
      "contentType": "application/zip",
      "probeMethod": "head",
      "details": {
        "probeUrl": "https://wry-manatee-359.convex.site/api/v1/download?slug=aisp",
        "contentDisposition": "attachment; filename=\"aisp-2.0.2.zip\"",
        "redirectLocation": null,
        "bodySnippet": null,
        "slug": "aisp"
      },
      "scope": "item",
      "summary": "Item download looks usable.",
      "detail": "Yavira can redirect you to the upstream package for this item.",
      "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."
      ]
    }
  },
  "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"
  }
}
```
## Documentation

### 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) → 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)

### SDK (Agent)

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)
);

### Provider Workflow (Listing)

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)

### SDK (Provider)

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-...",
});

### Key Paths

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

### Backend API

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

### Signatures

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)

### Contract (Base)

Chain: Base (8453)
Mainnet: 0xeeDa7657f2018b3b71B444b7ca2D8dE91b3B08f3
USDC: 0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913

### Security & Signing

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.

### Notes

Venice API keys must be inference-only (not admin)
1% protocol fee deducted at settlement
## Trust
- Source: tencent
- Verification: Indexed source record
- Publisher: DaveO280
- Version: 2.0.2
## Source health
- Status: healthy
- Item download looks usable.
- Yavira can redirect you to the upstream package for this item.
- Health scope: item
- Reason: direct_download_ok
- Checked at: 2026-04-29T04:36:41.876Z
- Expires at: 2026-05-06T04:36:41.876Z
- Recommended action: Download for OpenClaw
## Links
- [Detail page](https://openagent3.xyz/skills/aisp)
- [Send to Agent page](https://openagent3.xyz/skills/aisp/agent)
- [JSON manifest](https://openagent3.xyz/skills/aisp/agent.json)
- [Markdown brief](https://openagent3.xyz/skills/aisp/agent.md)
- [Download page](https://openagent3.xyz/downloads/aisp)