Skip to content

ClaudeCodeBaseModel

Sub classes

Name Children Inherits
PermissionRuleValue
clawd_code_sdk.models.permissions
Permission rule value.
    BasePermissionUpdate
    clawd_code_sdk.models.permissions
    Permission update configuration.
    PermissionResultAllow
    clawd_code_sdk.models.permissions
    Allow permission result.
      PermissionResultDeny
      clawd_code_sdk.models.permissions
      Deny permission result.
        McpSetServersResult
        clawd_code_sdk.models.mcp
        Result of a setMcpServers operation.
          SdkPluginConfig
          clawd_code_sdk.models.mcp
          SDK plugin configuration.
            ToolAnnotations
            clawd_code_sdk.models.mcp
            Additional properties describing a Tool to clients.
              McpToolStatus
              clawd_code_sdk.models.mcp
              Status information for a single MCP tool.
                McpServerVersionInfo
                clawd_code_sdk.models.mcp
                Server version information returned in MCP status.
                  McpServerStatusEntry
                  clawd_code_sdk.models.mcp
                  Status information for a single MCP server.
                    McpStatusResponse
                    clawd_code_sdk.models.mcp
                    Response from get_mcp_status() containing all MCP server statuses.
                      AgentInfo
                      clawd_code_sdk.models.agents
                      Information about an available subagent that can be invoked via the Agent tool.
                        AgentWireDefinition
                        clawd_code_sdk.models.agents
                        Wire-format agent definition matching the CLI control protocol.
                          AgentDefinition
                          clawd_code_sdk.models.agents
                          User-facing agent definition configuration.
                            ThinkingConfigAdaptive
                            clawd_code_sdk.models.thinking
                            Adaptive thinking configuration - model decides thinking budget.
                              ThinkingConfigEnabled
                              clawd_code_sdk.models.thinking
                              Enabled thinking configuration with explicit token budget.
                                ThinkingConfigDisabled
                                clawd_code_sdk.models.thinking
                                Disabled thinking configuration.
                                  ModelUsage
                                  clawd_code_sdk.models.usage
                                  Cumulative token usage per model, accumulated across the entire session.
                                    ContextUsageCategory
                                    clawd_code_sdk.models.context_usage
                                    A single category in the context usage breakdown.
                                      ContextUsageGridCell
                                      clawd_code_sdk.models.context_usage
                                      A single cell in the context usage grid visualization.
                                        ContextUsageMemoryFile
                                        clawd_code_sdk.models.context_usage
                                        A memory file contributing to context usage.
                                          ContextUsageMcpTool
                                          clawd_code_sdk.models.context_usage
                                          An MCP tool contributing to context usage.
                                            ContextUsageMcpInstructions
                                            clawd_code_sdk.models.context_usage
                                            MCP server instructions contributing to context usage.
                                              ContextUsageDeferredBuiltinTool
                                              clawd_code_sdk.models.context_usage
                                              A deferred builtin tool contributing to context usage.
                                                ContextUsageSystemTool
                                                clawd_code_sdk.models.context_usage
                                                A system tool contributing to context usage.
                                                  ContextUsageSystemPromptSection
                                                  clawd_code_sdk.models.context_usage
                                                  A system prompt section contributing to context usage.
                                                    ContextUsageAgent
                                                    clawd_code_sdk.models.context_usage
                                                    An agent contributing to context usage.
                                                      ContextUsageSlashCommands
                                                      clawd_code_sdk.models.context_usage
                                                      Slash commands context usage summary.
                                                        ContextUsageSkillFrontmatter
                                                        clawd_code_sdk.models.context_usage
                                                        A single skill's frontmatter contributing to context usage.
                                                          ContextUsageSkills
                                                          clawd_code_sdk.models.context_usage
                                                          Skills context usage summary.
                                                            ContextUsageToolCallBreakdown
                                                            clawd_code_sdk.models.context_usage
                                                            Token breakdown for a specific tool call type.
                                                              ContextUsageAttachmentBreakdown
                                                              clawd_code_sdk.models.context_usage
                                                              Token breakdown for a specific attachment type.
                                                                ContextUsageMessageBreakdown
                                                                clawd_code_sdk.models.context_usage
                                                                Breakdown of message tokens by category.
                                                                  SDKControlGetContextUsageResponse
                                                                  clawd_code_sdk.models.context_usage
                                                                  Breakdown of current context window usage by category.
                                                                    SDKContextUsageOverLimit
                                                                    clawd_code_sdk.models.context_usage
                                                                    How far the context is over its limit.
                                                                      SDKContextUsageCategory
                                                                      clawd_code_sdk.models.context_usage
                                                                      A category in the compact context usage snapshot.
                                                                        SDKContextUsageMcpTool
                                                                        clawd_code_sdk.models.context_usage
                                                                        MCP tool entry in the compact context usage snapshot.
                                                                          SDKContextUsageMemoryFile
                                                                          clawd_code_sdk.models.context_usage
                                                                          Memory file entry in the compact context usage snapshot.
                                                                            SDKContextUsageAgent
                                                                            clawd_code_sdk.models.context_usage
                                                                            Agent entry in the compact context usage snapshot.
                                                                              SDKContextUsageSkill
                                                                              clawd_code_sdk.models.context_usage
                                                                              Skill entry in the compact context usage snapshot.
                                                                                SDKContextUsage
                                                                                clawd_code_sdk.models.context_usage
                                                                                Compact context usage snapshot, attached to assistant messages.
                                                                                  UsageReportSession
                                                                                  clawd_code_sdk.models.context_usage
                                                                                  Session-level cost/usage totals.
                                                                                    UsageReportDisplayName
                                                                                    clawd_code_sdk.models.context_usage
                                                                                    Wrapper holding a display name.
                                                                                      UsageReportLimitScope
                                                                                      clawd_code_sdk.models.context_usage
                                                                                      Scope of a rate limit.
                                                                                        UsageReportLimit
                                                                                        clawd_code_sdk.models.context_usage
                                                                                        A single rate limit entry.
                                                                                          UsageReportExtraUsage
                                                                                          clawd_code_sdk.models.context_usage
                                                                                          Extra (overage) usage state.
                                                                                            UsageReportRateLimits
                                                                                            clawd_code_sdk.models.context_usage
                                                                                            Rate limit state.
                                                                                              UsageWindow
                                                                                              clawd_code_sdk.models.context_usage
                                                                                              Utilization of one plan rate-limit window.
                                                                                              UsageMoney
                                                                                              clawd_code_sdk.models.context_usage
                                                                                              An amount in minor units (amount_minor / 10**exponent in currency).
                                                                                                UsageSpend
                                                                                                clawd_code_sdk.models.context_usage
                                                                                                Usage-credit spend beyond the plan windows (undocumented, server-defined).
                                                                                                  UsageRateLimits
                                                                                                  clawd_code_sdk.models.context_usage
                                                                                                  Plan rate-limit windows from the claude.ai usage endpoint.
                                                                                                    SDKUsageReport
                                                                                                    clawd_code_sdk.models.context_usage
                                                                                                    Session usage report (same data as /usage).
                                                                                                      ClaudeCodeModelInfo
                                                                                                      clawd_code_sdk.models.server_info
                                                                                                      Information about an available AI model from Claude Code.
                                                                                                        ClaudeCodeCommandInfo
                                                                                                        clawd_code_sdk.models.server_info
                                                                                                        Information about an available slash command from Claude Code.
                                                                                                          ClaudeCodeAccountInfo
                                                                                                          clawd_code_sdk.models.server_info
                                                                                                          Account information from Claude Code.
                                                                                                            ClaudeCodeAgentInfo
                                                                                                            clawd_code_sdk.models.server_info
                                                                                                            Information about an available subagent from Claude Code server.
                                                                                                              AuthConflict
                                                                                                              clawd_code_sdk.models.server_info
                                                                                                              Sources of the auth token and API key when both are configured.
                                                                                                                FeedbackMode
                                                                                                                clawd_code_sdk.models.server_info
                                                                                                                Feedback collection mode.
                                                                                                                  ClaudeCodeServerInfo
                                                                                                                  clawd_code_sdk.models.server_info
                                                                                                                  Complete server initialization info from Claude Code.
                                                                                                                    PluginInfo
                                                                                                                    clawd_code_sdk.models.control
                                                                                                                    Information about a loaded plugin.
                                                                                                                      SDKControlReloadPluginsResponse
                                                                                                                      clawd_code_sdk.models.control
                                                                                                                      Refreshed commands, agents, plugins, and MCP server status after reload.
                                                                                                                        McpAuthenticateResponse
                                                                                                                        clawd_code_sdk.models.control
                                                                                                                        Response from authenticating with an MCP server.
                                                                                                                          ClaudeOAuthWaitForCompletionResponse
                                                                                                                          clawd_code_sdk.models.control
                                                                                                                          Response from waiting for a Claude OAuth flow to complete.
                                                                                                                            SideQuestionResponse
                                                                                                                            clawd_code_sdk.models.control
                                                                                                                            Response from a side question.
                                                                                                                              SDKControlGetUsageResponse
                                                                                                                              clawd_code_sdk.models.control
                                                                                                                              Structured /usage data: session totals and plan rate-limit windows. Experimental.
                                                                                                                                MessageParam
                                                                                                                                clawd_code_sdk.models.content_blocks
                                                                                                                                User message payload wrapping content blocks.
                                                                                                                                  AssistantMessageContent
                                                                                                                                  clawd_code_sdk.models.content_blocks
                                                                                                                                  Assistant message payload mirroring ``anthropic.types.beta.BetaMessage``.
                                                                                                                                    HumanMessageOrigin
                                                                                                                                    clawd_code_sdk.models.messages
                                                                                                                                    Human message origin.
                                                                                                                                      ChannelMessageOrigin
                                                                                                                                      clawd_code_sdk.models.messages
                                                                                                                                      Channel message origin.
                                                                                                                                        PeerMessageOrigin
                                                                                                                                        clawd_code_sdk.models.messages
                                                                                                                                        Peer message origin.
                                                                                                                                          TaskNotificationMessageOrigin
                                                                                                                                          clawd_code_sdk.models.messages
                                                                                                                                          Task notification message origin.
                                                                                                                                            CoordinatorMessageOrigin
                                                                                                                                            clawd_code_sdk.models.messages
                                                                                                                                            Coordinator message origin.
                                                                                                                                              UnclassifiedMessageOrigin
                                                                                                                                              clawd_code_sdk.models.messages
                                                                                                                                              Unclassified message origin.
                                                                                                                                                ObserverMessageOrigin
                                                                                                                                                clawd_code_sdk.models.messages
                                                                                                                                                Message injected by an observer agent.
                                                                                                                                                  AutoContinuationMessageOrigin
                                                                                                                                                  clawd_code_sdk.models.messages
                                                                                                                                                  Message synthesized for an automatic continuation.
                                                                                                                                                    ObserverActivityMessageOrigin
                                                                                                                                                    clawd_code_sdk.models.messages
                                                                                                                                                    Observer activity message origin.
                                                                                                                                                      RateLimitInfo
                                                                                                                                                      clawd_code_sdk.models.messages
                                                                                                                                                      Rate limit information.
                                                                                                                                                        ApiErrorParams
                                                                                                                                                        clawd_code_sdk.models.messages
                                                                                                                                                        Parameters of an API error, present only for the error kinds that have any (undocumented).
                                                                                                                                                          ToolUseMeta
                                                                                                                                                          clawd_code_sdk.models.messages
                                                                                                                                                          Display metadata for a tool_use block in an assistant message (undocumented).
                                                                                                                                                            Env
                                                                                                                                                            clawd_code_sdk.models.settings
                                                                                                                                                            Environment variables to set for Claude Code sessions. Many environment variables provide settings dimensions not available as dedicated settings.json properties (e.g., thinking tokens, prompt caching, bash timeouts, shell configuration). See https://code.claude.com/docs/en/settings#environment-variables for the full list.
                                                                                                                                                              Attribution
                                                                                                                                                              clawd_code_sdk.models.settings
                                                                                                                                                              Customize attribution for git commits and pull requests. See https://code.claude.com/docs/en/settings#attribution-settings.
                                                                                                                                                                AllowedMcpServerByServerName
                                                                                                                                                                clawd_code_sdk.models.settings
                                                                                                                                                                  AllowedMcpServerByServerCommand
                                                                                                                                                                  clawd_code_sdk.models.settings
                                                                                                                                                                  AllowedMcpServerByServerUrl
                                                                                                                                                                  clawd_code_sdk.models.settings
                                                                                                                                                                  DeniedMcpServerByServerName
                                                                                                                                                                  clawd_code_sdk.models.settings
                                                                                                                                                                    AllowedChannelPlugin
                                                                                                                                                                    clawd_code_sdk.models.settings
                                                                                                                                                                      StatusLine
                                                                                                                                                                      clawd_code_sdk.models.settings
                                                                                                                                                                      Custom status line display configuration. See https://code.claude.com/docs/en/statusline.
                                                                                                                                                                        FileSuggestion
                                                                                                                                                                        clawd_code_sdk.models.settings
                                                                                                                                                                        Configure a custom script for @ file autocomplete. See https://code.claude.com/docs/en/settings#file-suggestion-settings.
                                                                                                                                                                          MarketplaceSourceUrl
                                                                                                                                                                          clawd_code_sdk.models.settings
                                                                                                                                                                          Where to fetch the marketplace from.
                                                                                                                                                                            MarketplaceSourceHostPattern
                                                                                                                                                                            clawd_code_sdk.models.settings
                                                                                                                                                                            Where to fetch the marketplace from.
                                                                                                                                                                              MarketplaceSourceGithub
                                                                                                                                                                              clawd_code_sdk.models.settings
                                                                                                                                                                              Where to fetch the marketplace from.
                                                                                                                                                                                MarketplaceSourceGit
                                                                                                                                                                                clawd_code_sdk.models.settings
                                                                                                                                                                                Where to fetch the marketplace from.
                                                                                                                                                                                  MarketplaceSourceNpm
                                                                                                                                                                                  clawd_code_sdk.models.settings
                                                                                                                                                                                  Where to fetch the marketplace from.
                                                                                                                                                                                    MarketplaceSourceFile
                                                                                                                                                                                    clawd_code_sdk.models.settings
                                                                                                                                                                                    Where to fetch the marketplace from.
                                                                                                                                                                                      MarketplaceSourceDirectory
                                                                                                                                                                                      clawd_code_sdk.models.settings
                                                                                                                                                                                      Where to fetch the marketplace from.
                                                                                                                                                                                        PluginSourceGithub
                                                                                                                                                                                        clawd_code_sdk.models.settings
                                                                                                                                                                                        External source the plugin is fetched from. Inline plugins must reference external sources such as GitHub or npm, not relative paths.
                                                                                                                                                                                          PluginSourceUrl
                                                                                                                                                                                          clawd_code_sdk.models.settings
                                                                                                                                                                                          External source the plugin is fetched from. Inline plugins must reference external sources such as GitHub or npm, not relative paths.
                                                                                                                                                                                            PluginSourceGitSubdir
                                                                                                                                                                                            clawd_code_sdk.models.settings
                                                                                                                                                                                            External source the plugin is fetched from. Inline plugins must reference external sources such as GitHub or npm, not relative paths.
                                                                                                                                                                                              PluginSourceNpm
                                                                                                                                                                                              clawd_code_sdk.models.settings
                                                                                                                                                                                              External source the plugin is fetched from. Inline plugins must reference external sources such as GitHub or npm, not relative paths.
                                                                                                                                                                                                Plugin
                                                                                                                                                                                                clawd_code_sdk.models.settings
                                                                                                                                                                                                  MarketplaceSourceSettings
                                                                                                                                                                                                  clawd_code_sdk.models.settings
                                                                                                                                                                                                  Where to fetch the marketplace from.
                                                                                                                                                                                                    ExtraKnownMarketplaces
                                                                                                                                                                                                    clawd_code_sdk.models.settings
                                                                                                                                                                                                      StrictMarketplaceHostPattern
                                                                                                                                                                                                      clawd_code_sdk.models.settings
                                                                                                                                                                                                        StrictMarketplaceGithub
                                                                                                                                                                                                        clawd_code_sdk.models.settings
                                                                                                                                                                                                          StrictMarketplaceGit
                                                                                                                                                                                                          clawd_code_sdk.models.settings
                                                                                                                                                                                                            StrictMarketplaceUrl
                                                                                                                                                                                                            clawd_code_sdk.models.settings
                                                                                                                                                                                                              StrictMarketplaceNpm
                                                                                                                                                                                                              clawd_code_sdk.models.settings
                                                                                                                                                                                                                StrictMarketplaceFile
                                                                                                                                                                                                                clawd_code_sdk.models.settings
                                                                                                                                                                                                                  StrictMarketplaceDirectory
                                                                                                                                                                                                                  clawd_code_sdk.models.settings
                                                                                                                                                                                                                    StrictMarketplacePathPattern
                                                                                                                                                                                                                    clawd_code_sdk.models.settings
                                                                                                                                                                                                                      StrictMarketplaceSkillsDir
                                                                                                                                                                                                                      clawd_code_sdk.models.settings
                                                                                                                                                                                                                      Keeps skills-directory plugins (folders under \~/.claude/skills/ or a project's .claude/skills/ that carry a .claude-plugin/plugin.json) loading while an allowlist is set. Matches no marketplace. See https://code.claude.com/docs/en/plugins/org#keep-skills-directory-plugins-loading.
                                                                                                                                                                                                                        TlsTerminate
                                                                                                                                                                                                                        clawd_code_sdk.models.settings
                                                                                                                                                                                                                        Experimental. Terminate TLS inside the sandbox proxy so it can read the contents of HTTPS requests. Required for mask credential substitution. Set {} to generate an ephemeral certificate authority for the session, or set caCertPath and caKeyPath to use your own. Only honored from user, managed, or CLI --settings settings, not from .claude/settings.json or .claude/settings.local.json. Requires Claude Code v2.1.199 or later. See https://code.claude.com/docs/en/sandboxing#protect-credentials.
                                                                                                                                                                                                                          Network
                                                                                                                                                                                                                          clawd_code_sdk.models.settings
                                                                                                                                                                                                                          Configures network isolation settings for the sandboxed bash environment, including domain restrictions, Unix socket access, and custom proxy configuration.
                                                                                                                                                                                                                            Filesystem
                                                                                                                                                                                                                            clawd_code_sdk.models.settings
                                                                                                                                                                                                                            Filesystem access control for sandboxed commands. See https://code.claude.com/docs/en/sandboxing#filesystem-isolation.
                                                                                                                                                                                                                              Ripgrep
                                                                                                                                                                                                                              clawd_code_sdk.models.settings
                                                                                                                                                                                                                              Custom ripgrep configuration for Claude Code's bundled ripgrep support. Overrides the bundled binary and arguments.
                                                                                                                                                                                                                                File
                                                                                                                                                                                                                                clawd_code_sdk.models.settings
                                                                                                                                                                                                                                  EnvVar
                                                                                                                                                                                                                                  clawd_code_sdk.models.settings
                                                                                                                                                                                                                                    Credentials
                                                                                                                                                                                                                                    clawd_code_sdk.models.settings
                                                                                                                                                                                                                                    Block sandboxed commands from reading credential files and secret environment variables (v2.1.187+). Entries merge across settings scopes. See https://code.claude.com/docs/en/sandboxing#protect-credentials.
                                                                                                                                                                                                                                      Sandbox
                                                                                                                                                                                                                                      clawd_code_sdk.models.settings
                                                                                                                                                                                                                                      Sandbox execution configuration. See https://code.claude.com/docs/en/sandboxing.
                                                                                                                                                                                                                                        SpinnerVerbs
                                                                                                                                                                                                                                        clawd_code_sdk.models.settings
                                                                                                                                                                                                                                        Customize the verbs shown in spinner progress messages.
                                                                                                                                                                                                                                          SpinnerTipsOverride
                                                                                                                                                                                                                                          clawd_code_sdk.models.settings
                                                                                                                                                                                                                                          Customize the tips displayed in the spinner while Claude is working. See https://code.claude.com/docs/en/settings#available-settings.
                                                                                                                                                                                                                                            Worktree
                                                                                                                                                                                                                                            clawd_code_sdk.models.settings
                                                                                                                                                                                                                                            Configuration for --worktree sessions. See https://code.claude.com/docs/en/settings#worktree-settings.
                                                                                                                                                                                                                                              PluginConfigs
                                                                                                                                                                                                                                              clawd_code_sdk.models.settings
                                                                                                                                                                                                                                                BlockedMarketplaceUrl
                                                                                                                                                                                                                                                clawd_code_sdk.models.settings
                                                                                                                                                                                                                                                  BlockedMarketplaceGithub
                                                                                                                                                                                                                                                  clawd_code_sdk.models.settings
                                                                                                                                                                                                                                                    BlockedMarketplaceGit
                                                                                                                                                                                                                                                    clawd_code_sdk.models.settings
                                                                                                                                                                                                                                                      BlockedMarketplaceNpm
                                                                                                                                                                                                                                                      clawd_code_sdk.models.settings
                                                                                                                                                                                                                                                        BlockedMarketplaceFile
                                                                                                                                                                                                                                                        clawd_code_sdk.models.settings
                                                                                                                                                                                                                                                          BlockedMarketplaceDirectory
                                                                                                                                                                                                                                                          clawd_code_sdk.models.settings
                                                                                                                                                                                                                                                            BlockedMarketplaceHostPattern
                                                                                                                                                                                                                                                            clawd_code_sdk.models.settings
                                                                                                                                                                                                                                                              BlockedMarketplacePathPattern
                                                                                                                                                                                                                                                              clawd_code_sdk.models.settings
                                                                                                                                                                                                                                                                BlockedMarketplaceSkillsDir
                                                                                                                                                                                                                                                                clawd_code_sdk.models.settings
                                                                                                                                                                                                                                                                Stops skills-directory plugins (folders under \~/.claude/skills/ or a project's .claude/skills/ that carry a .claude-plugin/plugin.json) from loading. Matches no marketplace. See https://code.claude.com/docs/en/plugins/org#blocklist-with-blockedmarketplaces.
                                                                                                                                                                                                                                                                  AutoMode
                                                                                                                                                                                                                                                                  clawd_code_sdk.models.settings
                                                                                                                                                                                                                                                                  Customization for the auto mode classifier prompt. Typically configured in managed settings to tune the allow/deny rules used when permissions.defaultMode is "auto". By default, allow, soft_deny, and environment REPLACE the corresponding built-in classifier section entirely. Include the literal string "$defaults" as an array entry (added in v2.1.118) to splice the built-in defaults in at that position alongside your custom rules. See https://code.claude.com/docs/en/permissions.
                                                                                                                                                                                                                                                                    SubagentStatusLine
                                                                                                                                                                                                                                                                    clawd_code_sdk.models.settings
                                                                                                                                                                                                                                                                    Status line configuration for subagent sessions. See https://code.claude.com/docs/en/statusline#subagent-status-lines.
                                                                                                                                                                                                                                                                      SshConfig
                                                                                                                                                                                                                                                                      clawd_code_sdk.models.settings
                                                                                                                                                                                                                                                                        Voice
                                                                                                                                                                                                                                                                        clawd_code_sdk.models.settings
                                                                                                                                                                                                                                                                        Voice dictation settings: enabled turns dictation on, mode selects "hold" or "tap", and autoSubmit sends the prompt on key release in hold mode. Written automatically when you run /voice. Requires a Claude.ai account. See https://code.claude.com/docs/en/voice-dictation.
                                                                                                                                                                                                                                                                          FooterLinksRegex
                                                                                                                                                                                                                                                                          clawd_code_sdk.models.settings
                                                                                                                                                                                                                                                                            PolicyHelper
                                                                                                                                                                                                                                                                            clawd_code_sdk.models.settings
                                                                                                                                                                                                                                                                            Admin-deployed executable that computes managed settings dynamically at startup. Honored only from MDM or the system managed-settings.json. Requires Claude Code v2.1.136 or later. See https://code.claude.com/docs/en/settings#available-settings.
                                                                                                                                                                                                                                                                              HookConfigCommand
                                                                                                                                                                                                                                                                              clawd_code_sdk.models.settings
                                                                                                                                                                                                                                                                              Bash command hook.
                                                                                                                                                                                                                                                                                HookConfigPrompt
                                                                                                                                                                                                                                                                                clawd_code_sdk.models.settings
                                                                                                                                                                                                                                                                                LLM prompt hook. See https://code.claude.com/docs/en/hooks#prompt-based-hooks.
                                                                                                                                                                                                                                                                                  HookConfigAgent
                                                                                                                                                                                                                                                                                  clawd_code_sdk.models.settings
                                                                                                                                                                                                                                                                                  Agent hook with multi-turn tool access for verification. See https://code.claude.com/docs/en/hooks#agent-based-hooks.
                                                                                                                                                                                                                                                                                    HookConfigHttp
                                                                                                                                                                                                                                                                                    clawd_code_sdk.models.settings
                                                                                                                                                                                                                                                                                    HTTP webhook hook. POST JSON to a URL and receive JSON response. See https://code.claude.com/docs/en/hooks#http-hook-fields.
                                                                                                                                                                                                                                                                                      HookConfigMcpTool
                                                                                                                                                                                                                                                                                      clawd_code_sdk.models.settings
                                                                                                                                                                                                                                                                                      MCP tool hook. Call a tool on an already-connected MCP server. See https://code.claude.com/docs/en/hooks#mcp-tool-hook-fields.
                                                                                                                                                                                                                                                                                        HookMatcher
                                                                                                                                                                                                                                                                                        clawd_code_sdk.models.settings
                                                                                                                                                                                                                                                                                        Hook matcher configuration with multiple hooks.
                                                                                                                                                                                                                                                                                          Permissions
                                                                                                                                                                                                                                                                                          clawd_code_sdk.models.settings
                                                                                                                                                                                                                                                                                          Tool usage permissions configuration.
                                                                                                                                                                                                                                                                                            Hooks
                                                                                                                                                                                                                                                                                            clawd_code_sdk.models.settings
                                                                                                                                                                                                                                                                                            Lifecycle event hooks that run at configurable points during Claude Code operation (tool use, session start/end, notifications, prompt submit, message display, and more), not just before/after tool executions. See https://code.claude.com/docs/en/hooks.
                                                                                                                                                                                                                                                                                              ClaudeCodeSettings
                                                                                                                                                                                                                                                                                              clawd_code_sdk.models.settings
                                                                                                                                                                                                                                                                                              Configuration settings for Claude Code. Learn more: https://code.claude.com/docs/en/settings.
                                                                                                                                                                                                                                                                                                ClaudeStorageModel
                                                                                                                                                                                                                                                                                                clawd_code_sdk.storage.models
                                                                                                                                                                                                                                                                                                Base for transcript models: fields these models don't know are kept.

                                                                                                                                                                                                                                                                                                Base classes

                                                                                                                                                                                                                                                                                                Name Children Inherits
                                                                                                                                                                                                                                                                                                BaseModel
                                                                                                                                                                                                                                                                                                pydantic.main
                                                                                                                                                                                                                                                                                                !!! abstract "Usage Documentation"

                                                                                                                                                                                                                                                                                                ⋔ Inheritance diagram

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

                                                                                                                                                                                                                                                                                                🛈 DocStrings

                                                                                                                                                                                                                                                                                                Bases: BaseModel

                                                                                                                                                                                                                                                                                                Base model for all Claude Code Pydantic models.

                                                                                                                                                                                                                                                                                                Source code in src/clawd_code_sdk/models/base.py
                                                                                                                                                                                                                                                                                                class ClaudeCodeBaseModel(BaseModel):
                                                                                                                                                                                                                                                                                                    """Base model for all Claude Code Pydantic models."""
                                                                                                                                                                                                                                                                                                
                                                                                                                                                                                                                                                                                                    model_config = ConfigDict(
                                                                                                                                                                                                                                                                                                        populate_by_name=True,
                                                                                                                                                                                                                                                                                                        alias_generator=to_camel,
                                                                                                                                                                                                                                                                                                        extra="forbid" if IS_DEV else "ignore",
                                                                                                                                                                                                                                                                                                        defer_build=True,
                                                                                                                                                                                                                                                                                                        use_attribute_docstrings=True,
                                                                                                                                                                                                                                                                                                    )
                                                                                                                                                                                                                                                                                                

                                                                                                                                                                                                                                                                                                :fa-brands-github: Show source on GitHub