360 Secure SkillHub
360 安全技能中心

Routstr Skill

提供四个 shell 脚本,通过 curl 调用 Routstr API 检查账户余额与用量、创建闪电发票为账户充值、查询发票支付状态,并支持用 Cashu 代币充值;API 密钥等配置读取自 ~/.openclaw/openclaw.json。

sh1ftred
sh1ftred
热度 71.80
最近更新 2026-05-11 15:54:29
分类:自动化依赖:代码执行 / 读写文件 / 第三方 API应用场景:财务 / 自动化脚本 / API 集成 / 工作流

安装技能

复制下面的话术发给你的 Agent,它会通过 secure-skills 检索并安装该技能。

执行命令安装此 skill: npx secure-skills-cli add routstr-balance-management
Metadata
name
balance-management
description
Manage Routstr balance by checking balance, creating Lightning invoices for top-up, and checking invoice payment status
license
MIT
compatibility
opencode

What I do

  • Check current Routstr API balance (in sats and BTC)
  • Display usage statistics (total spent, total requests)
  • Create Lightning invoices for top-up payments
  • Check payment status of existing invoices
  • Top up balance using Cashu tokens

When to use me

Use this when you need to:

  • Check your current Routstr account balance
  • Top up your Routstr account by creating a Lightning invoice
  • Verify if a previously created invoice has been paid

How to use me

The shell scripts read API configuration from ~/.openclaw/openclaw.json:

  • check_balance.sh - Run with no arguments to display current balance and usage
  • create_invoice.sh <amount_sats> - Create invoice for specified amount in satoshis
  • invoice_status.sh <invoice_id> - Check payment status of an invoice
  • topup_cashu.sh <cashu_token> - Top up balance using a Cashu token

All amounts are displayed in both satoshis and BTC for convenience.