Stripe
name: stripe
by codeninja23 · published 2026-03-22
$ claw add gh:codeninja23/codeninja23-native-stripe---
name: stripe
description: "Query and manage Stripe data via the Stripe API. Use when you need to list charges, customers, invoices, subscriptions, payment intents, refunds, products, or prices. Supports filtering, pagination, and creating/updating customers and refunds. Calls api.stripe.com directly with no third-party proxy."
metadata:
openclaw:
requires:
env:
- STRIPE_SECRET_KEY
bins:
- python3
primaryEnv: STRIPE_SECRET_KEY
files:
- "scripts/*"
---
# Stripe
Interact with your Stripe account directly via the Stripe API (`api.stripe.com`).
Setup (one-time)
1. Get your secret key from https://dashboard.stripe.com/apikeys
2. Set environment variable:
```
STRIPE_SECRET_KEY=sk_live_...
```
Use `sk_test_...` for test mode.
Queries
List recent charges
python3 /mnt/skills/user/stripe/scripts/stripe_query.py charges --limit 10List customers
python3 /mnt/skills/user/stripe/scripts/stripe_query.py customers --limit 20Search customers by email
python3 /mnt/skills/user/stripe/scripts/stripe_query.py customers --email user@example.comList subscriptions
python3 /mnt/skills/user/stripe/scripts/stripe_query.py subscriptions --limit 20List active subscriptions
python3 /mnt/skills/user/stripe/scripts/stripe_query.py subscriptions --status active --limit 20List invoices
python3 /mnt/skills/user/stripe/scripts/stripe_query.py invoices --limit 20List payment intents
python3 /mnt/skills/user/stripe/scripts/stripe_query.py payment_intents --limit 20List products
python3 /mnt/skills/user/stripe/scripts/stripe_query.py products --limit 20List prices
python3 /mnt/skills/user/stripe/scripts/stripe_query.py prices --limit 20List refunds
python3 /mnt/skills/user/stripe/scripts/stripe_query.py refunds --limit 20Get a specific object
python3 /mnt/skills/user/stripe/scripts/stripe_query.py get charges ch_abc123
python3 /mnt/skills/user/stripe/scripts/stripe_query.py get customers cus_abc123
python3 /mnt/skills/user/stripe/scripts/stripe_query.py get subscriptions sub_abc123Create a refund
python3 /mnt/skills/user/stripe/scripts/stripe_query.py create refunds --charge ch_abc123
python3 /mnt/skills/user/stripe/scripts/stripe_query.py create refunds --charge ch_abc123 --amount 1000Update a customer
python3 /mnt/skills/user/stripe/scripts/stripe_query.py update customers cus_abc123 --email new@example.com --name "New Name"Output
Formatted table for lists, JSON for single objects. Use `--json` flag for raw JSON on any command.
Resources
More tools from the same signal band
Order food/drinks (点餐) on an Android device paired as an OpenClaw node. Uses in-app menu and cart; add goods, view cart, submit order (demo, no real payment).
Sign plugins, rotate agent credentials without losing identity, and publicly attest to plugin behavior with verifiable claims and authenticated transfers.
The philosophical layer for AI agents. Maps behavior to Spinoza's 48 affects, calculates persistence scores, and generates geometric self-reports. Give your...