openclaw_usage_cost
Retrieve usage cost breakdown filtered by agent, model, or time period. Monitor spending across agents and models without modifying data.
Instructions
Get usage cost breakdown (per agent, per model, per period). Wraps usage.cost. Read-only. Pass period/agent filters if supported.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| agentId | No | ||
| sinceMs | No | ||
| untilMs | No | ||
| instance | No | Optional OpenClaw instance to route this call to (e.g. 'default', 'work'). Falls back to the active default instance, or the OPENCLAW_GATEWAY_URL/TOKEN env vars when set. List configured instances with openclaw_setup_list. |