StripeMeter for Openclaw

A Stripe-native usage metering system that ensures precise totals for consumption-based billing models.

geminimir
v0.1.0
Feb 27, 2026
0
895
0

Install & Download

1. ClawHub CLI

The fastest way to install a skill directly from the registry.

npx clawhub@latest install stripemeter

2. Manual Installation

Copy the skill folder to one of these locations

Global
~/.openclaw/skills/
Workspace
<project>/skills/

Priority: Workspace > Local > Bundled

3. Prompt Installation

Copy this prompt to OpenClaw to install it automatically.

Help me install stripemeter using Clawhub. If Clawhub is not installed, install it first (npm i -g clawhub).

Prefer to download?

Get the raw skill files in a ZIP archive.

What is StripeMeter?

StripeMeter is a high-performance, developer-centric tool designed to bridge the gap between application usage and Stripe billing. By utilizing an immutable ledger for events and pre-computed aggregations, it provides a robust solution for tracking API calls, seats, or any metered metric without the risk of double-counting or data loss. As a core part of the Openclaw Skills ecosystem, it simplifies complex billing workflows like handling late events and managing billing drift through a sophisticated watermark system.

StripeMeter Use Cases

  • Implementing consumption-based pricing for SaaS platforms.
  • Tracking API call volumes or seat-based usage in real-time.
  • Synchronizing usage deltas to Stripe while handling network retries.
  • Simulating invoice costs based on tiered pricing models before billing.

How StripeMeter Works

  1. Ingest usage events through the REST API or SDKs with unique idempotency keys to prevent double counting.
  2. Events are recorded in an immutable ledger to ensure data integrity and auditability.
  3. Real-time counters aggregate metrics such as sum, max, or last-value based on the tenant and customer.
  4. Watermarks manage late-arriving data by triggering re-aggregation within a 48-hour window.
  5. The system calculates usage deltas and pushes only the necessary updates to Stripe subscription items.

StripeMeter Setup

To begin using this skill from the Openclaw Skills collection, follow these installation steps:

git clone https://github.com/geminimir/stripemeter && cd stripemeter
cp .env.example .env && docker compose up -d && pnpm -r build
pnpm db:migrate && pnpm dev

Ensure your STRIPE_SECRET_KEY and database credentials are configured in the .env file.

StripeMeter Data Schema & Taxonomy

The system organizes data into several logical layers for maximum reliability:

Component Description
Events Immutable ledger storing tenantId, metric, customerRef, quantity, and timestamps.
Counters Materialized aggregations (sum/max/last) updated in near-real-time.
Watermarks Temporal markers used to handle late-event re-aggregation windows.
Delta Push Metadata tracking the difference between locally metered usage and what has been pushed to Stripe.

StripeMeter Advanced Features

  • Shadow Mode: Safely test Stripe billing logic without impacting live customer invoices.
  • Pricing Simulator: Advanced calculator for simulating costs against tiered or volume-based pricing models.
  • Reconciliation Engine: Built-in drift detection to identify discrepancies between local totals and Stripe data.
  • SDK Support: Native Node.js and Python clients for seamless integration into existing application stacks.

SKILL.md


Loading

Related Openclaw Skills

METADATA

Github Stars: 0
forks: 0

Featured*