skills$openclaw/masumi-payments
sarthib79.4k

by sarthib7

masumi-payments – OpenClaw Skill

masumi-payments is an OpenClaw Skills integration for coding workflows. Enable AI agents to accept Cardano blockchain payments through the decentralized Masumi network by deploying their own payment service

9.4k stars9.9k forksSecurity L1
Updated Feb 7, 2026Created Feb 7, 2026coding

Skill Snapshot

namemasumi-payments
descriptionEnable AI agents to accept Cardano blockchain payments through the decentralized Masumi network by deploying their own payment service OpenClaw Skills integration.
ownersarthib7
repositorysarthib7/masumi
languageMarkdown
licenseMIT
topics
securityL1
installopenclaw add @sarthib7/masumi
last updatedFeb 7, 2026

Maintainer

sarthib7

sarthib7

Maintains masumi-payments in the OpenClaw Skills directory.

View GitHub profile
File Explorer
25 files
.
src
managers
payment.ts
15.9 KB
registry.ts
15.6 KB
services
auto-provision.ts
10.5 KB
payment-service-installer.ts
6.2 KB
tools
index.ts
15.6 KB
manifest.json
8.7 KB
types
canonicaljson.d.ts
101 B
payment.ts
2.2 KB
utils
api-client.ts
5.0 KB
credential-store.ts
6.9 KB
encryption.ts
3.6 KB
hashing.ts
2.0 KB
wallet-generator.ts
5.6 KB
index.ts
1.6 KB
_meta.json
444 B
package.json
1.0 KB
plugin.json
3.3 KB
SKILL.md
6.7 KB
tsconfig.json
180 B
SKILL.md

name: masumi-payments description: Enable AI agents to accept Cardano blockchain payments through the decentralized Masumi network by deploying their own payment service homepage: https://docs.masumi.network user-invocable: true metadata: {"openclaw": {"requires": {"bins": ["node", "npm", "git"], "env": ["MASUMI_PAYMENT_SERVICE_URL"]}, "primaryEnv": "MASUMI_PAYMENT_SERVICE_URL", "emoji": "💰"}}

Masumi Payments Skill for OpenClaw

Enable your AI agent to accept blockchain payments and join the decentralized agent economy

Important: What AI Agents CAN vs CANNOT Do

AI Agents CAN:

  • Install masumi-payment-service locally using masumi_install_payment_service
  • Start the payment service using masumi_start_payment_service
  • Generate admin API keys using masumi_generate_api_key
  • Generate Cardano wallets automatically
  • Configure environment variables (.env file)
  • Register agents on the blockchain
  • Make API calls to payment service
  • Test payment flows

AI Agents CANNOT (human must do):

AI Agent: Ask TWO questions upfront:

  1. "Do you already have masumi-payment-service running? If yes, what's YOUR service URL?"
    • User should provide: http://localhost:3000/api/v1 (local) or https://their-service.railway.app/api/v1 (Railway)
    • CRITICAL: There is NO centralized payment.masumi.network - they run their own service
  2. "If not, do you want me to help you set it up locally?"

What is Masumi?

Masumi is a decentralized protocol for AI agent payments and identity. It lets agents collaborate seamlessly and monetize their services efficiently on the Cardano blockchain.

CRITICAL: Masumi is NOT a centralized service.

  • YOU run your own payment service node (locally or on Railway)
  • YOU control your own wallets (self-custodied)
  • YOU are your own admin (no centralized authority)
  • There is NO payment.masumi.network service - that's just documentation examples

Architecture

IMPORTANT: You run your OWN Masumi Node. There is NO centralized service.

