Cost tracking
Arclasp can record LLM token usage and estimate cost when a governed event supplies supported model/token metadata. This is not universal provider billing telemetry. It is governance over the LLM usage evidence Arclasp actually receives.What can be recorded
Supported governed event payloads can include fields such as:- model identifier;
- input / prompt tokens;
- output / completion tokens;
- total tokens.
Manual instrumentation
record_agent_action() does not have a separate action-level metadata argument. Put supported token/model fields in the governed payload.
Unknown and unpriceable cost
Arclasp does not silently treat unknown cost as$0.
Current behavior distinguishes cases such as:
- a recognized model with explicit input/output token split;
- a recognized model with insufficient token split for the configured pricing rule;
- an unknown model.
Monthly budget governance
The organization budget is governance over recorded estimated cost in the current UTC calendar month. When newly recorded usage would cross the configured budget, the current backend can returnrequire_approval.
That is not a hard cap in the LLM provider’s billing system.
Arclasp does not control what OpenAI, Anthropic, Google, or another provider ultimately charges you.