🎁 Get the FREE AI Skills Starter Guide β€” Subscribe β†’
BytesAgainBytesAgain
πŸ¦€ ClawHub

PayLobster

by @itsgustav

Agent payment infrastructure on Base. Trustless escrow, agent treasury, token swaps, cross-chain bridges, fiat on/off ramp, on-chain identity & reputation, s...

Versionv4.6.0
Downloads2,365
Stars⭐ 4
TERMINAL
clawhub install paylobster

πŸ“– About This Skill


name: paylobster description: Agent payment infrastructure on Base. Trustless escrow, agent treasury, token swaps, cross-chain bridges, fiat on/off ramp, on-chain identity & reputation, spending mandates, dispute resolution, streaming payments, credit scoring, cascading escrows, revenue sharing, compliance mandates, intent marketplace, and oracle verification. Use the hosted MCP server (paylobster.com/mcp/mcp), SDK (pay-lobster), CLI (@paylobster/cli), or REST API to register agents, create treasuries, swap tokens, bridge cross-chain, buy/sell crypto with fiat, create escrows, stream payments, manage disputes, and process USDC payments on Base mainnet.

PayLobster

The financial operating system for autonomous agents on Base L2. Agent treasuries, token swaps, cross-chain bridges, fiat on/off ramp, trustless escrow, streaming payments, on-chain reputation, oracle verification, credit scoring, dispute resolution, cascading escrows, revenue sharing, spending mandates, intent marketplace, compliance mandates, x402 HTTP-native payments, CDP Server Wallet v2 integration, Coinbase Spend Permissions, gasless Paymaster operations, and Firebase real-time events.

NEW: CDP Integration (Coinbase Developer Platform)

Server Wallet v2 (TEE-Secured)

import { getCdpClient } from '@/lib/cdp/client';
const cdp = getCdpClient();
const wallet = await cdp.evm.createAccount(); // TEE-secured, no keys to manage

x402 Protocol (HTTP-Native Payments)

Every PayLobster API is payable via HTTP 402:
# Discovery endpoint
curl https://paylobster.com/api/x402/discovery

Agent pays for service automatically

GET /api/v3/reputation?address=0x... β†’ 402 Payment Required (0.01 USDC) β†’ Agent pays via X-PAYMENT header β†’ Service executes

Spend Permissions

import { createSpendPermission } from '@/lib/cdp/permissions';
// Agent gets pre-approved spending within limits
await createSpendPermission(treasury, agent, 'USDC', '100', 1); // 100 USDC/day

Gasless Operations (Paymaster)

All PayLobster contract interactions can be gas-sponsored via CDP Paymaster.

Coinbase Onramp/Offramp

import { generateOnrampUrl } from '@/lib/cdp/onramp';
const url = await generateOnrampUrl(agentAddress, '100', 'USD'); // Fiat β†’ USDC

SIWA β€” Sign In With Agent

Trustless agent authentication built on ERC-8004 and ERC-8128. One open standard. No API keys. No shared secrets.

Verify an Agent

curl -X POST https://paylobster.com/api/siwa/verify \
  -H "Content-Type: application/json" \
  -d '{"message": "", "signature": "0x..."}'

Response includes full agent profile: reputation, trust tier, credit score, badge count, escrow history.

MCP Tools

  • siwa_verify β€” verify SIWA signature + get full agent profile
  • siwa_nonce β€” get fresh nonce for message signing
  • siwa_profile β€” lookup any agent's profile (no auth needed)
  • SDK

    import { createSIWAMessage, verifySIWAMessage } from 'pay-lobster';

    // Agent side: create and sign const message = createSIWAMessage({ address: '0x...', domain: 'myapp.com', nonce }); const signature = await wallet.signMessage(message);

    // Server side: verify and get profile const result = await verifySIWAMessage(message, signature); // β†’ { verified: true, agent: { reputation: 95, trustTier: 'Diamond', ... } }

    Why PayLobster SIWA?

    Other SIWA implementations: "Yes, this agent exists." PayLobster SIWA: "This agent exists, has 95 reputation, completed 200 escrows, Diamond status, and has never lost a dispute."

    Every SIWA auth carries the richest identity in the agent economy.

    Natural Language Payments

    Send payments with plain English β€” no structured API calls needed:

    "send 10 USDC to 0xABC"
    "escrow 50 USDC for 0xABC"
    "stream 0.001 USDC per second to 0xABC for 1 hour"
    "swap 50 USDC for ETH"
    "bridge 100 USDC to Ethereum"
    "split 100 USDC between 0xA (60%) and 0xB (40%)"
    

    Via MCP

    Use the natural_pay tool β€” it parses intent, returns unsigned transaction + confirmation:

    {
      "tool": "natural_pay",
      "input": { "instruction": "send 10 USDC to 0xABC" }
    }
    // β†’ { intent: { action: "transfer", amount: "10", token: "USDC", recipient: "0xABC" }, transaction: {...}, confirmation: "Send 10 USDC to 0xABC?" }
    

    Via API

    curl -X POST https://paylobster.com/api/v3/pay \
      -H "Content-Type: application/json" \
      -d '{"instruction": "send 10 USDC to 0xABC", "sender": "0x..."}'
    

    Via CLI

    paylobster pay "send 10 USDC to 0xABC"
    

    Supported verbs: send, pay, transfer, give, escrow, hold, lock, stream, swap, exchange, convert, bridge, split, share, divide, tip.

    Merchant Services

    Accept USDC payments like Stripe β€” charges, payment links, recurring subscriptions, and embeddable checkout widget:

    Register as Merchant

    # Via CLI
    paylobster merchant register --name "MyBusiness" --website "https://example.com" --wallet 0xABC
    

    β†’ Returns API key (pk_live_...) and secret (sk_live_...)

    Create Charges (Stripe-style)

    # Via API
    curl -X POST https://paylobster.com/api/v1/charges \
      -H "Authorization: Bearer sk_live_YOUR_SECRET" \
      -H "Content-Type: application/json" \
      -d '{"amount": 25, "currency": "USDC", "description": "Code review service"}'
    

    Recurring Subscriptions

    curl -X POST https://paylobster.com/api/v1/subscriptions \
      -H "Authorization: Bearer sk_live_YOUR_SECRET" \
      -H "Content-Type: application/json" \
      -d '{"plan_name": "Pro Plan", "amount": 10, "interval": "monthly", "customer_wallet": "0x..."}'
    

    Embeddable Checkout Widget

    Drop a payment widget on any website: