Usage and billing
What counts as usage, the usage API, plans, limits and retention, quota errors, and upgrading or cancelling.
Usage is counted per project and billed per organization. This page explains what counts, how to read usage from the API and the dashboard, the plans and their limits, and what happens over a limit.
What counts
| Metric | Counted from | Billed |
|---|---|---|
tool_executions | Every tool run: SDK, REST, MCP, Playground and triggers | Yes, against the plan |
mcp_tool_calls | Tool runs that came from an MCP client (included in the line above) | No, informational |
trigger_events | Events delivered by your triggers, one per event per trigger | No, informational |
- A tool run counts whether the tool succeeded or failed (including arguments the tool's schema
rejects, which return
successful: false), except when it failed because of an error on our side (internal_error). - Requests refused before a tool runs do not count: invalid requests (
400), auth errors, rate limits, quota errors and idempotent replays. - Listing tools, reading logs and connecting accounts are free.
- Usage is grouped into UTC hours and updated about every minute. The period is the calendar month in UTC, the same for every plan.
Read usage
The dashboard's Usage page shows the month per day for a project. The API returns the same
numbers for the API key's project; the key needs the usage:read
permission (keys with full access have it):
curl "https://<your-host>/api/v1/usage?from=2026-10-01T00:00:00.000Z&granularity=day" \
-H "Authorization: Bearer $API_KEY"{
"project_id": "proj_...",
"from": "2026-10-01T00:00:00.000Z",
"to": "2026-10-27T10:00:00.000Z",
"granularity": "day",
"totals": { "tool_executions": 1834, "mcp_tool_calls": 220, "trigger_events": 41 },
"series": [
{
"start": "2026-10-01T00:00:00.000Z",
"tool_executions": 12,
"mcp_tool_calls": 0,
"trigger_events": 3
}
],
"updated_at": "2026-10-27T09:59:12.000Z"
}fromdefaults to the start of the current UTC month andtoto now.granularityisday(up to 93 days) orhour(up to 7 days). A longer range, orfromnot beforeto, returns400 validation_error.seriesis ascending and zero-filled, one entry per UTC day or hour.updated_atis when the newest bucket in the range was last rolled up, ornullwhen the range has no usage yet.
With the SDK:
// This month so far (UTC), one bucket per day.
const usage = await toolwire.usage.retrieve({ granularity: "day" });
console.info(usage.totals.tool_executions, usage.totals.mcp_tool_calls);
for (const day of usage.series) console.info(day.start, day.tool_executions);The organization's total for the month, across all projects, is on the Billing page.
Plans
| Plan | Tool executions per month | Projects | Triggers per project |
|---|---|---|---|
| Hobby | 10,000 | 1 | 5 |
| Pro | 250,000 | 5 | 100 |
| Team | 2,000,000 | 50 | 500 |
Every plan includes all toolkits. Enterprise plans with custom limits are available on request.
Retention
How long tool execution logs and trigger deliveries (with their attempts) are kept depends on the plan:
| Plan | Tool execution logs | Trigger deliveries |
|---|---|---|
| Hobby | 30 days | 30 days |
| Pro | 90 days | 90 days |
| Team | 180 days | 180 days |
Older entries are deleted every hour. After a downgrade the shorter retention applies from the next run, so older logs of the higher plan are deleted then. Usage totals and the audit log are not affected (the audit log keeps 365 days on every plan, see Audit logs). Test events count as deliveries here, but never toward usage.
Over a limit
Tool executions. When the organization reaches its monthly executions, tool calls return
429 quota_exceeded until the next month starts (UTC) or you upgrade:
{
"error": {
"code": "quota_exceeded",
"message": "Monthly tool execution quota reached (hobby: 10000). Upgrade the plan or wait until 2026-11-01T00:00:00.000Z.",
"details": {
"metric": "tool_executions",
"limit": 10000,
"used": 10000,
"plan": "hobby",
"resets_at": "2026-11-01T00:00:00.000Z"
}
}
}There is no Retry-After, and the SDK never retries it:
try {
await toolwire.tools.execute("GITHUB_CREATE_ISSUE", {
userId: "user_123",
arguments: { owner: "acme", repo: "widgets", title: "Bug report" },
});
} catch (err) {
if (err instanceof ToolwireApiError && err.code === "quota_exceeded") {
// Not retried: wait until details.resets_at or upgrade the plan.
console.error(err.message, err.details);
} else {
throw err;
}
}Through MCP, the call returns a tool error with the same message:
Monthly tool execution quota reached (hobby: 10000). Upgrade the plan or wait until 2026-11-01T00:00:00.000Z.The limit is a soft cap: usage is counted about every minute, so a busy organization can go slightly over before calls are refused.
Projects and triggers. Creating a project or a trigger over the plan's limit returns
409 limit_reached with details.resource (projects or triggers), details.limit and
details.plan. A downgrade never deletes anything: existing projects
and triggers keep working, only new ones are refused.
Upgrade, change or cancel
Owners manage the plan on Organization, Billing in the dashboard. Admins, developers and viewers can see it but not change it.
- Upgrade opens a secure checkout page. After payment you return to the dashboard, and the plan
updates as soon as the payment provider confirms it, usually within seconds. An organization
that already has a subscription gets
409 already_subscribed: change plans in the portal. - Manage billing opens the billing portal: switch between Pro and Team, update the payment method, download invoices or cancel. A cancellation at the end of the paid period keeps the plan until then (the Billing page shows the end date); an immediate cancellation moves to Hobby at once.
- If a payment fails, the subscription is
past_dueand the paid plan stays while the payment is retried. If the retries run out (unpaid) or the subscription ends (canceled), the organization moves back to Hobby. Every plan change is recorded asbilling.plan_changedin the audit log.
Self-hosted deployments
Billing is off by default when you run the platform yourself (BILLING_ENABLED=false). There are
no plans and no plan limits then, only the built-in safety limits, and the Billing page shows
usage only. Logs and deliveries are then kept for EXECUTION_LOG_RETENTION_DAYS and
TRIGGER_DELIVERY_RETENTION_DAYS (30 days each by default) for every organization. See Self-hosting.

