Installation
pip install stripe-inspector
CLI Usage
# Inspect a key (all modules)
stripe-inspector inspect sk_test_xxxx
# JSON output
stripe-inspector inspect sk_test_xxxx --output json
# Generate HTML report
stripe-inspector inspect sk_test_xxxx --report findings.html
# Deep scan (fetch all pages)
stripe-inspector inspect sk_test_xxxx --deep
# Specific modules only
stripe-inspector inspect sk_test_xxxx --modules account,customers,charges
# Batch scan multiple keys
stripe-inspector batch keys.txt --report-dir ./reports
Web UI
# Start local server
stripe-inspector serve
# Custom port with auth
stripe-inspector serve --port 9000 --token mysecret
Modules (17)
account, balance, customers, charges, payment_intents, products, payouts, subscriptions, invoices, webhooks, events, connected, disputes, refunds, balance_transactions, coupons, permission_scan
Key Types Supported
| Prefix | Type | Risk |
sk_test_ | Secret test | Low |
sk_live_ | Secret live | High |
rk_test_ | Restricted test | Low |
rk_live_ | Restricted live | Medium |
Output Formats
- Table — colored terminal tables (default)
- JSON — pipe to jq, scripts, etc.
- HTML Report — standalone file for sharing
- PDF Report —
pip install stripe-inspector[pdf]