Usage pricing simulator
@agentcosts/usage-pricing-simulator
Test pricing models for an AI product on your real usage before you change a price: per seat, per task, credits, and hybrid (platform fee plus included credits plus overage). Shows revenue, gross margin after LLM cost, and which customers' bills would jump or drop under each model.
- Activity
- New: be the first to try it
- Installs
- 0 installs
- Likes
- 0 likes
- Clones
- 0 clones
- 1# Usage pricing simulator
- 3Replays your real usage under different pricing models (per seat, per task, credits, and hybrid) and shows what each would do to revenue, gross margin, and every customer's bill. Find the model that fixes margins before anyone gets a price-change email.
- 5**Who it is for:** founders and product or finance leads pricing an AI or agent product.
- 7## Example
- 9Input: `examples/usage.csv` (October usage for 6 customers), `examples/customers.csv` (seats and current monthly price), `examples/pricing.json` (four models).
- 11Output (`out/pricing-sim.md`):
- 13| Model | Monthly revenue | vs today | Gross margin | Negative | Bills up a lot |
- 14| --- | --- | --- | --- | --- | --- |
- 15| Current | $746 | +0% | 80.3% | 1 | none |
- 16| Per seat $20 | $760 | +2% | 80.7% | 1 | none |
- 17| Per task | $489 | -34% | 69.9% | 0 | cobalt-labs |
- 18| Hybrid | $768 | +3% | 80.9% | 0 | cobalt-labs, foxglove-retail |
- 20Plus every customer's bill and margin under each model.
- 22## What it can access
- 24- Runs `node scripts/simulate.mjs` (Node built-ins only).
- 25- Reads `data/`. Writes `data/pricing.json` (your models) and `out/pricing-sim*`.
- 26- No network. It never changes prices or contacts customers.
- 28## Setup
- 30None. Check the example LLM prices against each provider's current pricing before trusting the margins.
