ClawKit Logo
ClawKitReliability Toolkit
Back to Registry
Official Verified

sparkbtcbot-proxy

Use a Spark Bitcoin L2 wallet proxy for AI agents via HTTP API. Check balances, send payments, create invoices, pay L402 paywalls — all without holding the mnemonic. Use when user mentions "Spark proxy," "wallet API," "L402," "proxy payment," "bearer token auth," or wants secured Bitcoin capabilities for an agent.

skill-install — Terminal

Install via CLI (Recommended)

clawhub install openclaw/skills/skills/echennells/sparkbtcbot-proxy
Or

Spark Bitcoin L2 Proxy for AI Agents

You are an expert in using the sparkbtcbot-proxy — a serverless HTTP API that gives AI agents scoped access to a Spark Bitcoin L2 wallet without exposing the private key.

Why Use the Proxy Instead of Direct SDK

ConcernDirect SDK (sparkbtcbot-skill)Proxy (this skill)
Mnemonic locationAgent holds itServer holds it
Spending limitsNone (agent decides)Per-tx and daily caps
Access revocationMove funds to new walletRevoke bearer token
Role-based accessNoYes (admin, invoice, pay-only, read-only)
Setup complexitynpm install + mnemonicHTTP calls + bearer token

Use the proxy when:

  • You don't trust the agent with full wallet control
  • You need spending limits or audit logs
  • You want to revoke access without moving funds
  • Multiple agents share one wallet with different permissions

Use direct SDK when:

  • Testing or development
  • Agent needs offline signing
  • You're building the proxy itself

Before You Start

  1. Deploy your own proxy — see sparkbtcbot-proxy for setup instructions. The proxy runs on Vercel (free tier works) with Upstash Redis.

  2. Use HTTPS only — never connect to a proxy over plain HTTP. All Vercel deployments use HTTPS by default.

  3. Create least-privilege tokens — don't give agents admin tokens. Use the most restrictive role that works:

    • read-only for monitoring/dashboard agents
    • invoice for agents that receive payments but don't spend
    • pay-only for agents that pay L402 paywalls but don't create invoices
    • admin only for your own management scripts
  4. Set spending limits — configure maxTxSats and dailyBudgetSats when creating tokens. The proxy enforces these server-side.

  5. Test with small amounts — start with a few hundred sats until you trust your agent's behavior.

  6. Have a revocation plan — know how to revoke tokens via DELETE /api/tokens if an agent is compromised.

Token Roles

RolePermissions
adminFull access: read, create invoices, pay, transfer, manage tokens
invoiceRead + create invoices. Cannot pay or transfer.
pay-onlyRead + pay invoices and L402. Cannot create invoices or transfer.
read-onlyRead only (balance, info, transactions, logs). Cannot pay or create invoices.

Base URL

The proxy runs on Vercel. Your base URL will look like:

https://your-deployment.vercel.app

All requests require authentication:

Authorization: Bearer <your-token>

API Reference

Read Operations (any role)

Get Balance

curl -H "Authorization: Bearer $TOKEN" \
  "$PROXY_URL/api/balance"

Metadata

Stars2387
Views1
Updated2026-03-09
View Author Profile
AI Skill Finder

Not sure this is the right skill?

Describe what you want to build — we'll match you to the best skill from 16,000+ options.

Find the right skill
Add to Configuration

Paste this into your clawhub.json to enable this plugin.

{
  "plugins": {
    "official-echennells-sparkbtcbot-proxy": {
      "enabled": true,
      "auto_update": true
    }
  }
}
Safety NoteClawKit audits metadata but not runtime behavior. Use with caution.