revenue-tracker

revenue-tracker is an agent for Claude Code from Lifecycle-Innovations-Limited/claude-ops. It costs 16 tokens per session (2,997 once invoked), scanned A, original, MIT.

A read-only agent that collects a snapshot of business revenue, costs, and subscription credits. It uses Stripe for SaaS payments, RevenueCat for mobile subscriptions, and AWS Cost Explorer for cloud costs when those connections are configured.

In plain words
What is it for?
Use it to review recent and month-to-date revenue, trailing 30-day revenue, subscription income, AWS costs, and related billing or credit data.
Why use it?
It gathers income and spending figures in one place and uses a registry fallback when the revenue services are unavailable.

Agent for Claude Code

Written for Claude Code: effort in frontmatter. Also seen: model in frontmatter; positional $N argument.

Runs only inside its plugin — its command needs a path that Claude Code sets for a plugin’s own hooks and for nothing else. Install the plugin, not this.

Part of the ops plugin — 66 skills, 21 agents, 5 hooks, 1 MCP server shipped together

Good fit Use it to review recent and month-to-date revenue, trailing 30-day revenue, subscription income, AWS costs, and related billing or credit data.

Compare 6 agents from other repositories ↓
Install

Getting it into your agent

This one installs as part of its plugin. Adding the marketplace and installing the plugin brings it with everything else the plugin ships.

Claude Code
/plugin marketplace add Lifecycle-Innovations-Limited/claude-ops
Claude Code
/plugin install ops

Made for: Claude Code.

Or install ops, the plugin that ships this one along with the rest of its 66 skills, 21 agents, 5 hooks, 1 MCP server.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for revenue-tracker

