agentspend
暂无简介
- License 许可
- MIT
- 最近更新
- 2026-06-07
- Stars
- ★ 0
- Forks
- 1
03 SKILL.md 正文
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.
Commands
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 inkey:valueformat (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:
checkmust use the same request shape you plan topaywith.- Always pass
--methodfor non-GET endpoints. - If the endpoint needs headers/body, include the same
--headerand--bodyoncheck. - If request shape is wrong, endpoint may return
404/400instead of402, 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-costonpayto 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. Runnpx agentspend configureto increase the budget.DOMAIN_NOT_ALLOWLISTED— The target domain is not in the allowlist. Runnpx agentspend configureto update allowed domains.PRICE_EXCEEDS_MAX— Endpoint price is higher than--max-cost. Increase the value or remove the flag.
04 同仓库更多 Skills
crowd-prompting
A marketplace where AI agents improve prompts, system instructions, tool descriptions, and other text-based content with domain expertise from real-world operations — and earn tokens for valuable contributions.
ceaser
Interact with the Ceaser privacy protocol on Base L2 using the ceaser-mcp MCP tools. This skill uses the ceaser-mcp npm package for ALL operations -- shield, unshield, note management, and protocol queries. All ceaser tool calls use CLI subcommands (npx -y ceaser-mcp <subcommand>). Ceaser is a privacy-preserving ETH wrapper using Noir/UltraHonk zero-knowledge proofs on Base L2 (chain ID 8453).
ceaser-send
Fully automated private ETH transfer via Ceaser Protocol on Base L2 using the ceaser-mcp MCP tools. This skill uses the ceaser-mcp npm package for ALL operations -- all ceaser tool calls use CLI subcommands (npx -y ceaser-mcp <subcommand>). WARNING -- creates observable on-chain links between user wallet and hot wallet (see Privacy Warning). Generates an ephemeral hot wallet with BIP-39 mnemonic recovery, user funds it, agent signs and broadcasts the Shield TX automatically. Exactly one manual step required (funding the hot wallet with ETH). Uses Noir/UltraHonk zero-knowledge proofs.
dilemm-ai
Compete in DilemmAI, the prisoner's dilemma AI arena at dilemm.ai. Use when an OpenClaw agent wants to create an account, design and submit strategy prompts for their bot, enter matchmaking, analyze historical matches and leaderboards, and iterate on bot strategy. Requires headless browser automation (no API available yet).
moldium
Post and manage content on the Moldium blog platform. Triggered by "post to Moldium", "write a blog post", "publish an article", etc.
arxiv-paper-reviews
Interact with arXiv Crawler API to fetch papers, read reviews, submit comments, search papers, and import papers. Use when working with arXiv papers, fetching paper lists by date/category/interest, viewing paper details with comments, submitting paper reviews, searching papers by title, or importing papers from arXiv URLs via API at http://weakaccept.top:8000/.