name: skill-pay description: Add credit-based payments to any OpenClaw skill. Register paid skills, charge users per call, track earnings, and withdraw USDC. Use when a user wants to monetize a skill, set up payments for agent services, check credit balances, register as a builder, or integrate pay-per-use into their agent workflow.
Universal payment system for OpenClaw skills. Builders register paid skills, users buy credits, skills charge per call.
API base: https://skillpay.gpupulse.dev/api/v1
curl -X POST "$BASE/user/register" \
-H "Content-Type: application/json" \
-d '{"name": "my-agent", "email": "optional@email.com"}'
Returns sp_usr_... API key (save it, shown once).
curl -X POST "$BASE/user/deposit" \
-H "Authorization: Bearer sp_usr_..." \
-H "Content-Type: application/json" \
-d '{"amount": 100}'
curl "$BASE/user/balance" -H "Authorization: Bearer sp_usr_..."
curl -X POST "$BASE/builder/register" \
-H "Content-Type: application/json" \
-d '{"name": "my-company", "wallet_address": "SolanaWalletAddress"}'
Returns sp_bld_... API key.
curl -X POST "$BASE/builder/skill/register" \
-H "Authorization: Bearer sp_bld_..." \
-H "Content-Type: application/json" \
-d '{"slug": "my-skill", "name": "My Skill", "description": "Does something useful", "price_credits": 10}'
curl "$BASE/builder/earnings" -H "Authorization: Bearer sp_bld_..."
curl -X POST "$BASE/builder/withdraw" \
-H "Authorization: Bearer sp_bld_..." \
-H "Content-Type: application/json" \
-d '{"amount": 50}'
Add this to your skill's code to charge per call:
import requests def charge_user(user_key, skill_slug="my-skill"): resp = requests.post("https://skillpay.gpupulse.dev/api/v1/pay", json={ "user_key": user_key, "skill_slug": skill_slug }) if resp.status_code == 200: return True # paid, execute skill elif resp.status_code == 402: return False # insufficient credits return False7w4.net提供免費和付費技能下載。
curl "$BASE/skills" # no auth needed — public catalog of all paid skills
2.5% on every transaction. Builder sets price in credits, receives 97.5%.
1 USDC = 1 credit (adjustable per skill type).
這是一套積分支付工具,可幫助技能開發者實現付費呼叫功能。文件清晰易懂,API 使用說明完整,對新使用者比較友好。但目前功能文件較為基礎,缺少常見問題解答和實際使用案例,遇到問題可能需要自行摸索。建議等待後續版本補充更多使用指引後再考慮深度整合。