LaunchKit · 2026
Back to Skills

sparkbtcbot-proxy-deploy

Deploy a serverless Spark Bitcoin L2 proxy on Vercel with spending limits, auth, and Redis logging.

0
424 downloads
by @echennells

Setup & Installation

openclaw skills install @echennells/sparkbtcbot-proxy-deploy

Or with the ClawHub CLI, for registry-managed skill folders outside a full OpenClaw workspace:

npx clawhub install sparkbtcbot-proxy-deploy

What This Skill Does

Deploys a serverless middleware that wraps the Spark Bitcoin L2 SDK behind authenticated REST endpoints on Vercel. Handles role-based token auth, per-transaction and daily spending caps, and activity logging to Redis. Gives AI agents scoped wallet access without exposing the mnemonic.

Running the Spark SDK directly in an agent exposes the wallet mnemonic; this proxy isolates credentials server-side while giving agents only the permissions they need.

When to use it

  • Set up a new Spark Bitcoin proxy on Vercel
  • Configure spending limits for an AI agent's wallet access
  • Create invoice-only tokens for merchant bots
  • Rotate the admin fallback auth token
  • Pay L402 Lightning paywalls automatically via an agent

Example Workflow

Here's how your AI assistant might use this skill in practice.

INPUT

User asks: deploy a Spark proxy with a 10,000 sat per-transaction limit for my trading bot

AGENT
  1. 1Clone the sparkbtcbot-proxy repo and run npm install
  2. 2Create an Upstash Redis database via the Upstash management API using the user's email and API key
  3. 3Generate a BIP39 mnemonic and a random API_AUTH_TOKEN
  4. 4Deploy to Vercel with npx vercel --prod and set all 7 required environment variables via the Vercel REST API
  5. 5Test the deployment with a balance check and create an invoice-scoped token for the trading bot
OUTPUT

A live Vercel URL exposing authenticated REST endpoints with a 10,000 sat transaction cap and Redis activity logging

Requirements

Accounts, API keys, or tools you or your AI assistant may need to set up while using this skill.

Vercel accountUpstash account email and API key from console.upstash.com/account/apiBIP39 mnemonic for the Spark wallet (can be generated during setup)