Skip to content

TlsTerminate

Base classes

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

⋔ Inheritance diagram

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

🛈 DocStrings

Bases: ClaudeCodeBaseModel

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.

Source code in src/clawd_code_sdk/models/settings.py
class TlsTerminate(ClaudeCodeBaseModel):
    """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."""

    model_config = ConfigDict(
        extra="forbid",
    )
    ca_cert_path: str | None = Field(None, alias="caCertPath")
    """
    Path to your own certificate authority certificate
    """
    ca_key_path: str | None = Field(None, alias="caKeyPath")
    """
    Path to your own certificate authority private key
    """

ca_cert_path class-attribute instance-attribute

ca_cert_path: str | None = Field(None, alias='caCertPath')

Path to your own certificate authority certificate

ca_key_path class-attribute instance-attribute

ca_key_path: str | None = Field(None, alias='caKeyPath')

Path to your own certificate authority private key

:fa-brands-github: Show source on GitHub