Skip to content

ClaudeCodeModelInfo

Base classes

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

⋔ Inheritance diagram

graph TD
  3932166012["server_info.ClaudeCodeModelInfo"]
  2604142835["base.ClaudeCodeBaseModel"]
  3879467795["main.BaseModel"]
  2751680898["builtins.object"]
  2604142835 --> 3932166012
  3879467795 --> 2604142835
  2751680898 --> 3879467795

🛈 DocStrings

Bases: ClaudeCodeBaseModel

Information about an available AI model from Claude Code.

Source code in src/clawd_code_sdk/models/server_info.py
class ClaudeCodeModelInfo(ClaudeCodeBaseModel):
    """Information about an available AI model from Claude Code."""

    value: str
    """Model identifier used in API calls (e.g., "default", "opus", "haiku")."""

    display_name: str
    """Human-readable display name (e.g., "Opus", "Default (recommended)")."""

    description: str
    """Full description including capabilities and pricing."""

    supports_effort: bool | None = None
    """Whether the model supports effort setting."""

    supported_effort_levels: list[EffortLevel] | None = None
    """Supported effort levels."""

    supports_adaptive_thinking: bool | None = None
    """Whether the model supports adaptive thinking."""

    supports_fast_mode: bool | None = None
    """Whether the model supports fast mode."""

    supports_auto_mode: bool | None = None
    """Whether the model supports auto mode."""

    supports_thinking_off: bool | None = None
    """Whether thinking can be turned off for the model."""

    disabled: bool | None = None
    """Visible but not selectable (only set for entries in ``unavailable_models``)."""

    resolved_model: str | None = None
    """Concrete model ID this entry resolves to (e.g. for aliases)."""

description instance-attribute

description: str

Full description including capabilities and pricing.

disabled class-attribute instance-attribute

disabled: bool | None = None

Visible but not selectable (only set for entries in unavailable_models).

display_name instance-attribute

display_name: str

Human-readable display name (e.g., "Opus", "Default (recommended)").

resolved_model class-attribute instance-attribute

resolved_model: str | None = None

Concrete model ID this entry resolves to (e.g. for aliases).

supported_effort_levels class-attribute instance-attribute

supported_effort_levels: list[EffortLevel] | None = None

Supported effort levels.

supports_adaptive_thinking class-attribute instance-attribute

supports_adaptive_thinking: bool | None = None

Whether the model supports adaptive thinking.

supports_auto_mode class-attribute instance-attribute

supports_auto_mode: bool | None = None

Whether the model supports auto mode.

supports_effort class-attribute instance-attribute

supports_effort: bool | None = None

Whether the model supports effort setting.

supports_fast_mode class-attribute instance-attribute

supports_fast_mode: bool | None = None

Whether the model supports fast mode.

supports_thinking_off class-attribute instance-attribute

supports_thinking_off: bool | None = None

Whether thinking can be turned off for the model.

value instance-attribute

value: str

Model identifier used in API calls (e.g., "default", "opus", "haiku").

:fa-brands-github: Show source on GitHub