mcpField
C
clawcard

clawcard

github.com/latchagentAgent workflows093 installsUpdated 30w ago
Repository

About clawcard

clawcard is a CLI skill for agents to use ClawCard’s paid API catalog, account resources, and virtual cards. It also documents browser-based checkout through the clawcard-browser MCP server, including a flow that keeps card details from the LLM.

Key features

  1. 01Browse and search paid API capabilities
  2. 02Pay for capabilities from account balance
  3. 03Manage email, files, credentials, and virtual cards
  4. 04Run browser checkout with virtual cards
  5. 05Poll asynchronous jobs for results

Use cases

  1. 01Search for a web-scraping or travel API
  2. 02Pay for and retrieve an asynchronous generation job
  3. 03Purchase a website subscription through browser checkout

MCP support

For website checkout, it uses the clawcard-browser MCP server to launch and control a browser, inspect checkout pages, and fill payment details securely. Card numbers are sent to the browser extension rather than exposed to the LLM.

Install

Copy the command and run it in a terminal.

$npx skills add https://github.com/latchagent/skill --skill clawcard

After installing, type/clawcardin Claude Code to confirm it loaded.

Bundled files

References and scripts installed along with SKILL.md.

reference/
catalog-compute.md
cards.md
catalog-enrich.md
catalog-maps.md
catalog-content.md
catalog-finance.md
catalog-media.md
catalog-gtm.md
catalog-marketing.md
catalog-data.md
catalog-research.md
catalog-reference.md
catalog-scrape.md
catalog-search.md
catalog-social.md
checkout.md
files.md
credentials.md
email.md
catalog-travel.md
sms.md
wallet.md
identity.md

Details

From the project README

You have access to ClawCard via the clawcard CLI. All commands support --json for machine-readable output. Always pass --json when calling these commands.

Quick Start

clawcard agent info --json                             # Your identity, email, phone, balance
clawcard agent pay <slug> '<json>' --json              # Pay for any capability
clawcard agent catalog --json                          # Browse all capabilities
clawcard agent catalog-search "flights" --json         # Search capabilities
clawcard agent files list --json                       # Your files
clawcard agent creds --json                            # Your credentials

ALWAYS check existing resources before creating new ones. List cards before every purchase. Reuse open merchant_locked cards for the same merchant.

Core Capabilities

CapabilityCommand Reference
Email (send, receive, read)reference/email.md
SMS (send, receive)reference/sms.md
Virtual Cards (create, pay, manage)reference/cards.md
File Storage (upload, list, download)reference/files.md
Credentials (store, retrieve secrets)reference/credentials.md
Browser Checkout (navigate, fill forms, pay)reference/checkout.md

Catalog — ~300 Paid API Capabilities

Your agent has access to ~300 paid capabilities via the catalog. All calls deduct from your account balance.

How to pay for any capability:

clawcard agent pay <slug> '<json body>' --json

Browse full catalog: clawcard agent catalog --json Search by keyword: clawcard agent catalog-search "web scraping" --json

CategoryExamplesPrice RangeReference
Searchweb-search, news-search, image-search$0.01-0.09reference/catalog-search.md
Scrape & Extractscrape-url, crawl-site, extract-data$0.01-0.05reference/catalog-scrape.md
People & Companiesenrich-person, enrich-company, find-contacts, find-email$0.01-0.06reference/catalog-enrich.md
Social Mediatiktok-profile, instagram-posts, reddit-search$0.06reference/catalog-social.md
Media Generationimage-gen, music-gen, transcribe, text-to-speech$0.03-0.11reference/catalog-media.md
Finance & Marketsstock-quote, sec-filings, exchange rates$0.01-0.06reference/catalog-finance.md
Travelflight-search, hotel-search$0.01-0.06reference/catalog-travel.md
Maps & Weathergeocode, directions, weather$0.01reference/catalog-maps.md
Computerun-code, screenshot$0.01-0.06reference/catalog-compute.md
Referencewolfram, translate$0.01-0.06reference/catalog-reference.md
Marketing & SEOseo-keywords$0.01-0.03reference/catalog-marketing.md
Niche Datasneaker-prices, property-value$0.01-0.04reference/catalog-data.md

