sdk.fastmesh.dev › SDK Quickstart Guides › billing
<2.5 KB MCP Superbus · $0-on-Miss · Zero Data Resale

Enforcing Hard max_cost_micros Per-Call & Batch Budget Locks

Lock every single call and concurrent batch to an exact micro-USD ceiling using FASTMESH_MAX_COST_MICROS, per-call arguments, and X-Max-Cost-Micros headers.

1. One-Line Command

FASTMESH_MAX_COST_MICROS=50000 npx -y fastmesh-mcp call diff compare --dry-run

Works across MCP-compatible coding editors, terminals, and autonomous AI agents with zero third-party runtime dependencies.

2. Integration Snippet

from fastmesh_mcp import FastMeshClient, BudgetExceededError

client = FastMeshClient(max_cost_micros=50000)
try:
    res = client.call("verify", "check", {"claim": "ok"}, max_cost_micros=100, dry_run=True)
except BudgetExceededError as exc:
    print("Refused safely with $0 billed:", exc)

3. Production Use Case & Guardrails

Give finance and platform engineering teams deterministic hard ceilings before granting autonomous agents production tool access.

4. 10-Second Prepaid Top-Up & Agent Manifests

Never-expiring prepaid packs ($19 Starter / $79 Pro / $249 Scale) work across every *.fastmesh.dev engine.

Top Up at pay.fastmesh.dev Read skill.md · llms.txt · openapi.json · install.sh

Related FastMesh SDK Guides

FastMesh Universal SDK & MCP Publisher (sdk.fastmesh.dev) · Support: support@fastmesh.dev