Skip to content

MarketplaceSourceGithub

Base classes

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

⋔ Inheritance diagram

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

🛈 DocStrings

Bases: ClaudeCodeBaseModel

Where to fetch the marketplace from.

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

    model_config = ConfigDict(
        extra="forbid",
    )
    source: Literal["github"] = "github"
    """
    Identifies the marketplace source type
    """
    repo: str
    """
    GitHub repository in owner/repo format
    """
    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.

repo instance-attribute

repo: str

GitHub repository in owner/repo format

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['github'] = 'github'

Identifies the marketplace source type

:fa-brands-github: Show source on GitHub