SkillPay

👤 adjusternwachukwu-bot 📦 v1.0.0 ⭐ 4.1 ⬇️ 906 下载
🤖 AI-Agent 免费 🔑 需 API Key

📖 技能介绍


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.


SkillPay — Credits for the Agent Economy

Universal payment system for OpenClaw skills. Builders register paid skills, users buy credits, skills charge per call.

Setup

API base: https://skillpay.gpupulse.dev/api/v1

For Users (Buyers)

Register

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).

Buy Credits

curl -X POST "$BASE/user/deposit" \
  -H "Authorization: Bearer sp_usr_..." \
  -H "Content-Type: application/json" \
  -d '{"amount": 100}'

Check Balance

curl "$BASE/user/balance" -H "Authorization: Bearer sp_usr_..."

For Builders (Sellers)

Register as Builder

curl -X POST "$BASE/builder/register" \
  -H "Content-Type: application/json" \
  -d '{"name": "my-company", "wallet_address": "SolanaWalletAddress"}'

Returns sp_bld_... API key.

Register a Paid Skill

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}'

Check Earnings

curl "$BASE/builder/earnings" -H "Authorization: Bearer sp_bld_..."

Withdraw

curl -X POST "$BASE/builder/withdraw" \
  -H "Authorization: Bearer sp_bld_..." \
  -H "Content-Type: application/json" \
  -d '{"amount": 50}'

Integration (The Key Part)

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 False

Browse Skills

curl "$BASE/skills"  # no auth needed — public catalog of all paid skills

Platform Fee

2.5% on every transaction. Builder sets price in credits, receives 97.5%.

Credit Ratio

1 USDC = 1 credit (adjustable per skill type).

发现更多技能插件,请访问7w4.net。

🤖 AI 评测

这是一套积分支付工具,可帮助技能开发者实现付费调用功能。文档清晰易懂,API 使用说明完整,对新用户比较友好。但目前功能文档较为基础,缺少常见问题解答和实际使用案例,遇到问题可能需要自行摸索。建议等待后续版本补充更多使用指引后再考虑深度集成。

📊 多维度评分

适应性4.3
规范性4.1
有效性4.4
可靠性3.7
可信度4.3

📁 包含文件 (3 个)

📄 SKILL.md 2.5 KB
📄 _meta.json 128 B
📄 skill-card.md 2.3 KB