Important: Async Capabilities

Some capabilities (video generation, music generation, deep research, website crawling) take time to complete. They return a job/task ID instead of immediate results. You MUST poll the corresponding status slug to get results.

Every poll costs money. Wait 10-15 seconds between polls to avoid wasting balance.

Example flow for music generation:

# 1. Start generation ($0.11)
clawcard agent pay music-gen '{"prompt":"upbeat lo-fi beat","customMode":false,"instrumental":true,"model":"V4"}' --json
# → returns { data: { data: { taskId: "abc123" } } }

# 2. Wait 15 seconds, then poll ($0.01 per poll)
clawcard agent pay music-status '{"taskId":"abc123"}' --json
# → returns status: "PENDING" or "TEXT_SUCCESS" or "FIRST_SUCCESS" with audioUrl

Status slugs for async capabilities:

  • music-gen → poll with music-status
  • lyrics-gen → poll with lyrics-status
  • image-gen-gpt, image-gen-nano, video-gen-* (StableStudio) → poll with stablestudio-status
  • stability-3d, stability-audio → poll with stability-status
  • replicate-run → poll with replicate-status
  • clado-deep-research → poll with clado-research-status
  • allium-sql → poll with allium-sql-status, then allium-sql-results
  • dune-sql → poll with dune-results
  • tako-deep-search → poll with tako-deep-status
  • crawl-site → poll with crawl-status
  • deep-research → poll with parallel-task-status

Browser Checkout (MCP)

For purchasing things on websites (domains, subscriptions, SaaS signups), use the clawcard-browser MCP server. It launches a browser with the ClawCard Pay extension.

Setup: If the browser MCP tools aren't available, help the user configure it:

  • Claude Code: clawcard mcp or claude mcp add clawcard-browser -e CLAWCARD_API_KEY=<key> -- npx @clawcard/browser
  • mcporter (OpenClaw, etc.): Add to ~/.mcporter/mcporter.json:
    "clawcard-browser": {
      "command": "npx",
      "args": ["@clawcard/browser"],
      "env": { "CLAWCARD_API_KEY": "<key>" }
    }
    
  • Cursor / VS Code: Add to .cursor/mcp.json or MCP config with same shape as above

Flow:

  1. Create a card: clawcard agent cards create --amount <cents> --type merchant_locked --memo "description" --json
  2. Launch browser: launch_browser tool with the checkout URL
  3. Navigate and fill non-payment fields using snapshot, click, fill
  4. Fill payment: fill_checkout tool with your card ID + billing details
  5. The extension fills card number, expiry, CVC directly — you never see the card number
  6. Review the page and submit

MCP Tools:

ToolWhat it does
launch_browserOpen browser with ClawCard Pay extension
navigateGo to a URL
snapshotGet page accessibility tree with @e1 refs
clickClick element by ref
fillType into field by ref
detect_checkoutCheck if page is a checkout (returns confidence + amount)
fill_checkoutFill card + billing fields securely (card details never reach the LLM)
screenshotCapture the page
close_browserClose session

Security: Card details (PAN, CVV) go directly from the server to the browser extension. The LLM never sees or handles card numbers. Only the last four digits are returned.

Tips

  • For API capabilities, use clawcard agent pay — it handles payment automatically from your balance.
  • For purchasing on websites, use the clawcard-browser MCP tools with a virtual card.
  • Default to merchant_locked cards. Only use single_use for one-time purchases.
  • NEVER silently pay for a subscription. Always warn the user first.
  • If you need a capability, search the catalog: clawcard agent catalog-search "<what you need>" --json
  • To add balance: clawcard billing topup

Comments

Markdown supported