# Send Metered API Marketplace 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": "metered-api-marketplace",
    "name": "Metered API Marketplace",
    "source": "tencent",
    "type": "skill",
    "category": "开发工具",
    "sourceUrl": "https://clawhub.ai/arshingleton/metered-api-marketplace",
    "canonicalUrl": "https://clawhub.ai/arshingleton/metered-api-marketplace",
    "targetPlatform": "OpenClaw"
  },
  "install": {
    "downloadUrl": "/downloads/metered-api-marketplace",
    "sourceDownloadUrl": "https://wry-manatee-359.convex.site/api/v1/download?slug=metered-api-marketplace",
    "sourcePlatform": "tencent",
    "targetPlatform": "OpenClaw",
    "packageFormat": "ZIP package",
    "primaryDoc": "SKILL.md",
    "includedAssets": [
      "SKILL.md",
      "references/api_reference.md",
      "references/billing_ledger.md",
      "references/integration_prompt.md",
      "references/providers.md",
      "scripts/nextjs-starter/README_DEPLOY.md"
    ],
    "downloadMode": "redirect",
    "sourceHealth": {
      "source": "tencent",
      "status": "healthy",
      "reason": "direct_download_ok",
      "recommendedAction": "download",
      "checkedAt": "2026-04-30T16:55:25.780Z",
      "expiresAt": "2026-05-07T16:55:25.780Z",
      "httpStatus": 200,
      "finalUrl": "https://wry-manatee-359.convex.site/api/v1/download?slug=network",
      "contentType": "application/zip",
      "probeMethod": "head",
      "details": {
        "probeUrl": "https://wry-manatee-359.convex.site/api/v1/download?slug=network",
        "contentDisposition": "attachment; filename=\"network-1.0.0.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/metered-api-marketplace"
    },
    "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/metered-api-marketplace",
    "downloadUrl": "https://openagent3.xyz/downloads/metered-api-marketplace",
    "agentUrl": "https://openagent3.xyz/skills/metered-api-marketplace/agent",
    "manifestUrl": "https://openagent3.xyz/skills/metered-api-marketplace/agent.json",
    "briefUrl": "https://openagent3.xyz/skills/metered-api-marketplace/agent.md"
  }
}
```
## Documentation

### Metered API Marketplace

Provide a production-lean template for: OpenClaw Skill → Public API Endpoint → Usage Metering → Crypto Payment Gateway → BTC/ETH wallets.

This skill ships a runnable reference server (Fastify + SQLite) that:

Accepts structured JSON input
Performs a high-value transformation (pluggable “transformers”)
Returns structured JSON output
Enforces signed API key auth
Checks prepaid balance, deducts per call, and logs usage
Accepts payment webhooks (Coinbase Commerce / BTCPay Server style)
Applies a 2.5% platform fee in the ledger (fee addresses configurable)

### 1) Pick the productized capability (the thing people pay for)

Choose ONE transformer that is:

high leverage (makes/keeps money)
repeatable (called often)
defensible (data, heuristics, workflow, or automation — not “generic summarization”)

Good defaults:

revenue/offer optimizer
ad copy optimizer
lead scoring
contract risk flags

If unclear, start with the included revenue-amplifier transformer and replace it later.

### 2) Run the reference server locally

Use the bundled server in scripts/server/.

Typical run:

cd scripts/server
npm install
cp .env.example .env and edit
npm run dev

Set flat launch pricing in .env:

COST_CENTS_PER_CALL=25  # $0.25/call

### 3) Create an API key

Use scripts/server/admin/create_key_pg.js (or the admin HTTP endpoint) to create a key and starting balance.

### 4) Integrate from an OpenClaw skill / agent

Call the public endpoint with:

x-api-key
x-timestamp (unix ms)
x-signature = hex(HMAC_SHA256(api_secret, ${timestamp}.${rawBody}))

### 5) Add real payments

Wire a payment processor webhook to /v1/payments/webhook/:provider.

Providers are adapter-based:

start with “manual” credits (admin script)
then add Coinbase Commerce or BTCPay Server

### 6) Ship

Deploy behind TLS (Cloudflare / Fly.io / Render / AWS / GCP). Put rate limiting at the edge + in-app.

### scripts/server/

Runnable reference implementation:

Fastify API server (long-running)
Postgres ledger (balances, usage, credits)
Signed API key auth
Rate limiting + basic anti-abuse
Webhook endpoint(s)

### scripts/nextjs-starter/

Vercel-ready Next.js API implementation:

Serverless API routes (no listen())
Postgres ledger (Supabase Transaction Pooler recommended)
Same auth + pricing + webhook concepts

### references/

Read only when needed:

references/api_reference.md – endpoint contracts + auth/signing
references/billing_ledger.md – pricing, fee logic, idempotency
references/providers.md – provider adapters (Coinbase/BTCPay patterns)
## Trust
- Source: tencent
- Verification: Indexed source record
- Publisher: arshingleton
- Version: 0.1.3
## Source health
- Status: healthy
- Source download looks usable.
- Yavira can redirect you to the upstream package for this source.
- Health scope: source
- Reason: direct_download_ok
- Checked at: 2026-04-30T16:55:25.780Z
- Expires at: 2026-05-07T16:55:25.780Z
- Recommended action: Download for OpenClaw
## Links
- [Detail page](https://openagent3.xyz/skills/metered-api-marketplace)
- [Send to Agent page](https://openagent3.xyz/skills/metered-api-marketplace/agent)
- [JSON manifest](https://openagent3.xyz/skills/metered-api-marketplace/agent.json)
- [Markdown brief](https://openagent3.xyz/skills/metered-api-marketplace/agent.md)
- [Download page](https://openagent3.xyz/downloads/metered-api-marketplace)