Consolidated revenue intelligence across your Stripe accounts. Pulls charges, refunds, subscriptions, and MRR in a single command with period-over-period comparison, goal tracking, and anomaly detection.
~/.config/stripe/api_key```bash
cp {baseDir}/references/config-template.json ~/.config/revenue-dashboard/config.json
```
~/.config/revenue-dashboard/config.json with your Stripe account IDs and revenue goals```bash
python3 {baseDir}/scripts/revenue.py --period today
```
python3 {baseDir}/scripts/revenue.py --period <period> [--format <format>]
Periods: today, yesterday, week, month, quarter, year, all
Formats: json (default), markdown, summary
python3 {baseDir}/scripts/revenue.py --period month --goals
Shows progress toward your monthly and annual revenue targets defined in config.
python3 {baseDir}/scripts/mrr.py [--breakdown]
Pulls active subscriptions across all accounts. With --breakdown, groups by plan/price.
python3 {baseDir}/scripts/revenue.py --period today --anomalies
Flags unusual activity: revenue spikes/drops >2x vs 7-day average, refund rate >10%, or zero-revenue days.
Run this sequence for a complete daily close:
# 1. Yesterday's final numbers
python3 {baseDir}/scripts/revenue.py --period yesterday --format markdown --goals --anomalies
# 2. Monthly trend context
python3 {baseDir}/scripts/revenue.py --period month --format summary
# 3. Current MRR snapshot
python3 {baseDir}/scripts/mrr.py --breakdown
Write findings to your daily notes. Propose next-day actions based on what the numbers show.
{
"name": "nightly-revenue",
"schedule": {"kind": "cron", "expr": "0 3 * * *", "tz": "America/Los_Angeles"},
"sessionTarget": "main",
"payload": {
"kind": "systemEvent",
"text": "Run the nightly revenue review using the revenue-dashboard skill. Pull yesterday's revenue, check goals, flag anomalies, and propose tomorrow's plan."
}
}
See references/config-template.json for the full config schema. Key fields:
{
"accounts": {
"my_saas": "acct_XXXXXXXXXXXX",
"my_shop": "acct_YYYYYYYYYYYY"
},
"goals": {
"monthly": 10000,
"annual": 120000
},
"currency": "usd",
"anomaly_threshold": 2.0
}
Add as many Stripe accounts as you operate. The dashboard consolidates everything but preserves per-account detail so you can see which products drive growth. Common setups:
共 1 个版本