Skip to content

UsageSpend

Base classes

Name Children Inherits
ClaudeCodeBaseModel
clawd_code_sdk.models.base
Base model for all Claude Code Pydantic models.

⋔ Inheritance diagram

graph TD
  860171925["context_usage.UsageSpend"]
  2604142835["base.ClaudeCodeBaseModel"]
  3879467795["main.BaseModel"]
  2751680898["builtins.object"]
  2604142835 --> 860171925
  3879467795 --> 2604142835
  2751680898 --> 3879467795

🛈 DocStrings

Bases: ClaudeCodeBaseModel

Usage-credit spend beyond the plan windows (undocumented, server-defined).

Source code in src/clawd_code_sdk/models/context_usage.py
class UsageSpend(ClaudeCodeBaseModel):
    """Usage-credit spend beyond the plan windows (undocumented, server-defined)."""

    model_config = ConfigDict(extra="ignore")

    enabled: bool = False
    used: UsageMoney | None = None
    limit: UsageMoney | None = None
    percent: float | None = None
    """Share of the spend limit used, 0-100."""
    severity: str | None = None

percent class-attribute instance-attribute

percent: float | None = None

Share of the spend limit used, 0-100.

:fa-brands-github: Show source on GitHub