The Masumi Node consists of two primary services that YOU deploy and run:

  1. Payment Service (Required) - YOU run this yourself

    • Deploy locally (http://localhost:3000) or on Railway (https://your-service.railway.app)
    • Wallet management (YOUR wallets)
    • Transaction processing (A2A and H2A)
    • Token swapping (stablecoins ↔ ADA)
    • Admin interface + REST APIs (YOUR admin API key)
  2. Registry Service (Optional) - For blockchain querying

    • Usually runs alongside payment service
    • Agent discovery
    • Node lookup
    • No transactions, read-only

Quick Start

Option 1: Install Payment Service Automatically

Use the built-in installer tools:

// Step 1: Install payment service
const installResult = await masumi_install_payment_service({
  network: 'Preprod'
});

// Step 2: Start service
await masumi_start_payment_service({
  installPath: installResult.installPath,
  serviceUrl: installResult.serviceUrl
});

// Step 3: Generate API key
const apiKeyResult = await masumi_generate_api_key({
  serviceUrl: installResult.serviceUrl
});

// Step 4: Enable Masumi (auto-provisions wallet and registers agent)
await masumi_enable({
  installService: true, // Automatically installs if not configured
  agentName: 'My Agent',
  pricingTier: 'free'
});

Option 2: Manual Setup

  1. Deploy YOUR Payment Service:

  2. Set Environment Variables:

    export MASUMI_PAYMENT_SERVICE_URL=http://localhost:3000/api/v1
    export MASUMI_PAYMENT_API_KEY=your-admin-api-key
    export MASUMI_NETWORK=Preprod
    
  3. Enable Masumi:

    await masumi_enable({
      agentName: 'My Agent',
      pricingTier: 'free'
    });
    

Tools

Installation Tools

  • masumi_install_payment_service: Clone and install masumi-payment-service locally
  • masumi_start_payment_service: Start the payment service and check status
  • masumi_generate_api_key: Generate admin API key via payment service API

Payment Tools

  • masumi_enable: Full setup - install service, generate API key, register agent
  • masumi_create_payment: Create payment request
  • masumi_check_payment: Check payment status
  • masumi_complete_payment: Submit result and complete payment
  • masumi_wallet_balance: Get wallet balance
  • masumi_list_payments: List payment history

Registry Tools

  • masumi_register_agent: Register agent in Masumi registry
  • masumi_search_agents: Search for other agents
  • masumi_get_agent: Get agent details

API Reference (Quick Reference)

Payment Endpoints

MethodEndpointPurposeNotes
POST/paymentCreate payment requestReturns blockchainIdentifier
POST/payment/resolve-blockchain-identifierCheck payment statusUse blockchainIdentifier as body param
POST/payment/submit-resultSubmit resultUse submitResultHash (not resultHash)
GET/paymentList paymentsReturns data.Payments array
POST/payment/authorize-refundAuthorize refundAdmin only

Registry Endpoints

MethodEndpointPurposeNotes
POST/registryRegister agentReturns data object
GET/registry/List/search agentsReturns data.Assets array
GET/registry/Get agentFilter by agentIdentifier query param

Important Notes:

  • All endpoints require /api/v1 prefix if service URL includes it
  • Response format: { status: string, data: T } - extract data property
  • Use submitResultHash parameter (not resultHash) for submit-result endpoint

Configuration

Required:

  • MASUMI_PAYMENT_SERVICE_URL: YOUR self-hosted payment service URL

Optional:

  • MASUMI_PAYMENT_API_KEY: Admin API key
  • MASUMI_NETWORK: "Preprod" or "Mainnet" (default: "Preprod")
  • MASUMI_REGISTRY_SERVICE_URL: Registry service URL (defaults to payment service URL)

Examples

See examples/payment-manager.ts for complete examples.

Resources

README.md

No README available.

Permissions & Security

Security level L1: Low-risk skills with minimal permissions. Review inputs and outputs before running in production.

Requirements

  • OpenClaw CLI installed and configured.
  • Language: Markdown
  • License: MIT
  • Topics:

Configuration

**Required:** - `MASUMI_PAYMENT_SERVICE_URL`: YOUR self-hosted payment service URL **Optional:** - `MASUMI_PAYMENT_API_KEY`: Admin API key - `MASUMI_NETWORK`: "Preprod" or "Mainnet" (default: "Preprod") - `MASUMI_REGISTRY_SERVICE_URL`: Registry service URL (defaults to payment service URL)

FAQ

How do I install masumi-payments?

Run openclaw add @sarthib7/masumi in your terminal. This installs masumi-payments into your OpenClaw Skills catalog.

Does this skill run locally or in the cloud?

OpenClaw Skills execute locally by default. Review the SKILL.md and permissions before running any skill.

Where can I verify the source code?

The source repository is available at https://github.com/openclaw/skills/tree/main/skills/sarthib7/masumi. Review commits and README documentation before installing.