Agent Billing Primitives (Dirtsmith)
Agent billing primitives: usage metering, shared spend ledger with reserve-before-pay, lease lock.
Que pouvez-vous faire avec Agent Billing Primitives (Dirtsmith) ?
- agent_spend_ledger: hosted shared budget ledger. Actions:
set_budget,reserve,settle,release,status. Reserve is atomic: concurrent agents on one budget can never exceed the ceiling. Reservations expire afterttl_s(default 900 s). Amounts... - agent_lease_lock: hosted lease lock. Actions:
acquire,renew,release,status, withttl_sand a monotonicfencing_token. $0.90 per 1,000 calls after 1,000 free calls a month.
Installation
Ajoutez ceci à la configuration MCP de votre client (Claude Desktop : claude_desktop_config.json ; Cursor : .cursor/mcp.json ; VS Code et les autres utilisent la même forme « mcpServers »).
claude mcp add --transport http agent-billing-primitives-dirtsmith 'https://gap-functions.bfurrow26.workers.dev/mcp'
{
"mcpServers": {
"agent-billing-primitives-dirtsmith": {
"type": "http",
"url": "https://gap-functions.bfurrow26.workers.dev/mcp"
}
}
}
Documentation
Tirée du README du projet sur GitHub, actualisée chaque semaine. Les liens ouvrent GitHub.
Sommaire
MCP Usage Metering
Hosted tool that records one billable usage event per MCP tool call, idempotently, and returns an invoice preview. Built for MCP server authors who want to charge per call without building metering.
- Endpoint (MCP):
https://gap-functions.bfurrow26.workers.dev/mcp(all URLs inconfig.json) - Tool list:
GET /mcp/tools· Health:GET /health - Contract:
schema/mcp_usage_metering.v1.0.0.json(strict input, requiredidempotency_key, versioned 1.0.0)
Pricing and buying (no signup, no key)
- Call the tool directly. Each IP gets 100 free keyless calls per day.
- After that,
tools/callreturnsisError: truewitherror_code: PAYMENT_REQUIRED.structuredContent.paymentholds a one-clickapprove_and_pay_urlfor your human and agrant_token. Your agent asks you once, you click buy, then the agent retries the same call with headerX-Grant-Token(or uses the/u/<grant_token>/mcpURL form). Same token forever. - Usage after purchase: $0.15 per 1,000 events ($0.00015/event), 10,000 free events per month per account.
- Replays with the same
idempotency_keyare never billed twice.
Inputs
Required: tool_name, tool_version (semver), end_customer_ref, idempotency_key (8–128 chars). Optional: units, unit_label, unit_price_cents, metadata.
Legal
Terms of Service and Privacy Policy are DRAFT, pending counsel review, not yet in effect — see legal/.
License
MIT (this repository: docs and schema). Operated by Dirtsmith LLC.
More tools on the same endpoint (added 2026-11-03)
The same MCP URL (https://gap-functions.bfurrow26.workers.dev/mcp) also serves:
- agent_spend_ledger: hosted shared budget ledger. Actions:
set_budget,reserve,settle,release,status. Reserve is atomic: concurrent agents on one budget can never exceed the ceiling. Reservations expire afterttl_s(default 900 s). Amounts are integer micro-USD. $9.00 per 1,000 calls after 1,000 free calls a month. - agent_lease_lock: hosted lease lock. Actions:
acquire,renew,release,status, withttl_sand a monotonicfencing_token. $0.90 per 1,000 calls after 1,000 free calls a month. State is shared bynamespace(16-128 chars). Any agent that knows the namespace can read and change that state, so treat it like a password. We store only its hash. Buying works the same way as metering: no signup or key, one approve-and-pay link when the free calls run out.
Questions fréquentes
Qu'est-ce que Agent Billing Primitives (Dirtsmith) ?
Agent billing primitives: usage metering, shared spend ledger with reserve-before-pay, lease lock.
Comment installer Agent Billing Primitives (Dirtsmith) ?
Il fonctionne comme serveur distant. Dans Claude Code : claude mcp add --transport http agent-billing-primitives-dirtsmith 'https://gap-functions.bfurrow26.workers.dev/mcp'. Pour les autres clients, collez la configuration JSON de cette page dans leurs réglages MCP.
Faut-il une clé API pour Agent Billing Primitives (Dirtsmith) ?
Son entrée au registre n'indique aucune clé ni secret obligatoire. Certaines fonctions peuvent tout de même demander un compte auprès du service auquel il se connecte.
Agent Billing Primitives (Dirtsmith) est-il open source ?
Oui. Son code est sur GitHub sous licence MIT.
Qui maintient Agent Billing Primitives (Dirtsmith) ?
Il est publié par throttler300. AI.tn le référence sans le maintenir ni le recommander.
Issu du registre MCP officiel. Être listé n'est pas une recommandation : vérifiez le code et les permissions d'un serveur avant de lui donner accès à vos données.