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 · 1,952 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.
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 15d ago against content hash 49be038cfe1d, 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 15d 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, 22 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. 15d ago Changed · +18 lines · +52 tokens per session 49be038cfe1d
  2. 26d 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 (1,952 stars, last pushed today), 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

Other skills, from other repositories

x402

Set up Browser Use Cloud payments with x402 — pay per request from a crypto wallet (USDC on Base mainnet), no signup or API key. Two setups it works out up front — "just use it" (set up a wallet so you or Claude Code can run cloud browser tasks paid from the wallet — Claude writes and runs throwaway scripts, nothing…

browser-use/browser-use · 175 tokens

migrating-mastra-to-pydantic-ai

Migrate TypeScript Mastra applications to Python with Pydantic AI and, only when needed, Pydantic AI Harness. Use when source code imports @mastra/ or relies on Mastra agents, tools, workflows, memory, processors, streaming, approvals, skills, or subagents.

pydantic/pydantic-ai · 73 tokens

migrating-vercel-ai-sdk-and-eve-to-pydantic-ai

Migrate TypeScript Vercel AI SDK or Eve applications to Python with Pydantic AI and, only when needed, Pydantic AI Harness. Use when source code imports ai, @ai-sdk/, or eve, or relies on generateText, streamText, ToolLoopAgent, useChat, Eve agents, tools, skills, subagents, approvals, sessions, channels, schedules…

pydantic/pydantic-ai · 107 tokens

migrating-pi-to-pydantic-ai

Migrate TypeScript Pi coding-agent applications, extensions, or packages to Python with Pydantic AI and Pydantic AI Harness. Use when source code imports @earendil-works/pi-, calls createAgentSession, registers Pi extensions, or relies on Pi tools, hooks, skills, sessions, compaction, providers, TUI, RPC, or packages.

pydantic/pydantic-ai · 88 tokens

ax-python-signature

Use when writing Python code with axllm for string signatures, field descriptors, JSON schema output, validation, and typed tool argument shapes.

ax-llm/ax · 35 tokens

ax-python-llm

Use when writing Python code with axllm for using the generated Ax package, factory functions, package docs, examples, and API reference.

ax-llm/ax · 36 tokens