metronome

metronome is a skill for Claude Code, Codex from stripe/ai. It costs 184 tokens per session (2,943 once invoked), scanned A, original, MIT.

A guide for integrating Metronome, a service for measuring product usage and turning it into contracts, charges, and invoices.

In plain words
What is it for?
It helps design integrations for usage events, rate cards, contracts, prepaid or postpaid credits, invoice finalization, and Stripe billing.
Why use it?
It clarifies how to send usage, define billable measurements, manage pricing and credits, handle invoices, and synchronize invoices with Stripe.

Skill for Claude CodeCodex ✓ vendor

Written for no agent in particular: nothing here depends on one.

Good fit It helps design integrations for usage events, rate cards, contracts, prepaid or postpaid credits, invoice finalization, and Stripe billing.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/stripe/ai/metronome
About the project

Stripe AI is a collection of SDKs, tools, an MCP server, and agent skills for building AI products and businesses with Stripe's billing infrastructure. Developers use it to connect Stripe payments and metering to language models and agent frameworks, while the catalogue entries provide Stripe-specific skills, commands, plugins, and agent integrations.

stripe/ai · 2,101 stars · on GitHub · docs.stripe.com

Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add stripe/ai --skill metronome
Clone the repo
git clone --depth 1 https://github.com/stripe/ai

Made for: Claude Code, Codex.

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 metronome

README.md
[![agentmods](https://agentmods.dev/badge/skills/stripe/ai/metronome/github.svg)](https://agentmods.dev/skills/stripe/ai/metronome)
Your own site
<a href="https://agentmods.dev/skills/stripe/ai/metronome"><img src="https://agentmods.dev/badge/skills/stripe/ai/metronome/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 metronome

Your own site · 80×15
<a href="https://agentmods.dev/skills/stripe/ai/metronome"><img src="https://agentmods.dev/badge/skills/stripe/ai/metronome.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 184 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 2,943 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe. Third-party audits
  • Socket pass 24 Oct 2026
  • Snyk warn 20 Nov 2026
How audits are shown
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.00184 $0.02943
Opus 5.5 $0.00074 $0.01177
Sonnet 5.5 $0.00037 $0.00589
Haiku 4.5 $0.00018 $0.00294

Measured 1mo ago against content hash 1aa0b126bd9e, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

metronome scanned grade A with 0 findings 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 1mo 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.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

Origin

Copies of this mod

1 near-identical copy found in the catalogue:

  • metronome — 100% identical, 24 lines differ
providers/agent-plugins/plugin/skills/metronome/SKILL.md · 79 lines

How it starts

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

Metronome API base: https://api.metronome.com. Authenticate with a Bearer token in the Authorization header. Always use Contracts (not legacy Plans) for new integrations.

Integration routing

Building… Recommended API Details
Ingesting usage events POST /v1/ingest (batch) Send usage events, the API quickstart, the Ingest API reference, and Set ingest aliases
Defining what to measure Billable Metrics API Create billable metrics
Enterprise pricing agreements Contracts + Rate Cards Provision a customer contract, Create and manage rate cards, and the Create a contract and Add rates API references
Mid-term contract changes Contract Edits Edit a contract, Contract edits and overrides, and Manage contract lifecycle
Invoice lifecycle and finalization Invoices API How Metronome invoices work
Prepaid or postpaid commitments and one-off top-ups Commits + Credits Apply credits and commits to contracts and Payment-gated commits
Syncing invoices to Stripe Stripe billing provider config Invoice with Stripe
Prepaid balances, auto-recharge, spend alerts, and thresholds Notifications API Set prepaid balance thresholds, Enforce spend thresholds, and Threshold notifications

Read the linked page before answering any integration question or writing code; the links return plain Markdown. If no row fits, use the documentation index to find the right page, and append .md to the page URL to fetch it as Markdown.

Read the full file on GitHub · 79 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. 1mo ago Changed 1aa0b126bd9e
  2. 2mo ago Changed · +18 lines · +52 tokens per session 49be038cfe1d
  3. 2mo ago First seen · 61 lines · 132 tokens per session scan A 62220ba4b5d2

Subscribe to this mod's changes

metronome is a skill published in the GitHub repository stripe/ai (2,101 stars, last pushed 5d ago), licensed MIT. It adds 184 tokens to every session and 2,943 once invoked, about $0.0007 per session on Opus 5.5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-09-20.

Related

metronome compared with skills from other repositories

metronome next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
metronomestripe/aiSkill2.1k5d agoMITA184Claude Code, Codex
x402browser-use/browser-useSkill122ktodayMITA166Claude Code
migrating-vercel-ai-sdk-and-eve-to-pydantic-aipydantic/pydantic-aiSkill21ktodayMITA107Codex
migrating-mastra-to-pydantic-aipydantic/pydantic-aiSkill21ktodayMITA73Codex
migrating-pi-to-pydantic-aipydantic/pydantic-aiSkill21ktodayMITA88Codex
ax-python-signatureax-llm/axSkill3.0ktodayApache-2.0A35Claude Code, Codex
ax-python-llmax-llm/axSkill3.0ktodayApache-2.0A36Claude Code, Codex