README.md
[![agentmods](https://agentmods.dev/badge/agents/lifecycle-innovations-limited/claude-ops/revenue-tracker/github.svg)](https://agentmods.dev/agents/lifecycle-innovations-limited/claude-ops/revenue-tracker)
Your own site
<a href="https://agentmods.dev/agents/lifecycle-innovations-limited/claude-ops/revenue-tracker"><img src="https://agentmods.dev/badge/agents/lifecycle-innovations-limited/claude-ops/revenue-tracker/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for revenue-tracker

Your own site · 80×15
<a href="https://agentmods.dev/agents/lifecycle-innovations-limited/claude-ops/revenue-tracker"><img src="https://agentmods.dev/badge/agents/lifecycle-innovations-limited/claude-ops/revenue-tracker.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 16 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 2,997 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 1 finding. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00016 $0.02997
Opus 5 $0.00008 $0.01499
Sonnet 5 $0.00003 $0.00599
Haiku 4.5 $0.00002 $0.00300

Measured 10d ago against content hash 3702cd7b73d4, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-10, from the pricing page.

Security

Grade A, and why

revenue-tracker scanned grade A with 1 finding against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 10d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Makes network callslowCapability

Not a fault in itself. Listed so you know the mod talks to something, and to what.

PAGE=$(curl -s "https://api.stripe.com/v1/charges?$PARAMS" \
claude-ops/agents/revenue-tracker.md · 290 lines

How it starts

The opening of the file, as written. The whole thing — 290 lines — stays where its author put it; the contents beside it link to each section on GitHub.

REVENUE TRACKER AGENT

Pull all financial data (revenue + costs) in parallel and return a structured snapshot. Read-only.

Task

Run all queries in parallel. Revenue comes from Stripe (primary SaaS source) and RevenueCat (primary mobile subscription source). Costs come from AWS Cost Explorer. Fall back to registry.json only when both revenue APIs are unconfigured.


Revenue — Stripe (SaaS)

Only run if STRIPE_SECRET_KEY is set. If not, emit stripe: not_configured and skip this block.

Recent charges (for MTD + trailing-30d gross)

# Paginate through all charges using has_more + starting_after loop
AFTER=""
while true; do
  PARAMS="limit=100${AFTER:+&starting_after=$AFTER}"
  PAGE=$(curl -s "https://api.stripe.com/v1/charges?$PARAMS" \
    -u "$STRIPE_SECRET_KEY:" 2>/dev/null)
  echo "$PAGE"
  HAS_MORE=$(echo "$PAGE" | jq -r '.has_more')
  [ "$HAS_MORE" = "true" ] || break
  AFTER=$(echo "$PAGE" | jq -r '.data[-1].id')
done

Collect all pages. Filter data[].created >= first-of-month for MTD gross; filter data[].created >= now - 30d for trailing-30d gross. Sum amount in cents, divide by 100. Only count status=succeeded and paid=true; subtract amount_refunded.

Active subscriptions (MRR)

# Paginate through all active subscriptions using has_more + starting_after loop
AFTER=""
while true; do
  PARAMS="status=active&limit=100${AFTER:+&starting_after=$AFTER}"
  PAGE=$(curl -s "https://api.stripe.com/v1/subscriptions?$PARAMS" \
    -u "$STRIPE_SECRET_KEY:" 2>/dev/null)
  echo "$PAGE"
  HAS_MORE=$(echo "$PAGE" | jq -r '.has_more')
  [ "$HAS_MORE" = "true" ] || break
  AFTER=$(echo "$PAGE" | jq -r '.data[-1].id')
done

MRR = sum over all pages: data[].items.data[].price.unit_amount * items.data[].quantity, normalised to monthly (divide by 12 for yearly, by 3 for quarterly, multiply by appropriate factor for weekly/daily). Convert cents → dollars.

Balance (pending + available)

curl -s https://api.stripe.com/v1/balance -u "$STRIPE_SECRET_KEY:" 2>/dev/null

Read the full file on GitHub · 290 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 10d ago First seen · 290 lines · 16 tokens per session scan A 3702cd7b73d4

Subscribe to this mod's changes

revenue-tracker is an agent published in the GitHub repository Lifecycle-Innovations-Limited/claude-ops (187 stars, last pushed today), licensed MIT. It adds 16 tokens to every session and 2,997 once invoked, about $0.0001 per session on Opus 5. A static security scan graded it A with 1 finding (makes network calls). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.

Related

Other agents, from other repositories

accounting-reviewer

Bookkeeping / general-ledger / financial-close specialist pre-implementation reviewer for fintech and enterprise-saas archetypes. Outputs threat model TM-accounting-{slug}.md and signs off Critical/High mitigations before senior-dev claims tasks.

avelikiy/great_cto · 52 tokens

tax-reviewer

Tax preparation / filing specialist pre-implementation reviewer for the fintech archetype. Outputs threat model TM-tax-{slug}.md and signs off Critical/High mitigations before senior-dev claims tasks.

avelikiy/great_cto · 42 tokens

performance-engineer

Performance specialist. Owns SLO/SLA budget design, load test execution (k6/Locust/Gatling), latency regression analysis, flame graph interpretation, and capacity planning. Runs after senior-dev, before QA. Writes docs/performance/PERF-{slug}.md. Activated when performance-sla is set in PROJECT.md, or archetype is…

avelikiy/great_cto · 83 tokens

portfolio-manager

Final trading decision maker with paper trading execution. Use after gathering analysis from other agents to make EXECUTE/WAIT/REJECT decisions.

hugoguerrap/crypto-claude-desk · 30 tokens

ach

Finance and operations. Builds systems from nothing, documents everything, accounts for every dollar.

punt-labs/prfaq · 19 tokens

merit-invoice-creator

Create a Merit Aktiva sales invoice from a natural-language description. Resolves the customer, builds the line rows and per-rate VAT totals, shows the payload, and creates it on the user's explicit approval. Use when: "create invoice", "invoice for ", "bill ", "raise a sales invoice", "send an invoice to". create an…

Elnora-AI/elnora-merit-aktiva · 125 tokens