Skip to content

MarketplaceSourceGit

Base classes

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

⋔ Inheritance diagram

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

🛈 DocStrings

Bases: ClaudeCodeBaseModel

Where to fetch the marketplace from.

Source code in src/clawd_code_sdk/models/settings.py
class MarketplaceSourceGit(ClaudeCodeBaseModel):
    """Where to fetch the marketplace from."""

    model_config = ConfigDict(
        extra="forbid",
    )
    source: Literal["git"] = "git"
    """
    Identifies the marketplace source type
    """
    url: str = Field(..., pattern="\\.git$")
    """
    Full git repository URL
    """
    ref: str | None = None
    """
    Git branch or tag to use (e.g., "main", "v1.0.0"). Defaults to repository default branch.
    """
    path: str | None = None
    """
    Path to marketplace.json within repo (defaults to .claude-plugin/marketplace.json)
    """
    skip_lfs: bool | None = Field(None, alias="skipLfs")
    """
    Skip Git LFS downloads when Claude Code clones or updates the marketplace repository. LFS pointer files remain as pointers instead of downloading their content. Use this when the repository contains large LFS objects unrelated to plugin content. Requires Claude Code v2.1.153 or later
    """

path class-attribute instance-attribute

path: str | None = None

Path to marketplace.json within repo (defaults to .claude-plugin/marketplace.json)

ref class-attribute instance-attribute

ref: str | None = None

Git branch or tag to use (e.g., "main", "v1.0.0"). Defaults to repository default branch.

skip_lfs class-attribute instance-attribute

skip_lfs: bool | None = Field(None, alias='skipLfs')

Skip Git LFS downloads when Claude Code clones or updates the marketplace repository. LFS pointer files remain as pointers instead of downloading their content. Use this when the repository contains large LFS objects unrelated to plugin content. Requires Claude Code v2.1.153 or later

source class-attribute instance-attribute

source: Literal['git'] = 'git'

Identifies the marketplace source type

url class-attribute instance-attribute

url: str = Field(..., pattern='\\.git$')

Full git repository URL

:fa-brands-github: Show source on GitHub