# Send AgentSpend 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. Then review README.md for any prerequisites, environment setup, or post-install checks. 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. Then review README.md for any prerequisites, environment setup, or post-install checks. Summarize what changed and any follow-up checks I should run.
```
## Machine-readable fields
```json
{
  "schemaVersion": "1.0",
  "item": {
    "slug": "agentspend",
    "name": "AgentSpend",
    "source": "tencent",
    "type": "skill",
    "category": "AI 智能",
    "sourceUrl": "https://clawhub.ai/jpbonch/agentspend",
    "canonicalUrl": "https://clawhub.ai/jpbonch/agentspend",
    "targetPlatform": "OpenClaw"
  },
  "install": {
    "downloadUrl": "/downloads/agentspend",
    "sourceDownloadUrl": "https://wry-manatee-359.convex.site/api/v1/download?slug=agentspend",
    "sourcePlatform": "tencent",
    "targetPlatform": "OpenClaw",
    "packageFormat": "ZIP package",
    "primaryDoc": "SKILL.md",
    "includedAssets": [
      "README.md",
      "package.json",
      "SKILL.md",
      "tsconfig.json",
      "src/dev-index.ts",
      "src/cli.ts"
    ],
    "downloadMode": "redirect",
    "sourceHealth": {
      "source": "tencent",
      "slug": "agentspend",
      "status": "healthy",
      "reason": "direct_download_ok",
      "recommendedAction": "download",
      "checkedAt": "2026-04-29T15:23:14.843Z",
      "expiresAt": "2026-05-06T15:23:14.843Z",
      "httpStatus": 200,
      "finalUrl": "https://wry-manatee-359.convex.site/api/v1/download?slug=agentspend",
      "contentType": "application/zip",
      "probeMethod": "head",
      "details": {
        "probeUrl": "https://wry-manatee-359.convex.site/api/v1/download?slug=agentspend",
        "contentDisposition": "attachment; filename=\"agentspend-0.1.3.zip\"",
        "redirectLocation": null,
        "bodySnippet": null,
        "slug": "agentspend"
      },
      "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/agentspend"
    },
    "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/agentspend",
    "downloadUrl": "https://openagent3.xyz/downloads/agentspend",
    "agentUrl": "https://openagent3.xyz/skills/agentspend/agent",
    "manifestUrl": "https://openagent3.xyz/skills/agentspend/agent.json",
    "briefUrl": "https://openagent3.xyz/skills/agentspend/agent.md"
  }
}
```
## Documentation

### When To Use This Skill

Use this skill whenever the user asks to:

find data from external APIs
call an endpoint
fetch/search information outside local context
generate an image, video, voice, transcription, or music with an external API
scrape/extract data from a URL
find an API for a task ("is there an API for X?")

If the task needs an external paid API, start with agentspend search.

### Playbook (Default Workflow)

npx agentspend search "<task>"
Confirm cost and constraints with the user (--max-cost, budget, allowlist)
npx agentspend pay <endpoint> --method ... --header ... --body ... --max-cost ...

### Setup

npx agentspend configure

Opens a URL to add a credit card and set a weekly spending limit. Saves credentials to ~/.agentspend/credentials.json.

If already configured, re-running opens the dashboard to update settings.

### Pay

npx agentspend pay <url>

Make a paid request. AgentSpend handles the payment automatically.

Options:

--method <method> — HTTP method (default: GET)
--body <body> — Request body (JSON or text)
--header <header> — Header in key:value format (repeatable)
--max-cost <usd> — Maximum acceptable charge in USD (up to 6 decimal places)

Returns:

Response body from the endpoint
Charge amount and remaining weekly budget

Example:

npx agentspend pay <url> \\
  --method POST \\
  --header "key:value" \\
  --body '{"key": "value"}' \\
  --max-cost 0.05

### Check

npx agentspend check <url>

Discover an endpoint's price without paying.

Important:

check must use the same request shape you plan to pay with.
Always pass --method for non-GET endpoints.
If the endpoint needs headers/body, include the same --header and --body on check.
If request shape is wrong, endpoint may return 404/400 instead of 402, and no price can be extracted.

Example:

npx agentspend check <url> \\
  --method POST \\
  --header "content-type:application/json" \\
  --body '{"key":"value"}'

Returns:

Price in USD
Description (if available)

### Search

npx agentspend search <keywords>

Keyword search over service names and descriptions in the catalog. Returns up to 5 matching services.

Example:

npx agentspend search "video generation"

### Status

npx agentspend status

Show account spending overview.

Returns:

Weekly budget
Amount spent this week
Remaining budget
Recent charges with amounts, domains, and timestamps

### Configure

npx agentspend configure

Run onboarding or open the dashboard to update settings (weekly budget, domain allowlist, payment method).

### Spending Controls

Weekly budget — Set during configure. Requests that would exceed the budget are rejected.
Per-request max cost — Use --max-cost on pay to reject requests above a price threshold.
Domain allowlist — Configurable via the dashboard. Requests to non-allowlisted domains are rejected.

### Common Errors

WEEKLY_BUDGET_EXCEEDED — Weekly spending limit reached. Run npx agentspend configure to increase the budget.
DOMAIN_NOT_ALLOWLISTED — The target domain is not in the allowlist. Run npx agentspend configure to update allowed domains.
PRICE_EXCEEDS_MAX — Endpoint price is higher than --max-cost. Increase the value or remove the flag.
## Trust
- Source: tencent
- Verification: Indexed source record
- Publisher: jpbonch
- Version: 0.1.3
## 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-29T15:23:14.843Z
- Expires at: 2026-05-06T15:23:14.843Z
- Recommended action: Download for OpenClaw
## Links
- [Detail page](https://openagent3.xyz/skills/agentspend)
- [Send to Agent page](https://openagent3.xyz/skills/agentspend/agent)
- [JSON manifest](https://openagent3.xyz/skills/agentspend/agent.json)
- [Markdown brief](https://openagent3.xyz/skills/agentspend/agent.md)
- [Download page](https://openagent3.xyz/downloads/agentspend)