settings
Class info¶
Classes¶
| Name | Children | Inherits |
|---|---|---|
| AdditionalDirectory clawd_code_sdk.models.settings |
||
| AllowMachLookupItem clawd_code_sdk.models.settings |
||
| AllowReadItem clawd_code_sdk.models.settings |
||
| AllowWriteItem clawd_code_sdk.models.settings |
||
| AllowedChannelPlugin clawd_code_sdk.models.settings |
||
| AllowedDomain clawd_code_sdk.models.settings |
||
| AllowedEnvVar clawd_code_sdk.models.settings |
||
| AllowedHttpHookUrl clawd_code_sdk.models.settings |
||
| AllowedMcpServerByServerCommand clawd_code_sdk.models.settings |
||
| AllowedMcpServerByServerName clawd_code_sdk.models.settings |
||
| AllowedMcpServerByServerUrl clawd_code_sdk.models.settings |
||
| Attribution clawd_code_sdk.models.settings Customize attribution for git commits and pull requests. See https://code.claude.com/docs/en/settings#attribution-settings. |
||
| 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. |
||
| BlockedMarketplaceDirectory clawd_code_sdk.models.settings |
||
| BlockedMarketplaceFile clawd_code_sdk.models.settings |
||
| BlockedMarketplaceGit clawd_code_sdk.models.settings |
||
| BlockedMarketplaceGithub clawd_code_sdk.models.settings |
||
| BlockedMarketplaceHostPattern clawd_code_sdk.models.settings |
||
| BlockedMarketplaceNpm 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. |
||
| BlockedMarketplaceUrl clawd_code_sdk.models.settings |
||
| ClaudeCodeSettings clawd_code_sdk.models.settings Configuration settings for Claude Code. Learn more: https://code.claude.com/docs/en/settings. |
||
| ClaudeMdExclude clawd_code_sdk.models.settings |
||
| CompanyAnnouncement 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. |
||
| DeniedDomain clawd_code_sdk.models.settings |
||
| DeniedMcpServerByServerCommand clawd_code_sdk.models.settings |
||
| DeniedMcpServerByServerName clawd_code_sdk.models.settings |
||
| DeniedMcpServerByServerUrl clawd_code_sdk.models.settings |
||
| DenyReadItem clawd_code_sdk.models.settings |
||
| DenyWriteItem clawd_code_sdk.models.settings |
||
| DisabledMcpjsonServer clawd_code_sdk.models.settings |
||
| EnabledMcpjsonServer clawd_code_sdk.models.settings |
||
| 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. |
||
| EnvVar clawd_code_sdk.models.settings |
||
| ExtraKnownMarketplaces clawd_code_sdk.models.settings |
||
| File clawd_code_sdk.models.settings |
||
| FileSuggestion clawd_code_sdk.models.settings Configure a custom script for @ file autocomplete. See https://code.claude.com/docs/en/settings#file-suggestion-settings. |
||
| Filesystem clawd_code_sdk.models.settings Filesystem access control for sandboxed commands. See https://code.claude.com/docs/en/sandboxing#filesystem-isolation. |
||
| FooterLinksRegex clawd_code_sdk.models.settings |
||
| ForceLoginOrgUuid clawd_code_sdk.models.settings |
||
| ForceLoginOrgUuidItem clawd_code_sdk.models.settings |
||
| 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. |
||
| HookConfigCommand clawd_code_sdk.models.settings Bash command hook. |
||
| 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. |
||
| HookConfigPrompt clawd_code_sdk.models.settings LLM prompt hook. See https://code.claude.com/docs/en/hooks#prompt-based-hooks. |
||
| HookMatcher clawd_code_sdk.models.settings Hook matcher configuration with multiple hooks. |
||
| 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. |
||
| HttpHookAllowedEnvVar clawd_code_sdk.models.settings |
||
| MarketplaceSourceDirectory clawd_code_sdk.models.settings Where to fetch the marketplace from. |
||
| MarketplaceSourceFile clawd_code_sdk.models.settings Where to fetch the marketplace from. |
||
| MarketplaceSourceGit clawd_code_sdk.models.settings Where to fetch the marketplace from. |
||
| MarketplaceSourceGithub clawd_code_sdk.models.settings Where to fetch the marketplace from. |
||
| MarketplaceSourceHostPattern clawd_code_sdk.models.settings Where to fetch the marketplace from. |
||
| MarketplaceSourceNpm clawd_code_sdk.models.settings Where to fetch the marketplace from. |
||
| MarketplaceSourceSettings clawd_code_sdk.models.settings Where to fetch the marketplace from. |
||
| MarketplaceSourceUrl clawd_code_sdk.models.settings Where to fetch the marketplace from. |
||
| 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. |
||
| PermissionRule clawd_code_sdk.models.settings |
||
| Permissions clawd_code_sdk.models.settings Tool usage permissions configuration. |
||
| Plugin clawd_code_sdk.models.settings |
||
| PluginConfigs clawd_code_sdk.models.settings |
||
| 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. |
||
| 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. |
||
| 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. |
||
| 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. |
||
| 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. |
||
| RefreshIntervalMs clawd_code_sdk.models.settings |
||
| Ripgrep clawd_code_sdk.models.settings Custom ripgrep configuration for Claude Code's bundled ripgrep support. Overrides the bundled binary and arguments. |
||
| Sandbox clawd_code_sdk.models.settings Sandbox execution configuration. See https://code.claude.com/docs/en/sandboxing. |
||
| SkippedMarketplace clawd_code_sdk.models.settings |
||
| SkippedPlugin clawd_code_sdk.models.settings |
||
| SparsePath clawd_code_sdk.models.settings |
||
| 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. |
||
| SpinnerVerbs clawd_code_sdk.models.settings Customize the verbs shown in spinner progress messages. |
||
| SshConfig clawd_code_sdk.models.settings |
||
| StatusLine clawd_code_sdk.models.settings Custom status line display configuration. See https://code.claude.com/docs/en/statusline. |
||
| StrictMarketplaceDirectory clawd_code_sdk.models.settings |
||
| StrictMarketplaceFile clawd_code_sdk.models.settings |
||
| StrictMarketplaceGit clawd_code_sdk.models.settings |
||
| StrictMarketplaceGithub clawd_code_sdk.models.settings |
||
| StrictMarketplaceHostPattern clawd_code_sdk.models.settings |
||
| StrictMarketplaceNpm 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. |
||
| StrictMarketplaceUrl clawd_code_sdk.models.settings |
||
| StrictPluginOnlyCustomization clawd_code_sdk.models.settings |
||
| SubagentStatusLine clawd_code_sdk.models.settings Status line configuration for subagent sessions. See https://code.claude.com/docs/en/statusline#subagent-status-lines. |
||
| Theme clawd_code_sdk.models.settings |
||
| Tip clawd_code_sdk.models.settings |
||
| 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. |
||
| Verb 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. |
||
| Worktree clawd_code_sdk.models.settings Configuration for --worktree sessions. See https://code.claude.com/docs/en/settings#worktree-settings. |
🛈 DocStrings¶
AllowedChannelPlugin
¶
Bases: ClaudeCodeBaseModel
Source code in src/clawd_code_sdk/models/settings.py
AllowedMcpServerByServerCommand
¶
Bases: ClaudeCodeBaseModel
Source code in src/clawd_code_sdk/models/settings.py
server_command
class-attribute
instance-attribute
¶
Exact command and arguments used to start stdio servers
AllowedMcpServerByServerName
¶
Bases: ClaudeCodeBaseModel
Source code in src/clawd_code_sdk/models/settings.py
server_name
class-attribute
instance-attribute
¶
Name of the MCP server that users are allowed to configure
AllowedMcpServerByServerUrl
¶
Bases: ClaudeCodeBaseModel
Source code in src/clawd_code_sdk/models/settings.py
server_url
class-attribute
instance-attribute
¶
URL pattern for remote servers, supports wildcards (e.g., https://.example.com/)
Attribution
¶
Bases: ClaudeCodeBaseModel
Customize attribution for git commits and pull requests. See https://code.claude.com/docs/en/settings#attribution-settings.
Source code in src/clawd_code_sdk/models/settings.py
commit
class-attribute
instance-attribute
¶
Attribution for git commits, including any trailers. Empty string hides commit attribution
pr
class-attribute
instance-attribute
¶
Attribution for pull request descriptions. Empty string hides pull request attribution
session_url
class-attribute
instance-attribute
¶
Whether to append the claude.ai session link as a Claude-Session trailer on commits and a link in pull request descriptions when running from a web or Remote Control session. Defaults to true; set to false to omit the link. See https://code.claude.com/docs/en/settings#attribution-settings
AutoMode
¶
Bases: ClaudeCodeBaseModel
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.
Source code in src/clawd_code_sdk/models/settings.py
allow
class-attribute
instance-attribute
¶
Rules for the auto mode classifier allow section. Replaces the built-in allow rules entirely unless the literal string "$defaults" is included as an entry, which splices the built-in defaults in at that position.
classify_all_shell
class-attribute
instance-attribute
¶
UNDOCUMENTED. Route all Bash/PowerShell commands through the auto mode classifier instead of only arbitrary-code-execution patterns (added in v2.1.193).
environment
class-attribute
instance-attribute
¶
Entries for the auto mode classifier environment section. Replaces the built-in environment context entirely unless the literal string "$defaults" is included as an entry, which splices the built-in defaults in at that position.
hard_deny
class-attribute
instance-attribute
¶
Rules for the auto mode classifier hard-deny section. Hard-deny rules block unconditionally regardless of user intent. Replaces the built-in hard-deny rules entirely unless the literal string "$defaults" is included as an entry, which splices the built-in defaults in at that position. See https://code.claude.com/docs/en/permissions
soft_deny
class-attribute
instance-attribute
¶
Rules for the auto mode classifier soft-deny section. Replaces the built-in soft-deny rules entirely unless the literal string "$defaults" is included as an entry, which splices the built-in defaults in at that position.
BlockedMarketplaceDirectory
¶
Bases: ClaudeCodeBaseModel
Source code in src/clawd_code_sdk/models/settings.py
BlockedMarketplaceFile
¶
Bases: ClaudeCodeBaseModel
Source code in src/clawd_code_sdk/models/settings.py
BlockedMarketplaceGit
¶
Bases: ClaudeCodeBaseModel
Source code in src/clawd_code_sdk/models/settings.py
BlockedMarketplaceGithub
¶
Bases: ClaudeCodeBaseModel
Source code in src/clawd_code_sdk/models/settings.py
BlockedMarketplaceHostPattern
¶
Bases: ClaudeCodeBaseModel
Source code in src/clawd_code_sdk/models/settings.py
BlockedMarketplaceNpm
¶
Bases: ClaudeCodeBaseModel
Source code in src/clawd_code_sdk/models/settings.py
BlockedMarketplacePathPattern
¶
Bases: ClaudeCodeBaseModel
Source code in src/clawd_code_sdk/models/settings.py
BlockedMarketplaceSkillsDir
¶
Bases: ClaudeCodeBaseModel
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.
Source code in src/clawd_code_sdk/models/settings.py
source
class-attribute
instance-attribute
¶
Block skills-directory plugins
BlockedMarketplaceUrl
¶
Bases: ClaudeCodeBaseModel
Source code in src/clawd_code_sdk/models/settings.py
ClaudeCodeSettings
¶
Bases: ClaudeCodeBaseModel
Configuration settings for Claude Code. Learn more: https://code.claude.com/docs/en/settings.
Source code in src/clawd_code_sdk/models/settings.py
3505 3506 3507 3508 3509 3510 3511 3512 3513 3514 3515 3516 3517 3518 3519 3520 3521 3522 3523 3524 3525 3526 3527 3528 3529 3530 3531 3532 3533 3534 3535 3536 3537 3538 3539 3540 3541 3542 3543 3544 3545 3546 3547 3548 3549 3550 3551 3552 3553 3554 3555 3556 3557 3558 3559 3560 3561 3562 3563 3564 3565 3566 3567 3568 3569 3570 3571 3572 3573 3574 3575 3576 3577 3578 3579 3580 3581 3582 3583 3584 3585 3586 3587 3588 3589 3590 3591 3592 3593 3594 3595 3596 3597 3598 3599 3600 3601 3602 3603 3604 3605 3606 3607 3608 3609 3610 3611 3612 3613 3614 3615 3616 3617 3618 3619 3620 3621 3622 3623 3624 3625 3626 3627 3628 3629 3630 3631 3632 3633 3634 3635 3636 3637 3638 3639 3640 3641 3642 3643 3644 3645 3646 3647 3648 3649 3650 3651 3652 3653 3654 3655 3656 3657 3658 3659 3660 3661 3662 3663 3664 3665 3666 3667 3668 3669 3670 3671 3672 3673 3674 3675 3676 3677 3678 3679 3680 3681 3682 3683 3684 3685 3686 3687 3688 3689 3690 3691 3692 3693 3694 3695 3696 3697 3698 3699 3700 3701 3702 3703 3704 3705 3706 3707 3708 3709 3710 3711 3712 3713 3714 3715 3716 3717 3718 3719 3720 3721 3722 3723 3724 3725 3726 3727 3728 3729 3730 3731 3732 3733 3734 3735 3736 3737 3738 3739 3740 3741 3742 3743 3744 3745 3746 3747 3748 3749 3750 3751 3752 3753 3754 3755 3756 3757 3758 3759 3760 3761 3762 3763 3764 3765 3766 3767 3768 3769 3770 3771 3772 3773 3774 3775 3776 3777 3778 3779 3780 3781 3782 3783 3784 3785 3786 3787 3788 3789 3790 3791 3792 3793 3794 3795 3796 3797 3798 3799 3800 3801 3802 3803 3804 3805 3806 3807 3808 3809 3810 3811 3812 3813 3814 3815 3816 3817 3818 3819 3820 3821 3822 3823 3824 3825 3826 3827 3828 3829 3830 3831 3832 3833 3834 3835 3836 3837 3838 3839 3840 3841 3842 3843 3844 3845 3846 3847 3848 3849 3850 3851 3852 3853 3854 3855 3856 3857 3858 3859 3860 3861 3862 3863 3864 3865 3866 3867 3868 3869 3870 3871 3872 3873 3874 3875 3876 3877 3878 3879 3880 3881 3882 3883 3884 3885 3886 3887 3888 3889 3890 3891 3892 3893 3894 3895 3896 3897 3898 3899 3900 3901 3902 3903 3904 3905 3906 3907 3908 3909 3910 3911 3912 3913 3914 3915 3916 3917 3918 3919 3920 3921 3922 3923 3924 3925 3926 3927 3928 3929 3930 3931 3932 3933 3934 3935 3936 3937 3938 3939 3940 3941 3942 3943 3944 3945 3946 3947 3948 3949 3950 3951 3952 3953 3954 3955 3956 3957 3958 3959 3960 3961 3962 3963 3964 3965 3966 3967 3968 3969 3970 3971 3972 3973 3974 3975 3976 3977 3978 3979 3980 3981 3982 3983 3984 3985 3986 3987 3988 3989 3990 3991 3992 3993 3994 3995 3996 3997 3998 3999 4000 4001 4002 4003 4004 4005 4006 4007 4008 4009 4010 4011 4012 4013 4014 4015 4016 4017 4018 4019 4020 4021 4022 4023 4024 4025 4026 4027 4028 4029 4030 4031 4032 4033 4034 4035 4036 4037 4038 4039 4040 4041 4042 4043 4044 4045 4046 4047 4048 4049 4050 4051 4052 4053 4054 4055 4056 4057 4058 4059 4060 4061 4062 4063 4064 4065 4066 4067 4068 4069 4070 4071 4072 4073 4074 4075 4076 4077 4078 4079 4080 4081 4082 4083 4084 4085 4086 4087 4088 4089 4090 4091 4092 4093 4094 4095 4096 4097 4098 4099 4100 4101 4102 4103 4104 4105 4106 4107 4108 4109 4110 4111 4112 4113 4114 4115 4116 4117 4118 4119 4120 4121 4122 4123 4124 4125 4126 4127 4128 4129 4130 4131 4132 4133 4134 4135 4136 4137 4138 4139 4140 4141 4142 4143 4144 4145 4146 4147 4148 4149 4150 4151 4152 4153 4154 4155 4156 4157 4158 4159 4160 4161 4162 4163 4164 4165 4166 4167 4168 4169 4170 4171 4172 4173 4174 4175 4176 4177 4178 4179 4180 4181 4182 4183 4184 4185 4186 4187 4188 4189 4190 4191 4192 4193 4194 4195 4196 4197 4198 4199 4200 4201 4202 4203 4204 4205 4206 4207 4208 4209 4210 4211 4212 4213 4214 4215 4216 4217 4218 4219 4220 4221 4222 4223 4224 4225 4226 4227 4228 4229 4230 4231 4232 4233 4234 4235 4236 4237 4238 4239 4240 4241 4242 4243 4244 4245 4246 4247 4248 4249 4250 4251 4252 4253 4254 4255 4256 4257 4258 4259 4260 4261 4262 4263 4264 4265 4266 4267 4268 4269 4270 4271 4272 4273 4274 4275 4276 4277 4278 4279 4280 4281 4282 4283 4284 4285 4286 4287 4288 4289 4290 4291 4292 4293 4294 4295 4296 4297 4298 4299 4300 4301 4302 | |
advisor_model
class-attribute
instance-attribute
¶
Model for the server-side advisor tool. Accepts a model alias ("opus", "sonnet", or "fable" on v2.1.170+) or a full model ID. Overridden by the --advisor CLI flag for the session, and blocked when the model is outside the availableModels allowlist. See https://code.claude.com/docs/en/advisor
agent
class-attribute
instance-attribute
¶
Name of an agent (built-in or custom) to use for the main thread. Applies the agent's system prompt, tool restrictions, and model. See https://code.claude.com/docs/en/sub-agents
agent_push_notif_enabled
class-attribute
instance-attribute
¶
When Remote Control is connected, allow Claude to send proactive push notifications to your phone, for example when a long task finishes. Requires Claude Code v2.1.119 or later. See https://code.claude.com/docs/en/remote-control#mobile-push-notifications
allow_all_claude_ai_mcps
class-attribute
instance-attribute
¶
(Managed settings only) Load claude.ai connectors alongside a deployed managed-mcp.json, which otherwise takes exclusive control and suppresses them. See https://code.claude.com/docs/en/managed-mcp
allow_managed_hooks_only
class-attribute
instance-attribute
¶
(Managed settings only) Prevent loading of user, project, and plugin hooks. Only allows managed hooks and SDK hooks. See https://code.claude.com/docs/en/settings#hook-configuration
allow_managed_mcp_servers_only
class-attribute
instance-attribute
¶
(Managed settings only) When true, only allowedMcpServers from managed settings are respected; MCP servers defined in user, project, or local settings are ignored. deniedMcpServers still merges from all sources. See https://code.claude.com/docs/en/managed-mcp
allow_managed_permission_rules_only
class-attribute
instance-attribute
¶
allow_managed_permission_rules_only: bool | None = Field(
None, alias="allowManagedPermissionRulesOnly"
)
(Managed settings only) Prevent user and project settings from defining allow, ask, or deny permission rules. Only rules in managed settings apply. See https://code.claude.com/docs/en/settings#permission-settings
allowed_channel_plugins
class-attribute
instance-attribute
¶
allowed_channel_plugins: list[AllowedChannelPlugin] | None = Field(
None, alias="allowedChannelPlugins"
)
(Managed settings only) Allowlist of channel plugins that may run, each identified by its marketplace and plugin name. When set, only the listed plugins can push inbound channel messages while channelsEnabled is true. Replaces the default Anthropic allowlist when set; undefined falls back to the default and an empty array blocks all channel plugins. Requires channelsEnabled: true. See https://code.claude.com/docs/en/channels#restrict-which-channel-plugins-can-run
allowed_http_hook_urls
class-attribute
instance-attribute
¶
allowed_http_hook_urls: list[AllowedHttpHookUrl] | None = Field(
None,
alias="allowedHttpHookUrls",
examples=[["https://hooks.example.com/*", "http://localhost:*"]],
)
Allowlist of URL patterns that HTTP hooks may target. Supports * as a wildcard. When set, hooks with non-matching URLs are blocked. Undefined = no restriction, empty array = block all HTTP hooks. Arrays merge across settings sources. See https://code.claude.com/docs/en/settings#hook-configuration
allowed_mcp_servers
class-attribute
instance-attribute
¶
allowed_mcp_servers: (
list[
AllowedMcpServerByServerName | AllowedMcpServerByServerCommand | AllowedMcpServerByServerUrl
]
| None
) = Field(None, alias="allowedMcpServers")
Enterprise allowlist of MCP servers that can be used. Applies to all scopes including enterprise servers from managed-mcp.json. If undefined, all servers are allowed. If empty array, no servers are allowed. Denylist takes precedence - if a server is on both lists, it is denied. See https://code.claude.com/docs/en/mcp#restriction-options
always_thinking_enabled
class-attribute
instance-attribute
¶
Enable extended thinking by default for all sessions. Typically configured via the /config command rather than editing directly. See https://code.claude.com/docs/en/common-workflows#use-extended-thinking-thinking-mode
api_key_helper
class-attribute
instance-attribute
¶
api_key_helper: str | None = Field(
None, alias="apiKeyHelper", examples=["/bin/generate_temp_api_key.sh"], min_length=1
)
Path to a script that outputs authentication values. See https://code.claude.com/docs/en/settings#available-settings
ask_user_question_timeout
class-attribute
instance-attribute
¶
ask_user_question_timeout: Literal["60s", "5m", "10m", "never"] | None = Field(
"never", alias="askUserQuestionTimeout"
)
Idle time before an unanswered AskUserQuestion dialog auto-continues with whatever options you had already selected. Accepts "60s", "5m", "10m", or "never" (default: "never", which waits until you answer). Appears in /config as Question auto-continue timeout, which writes this key to user settings. Not read from project or local settings. Requires Claude Code v2.1.200 or later. See https://code.claude.com/docs/en/settings#available-settings
attribution
class-attribute
instance-attribute
¶
attribution: Attribution | None = None
Customize attribution for git commits and pull requests. See https://code.claude.com/docs/en/settings#attribution-settings
auto_compact_enabled
class-attribute
instance-attribute
¶
Automatically compact the conversation when context approaches the limit. Also configurable via the DISABLE_AUTO_COMPACT environment variable. See https://code.claude.com/docs/en/settings#available-settings
auto_connect_ide
class-attribute
instance-attribute
¶
Automatically connect to a running IDE when Claude Code starts from an external terminal (default: false). Appears in /config as Auto-connect to IDE (external terminal) when running outside a VS Code or JetBrains terminal. Also configurable via the CLAUDE_CODE_AUTO_CONNECT_IDE environment variable, which overrides this when set. See https://code.claude.com/docs/en/settings#global-config-settings
auto_install_ide_extension
class-attribute
instance-attribute
¶
Automatically install the Claude Code IDE extension when running from a VS Code terminal (default: true). Appears in /config as Auto-install IDE extension when running inside a VS Code or JetBrains terminal. You can also set the CLAUDE_CODE_IDE_SKIP_AUTO_INSTALL environment variable to 1. See https://code.claude.com/docs/en/settings#global-config-settings
auto_memory_directory
class-attribute
instance-attribute
¶
Custom directory path for auto-memory storage. Supports ~/ prefix for home-directory expansion. Ignored if set in checked-in project settings (.claude/settings.json) for security. Defaults to ~/.claude/projects/<sanitized-cwd>/memory/ when unset. See https://code.claude.com/docs/en/memory
auto_memory_enabled
class-attribute
instance-attribute
¶
Enable automatic memory saves that capture useful context to ~/.claude/projects/<project>/memory/ (derived from the git repository, shared across worktrees). Also configurable via CLAUDE_CODE_DISABLE_AUTO_MEMORY environment variable (set to 1 to disable, 0 to enable). See https://code.claude.com/docs/en/memory#storage-location
auto_mode
class-attribute
instance-attribute
¶
auto_mode: AutoMode | None = Field(None, alias='autoMode')
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
auto_scroll_enabled
class-attribute
instance-attribute
¶
In fullscreen rendering, follow new output to the bottom of the conversation. Appears in /config as Auto-scroll. Permission prompts still scroll into view when this is off. See https://code.claude.com/docs/en/fullscreen
auto_updates_channel
class-attribute
instance-attribute
¶
auto_updates_channel: Literal["stable", "latest"] | None = Field(
"latest", alias="autoUpdatesChannel"
)
Release channel to follow for updates. Use "stable" for a version that is typically about one week old and skips versions with major regressions, or "latest" (default) for the most recent release. Set DISABLE_AUTOUPDATER=1 to disable background auto-updates, or DISABLE_UPDATES=1 (added in v2.1.118) to block all update paths including manual claude update.
available_models
class-attribute
instance-attribute
¶
available_models: list[str] | None = Field(
None, alias="availableModels", examples=[["sonnet", "haiku"]]
)
Restrict which models users can select. When defined at multiple settings levels (user, project, etc.), arrays are merged and deduplicated. See https://code.claude.com/docs/en/model-config#restrict-model-selection
away_summary_enabled
class-attribute
instance-attribute
¶
Show a one-line session recap when you return to the terminal after a few minutes away. Set to false (or turn off Session recap in /config) to disable. See https://code.claude.com/docs/en/settings#available-settings
aws_auth_refresh
class-attribute
instance-attribute
¶
aws_auth_refresh: str | None = Field(
None, alias="awsAuthRefresh", examples=["aws sso login --profile myprofile"], min_length=1
)
Command to run when AWS credentials are expired or unavailable; its output is shown to the user but interactive input is not supported. Also drives the "Claude Platform on AWS · refresh credentials" option in /login when configured. See https://code.claude.com/docs/en/amazon-bedrock#advanced-credential-configuration
aws_credential_export
class-attribute
instance-attribute
¶
aws_credential_export: str | None = Field(
None, alias="awsCredentialExport", examples=["/bin/generate_aws_grant.sh"], min_length=1
)
Command that outputs AWS credentials as JSON (in the form {"Credentials": {"AccessKeyId": ..., "SecretAccessKey": ..., "SessionToken": ...}}). The output is captured silently. Use when you cannot modify the .aws directory and must return credentials directly. See https://code.claude.com/docs/en/amazon-bedrock#advanced-credential-configuration
ax_screen_reader
class-attribute
instance-attribute
¶
Render screen-reader-friendly output: flat text without decorative borders or animations screen-reader mode always uses the classic renderer, so the tui setting has no effect while it is active. The CLAUDE_AX_SCREEN_READER environment variable and --ax-screen-reader flag take precedence. Requires Claude Code v2.1.181 or later. See https://code.claude.com/docs/en/settings#available-settings
blocked_marketplaces
class-attribute
instance-attribute
¶
blocked_marketplaces: (
list[
BlockedMarketplaceUrl
| BlockedMarketplaceGithub
| BlockedMarketplaceGit
| BlockedMarketplaceNpm
| BlockedMarketplaceFile
| BlockedMarketplaceDirectory
| BlockedMarketplaceHostPattern
| BlockedMarketplacePathPattern
| BlockedMarketplaceSkillsDir
]
| None
) = Field(None, alias="blockedMarketplaces")
(Managed settings only) Blocklist of marketplace sources. These exact sources are blocked from being added as marketplaces. The check happens before downloading, so blocked sources never touch the filesystem.
browser_external_page_tools
class-attribute
instance-attribute
¶
browser_external_page_tools: Literal["disabled"] | None = Field(
None, alias="browserExternalPageTools"
)
(Managed settings only) Set to "disabled" to prevent Claude from using tools to read or act on external pages in the desktop app's Browser pane. Users can still navigate to external sites themselves, and local dev server previews are unaffected. See https://code.claude.com/docs/en/desktop#browse-external-sites
channels_enabled
class-attribute
instance-attribute
¶
(Managed settings only) Allow channels for the organization. On claude.ai Team and Enterprise plans, channels are blocked when this is unset or false. For Anthropic Console accounts using API key authentication, channels are allowed by default unless the organization deploys managed settings, in which case this key must be set to true. See https://code.claude.com/docs/en/channels#enterprise-controls
claude_md
class-attribute
instance-attribute
¶
(Managed settings only) CLAUDE.md-style instructions injected as organization-managed memory. Honored only from managed/policy settings. See https://code.claude.com/docs/en/settings#available-settings
claude_md_excludes
class-attribute
instance-attribute
¶
claude_md_excludes: list[ClaudeMdExclude] | None = Field(
None,
alias="claudeMdExcludes",
examples=[["**/monorepo/CLAUDE.md", "/home/user/monorepo/other-team/.claude/rules/**"]],
)
Glob patterns for CLAUDE.md files to exclude from loading. Useful in monorepos to skip irrelevant instructions from other teams. Patterns match against absolute file paths. Arrays merge across settings layers. Managed policy CLAUDE.md files cannot be excluded. See https://code.claude.com/docs/en/memory#exclude-specific-claude-md-files
cleanup_period_days
class-attribute
instance-attribute
¶
Number of days to retain sessions, orphaned subagent worktrees, tasks, shell snapshots, and backups. Minimum is 1; setting 0 is rejected with a validation error. See https://code.claude.com/docs/en/settings#available-settings
company_announcements
class-attribute
instance-attribute
¶
Company announcements to display at startup (one will be randomly selected if multiple are provided)
default_shell
class-attribute
instance-attribute
¶
Default shell for input-box ! commands. Default: bash. Using "powershell" routes ! commands through PowerShell on Windows and requires CLAUDE_CODE_USE_POWERSHELL_TOOL=1 with pwsh on PATH. See https://code.claude.com/docs/en/settings#available-settings
denied_mcp_servers
class-attribute
instance-attribute
¶
denied_mcp_servers: (
list[DeniedMcpServerByServerName | DeniedMcpServerByServerCommand | DeniedMcpServerByServerUrl]
| None
) = Field(None, alias="deniedMcpServers")
Enterprise denylist of MCP servers that are explicitly blocked. If a server is on the denylist, it will be blocked across all scopes including enterprise. Denylist takes precedence over allowlist - if a server is on both lists, it is denied. See https://code.claude.com/docs/en/mcp#restriction-options
diff_tool
class-attribute
instance-attribute
¶
Where to display file diffs when an IDE is connected: "auto" (default) opens diffs in the IDE's diff viewer, "terminal" keeps them in the terminal. Appears in /config as Diff tool only when Claude Code is connected to a VS Code or JetBrains IDE. See https://code.claude.com/docs/en/settings#global-config-settings
disable_agent_view
class-attribute
instance-attribute
¶
(Managed settings) Turn off background agents and the agent view: claude agents, --bg, /background, and the on-demand supervisor. Also configurable via the CLAUDE_CODE_DISABLE_AGENT_VIEW environment variable (set to 1 to disable). See https://code.claude.com/docs/en/agent-view
disable_all_hooks
class-attribute
instance-attribute
¶
Disable all hooks and statusLine execution. When true in managed settings, user and project-level disableAllHooks cannot override it. See https://code.claude.com/docs/en/hooks#disable-or-remove-hooks
disable_artifact
class-attribute
instance-attribute
¶
Disable the Artifact tool, which publishes session output as a private web page on claude.ai. Also configurable via the CLAUDE_CODE_DISABLE_ARTIFACT environment variable. See https://code.claude.com/docs/en/settings#available-settings
disable_auto_mode
class-attribute
instance-attribute
¶
Set to "disable" to prevent auto mode from being activated: removes auto from the Shift+Tab cycle and rejects --permission-mode auto at startup. See https://code.claude.com/docs/en/settings#available-settings
disable_browser_external_navigation
class-attribute
instance-attribute
¶
disable_browser_external_navigation: bool | None = Field(
None, alias="disableBrowserExternalNavigation"
)
(Managed settings only) Set to true to turn off external browsing in the desktop app's Browser pane. Neither users nor Claude can navigate to external sites, and localhost dev server previews are unaffected. The value must be the JSON boolean true; the string "true" is ignored. See https://code.claude.com/docs/en/desktop#browse-external-sites
disable_bundled_skills
class-attribute
instance-attribute
¶
Disable the skills and workflows that ship with Claude Code: bundled skills and workflows are removed entirely, while built-in slash commands like /init stay typable but are hidden from the model. Skills from plugins, .claude/skills/, and .claude/commands/ are unaffected. Also configurable via the CLAUDE_CODE_DISABLE_BUNDLED_SKILLS environment variable. See https://code.claude.com/docs/en/settings#available-settings
disable_claude_ai_connectors
class-attribute
instance-attribute
¶
Disable claude.ai MCP connectors so they are not auto-fetched or connected. A value of true in any settings source takes precedence. Requires Claude Code v2.1.182 or later. See https://code.claude.com/docs/en/settings#available-settings
disable_deep_link_registration
class-attribute
instance-attribute
¶
disable_deep_link_registration: Literal["disable"] | None = Field(
None, alias="disableDeepLinkRegistration"
)
Set to "disable" to prevent Claude Code from registering the claude-cli:// deep-link protocol handler on startup. Most useful in managed settings where users cannot override it. See https://code.claude.com/docs/en/settings#available-settings
disable_mobile_simulator_tools
class-attribute
instance-attribute
¶
(Managed settings only) Set to true to block Claude's tools for the desktop app's iOS Simulator pane. Users keep manual use of the pane; only Claude's access is removed. The value must be the JSON boolean true; any other value is ignored, and a malformed value such as "true" or 1 logs a warning. See https://code.claude.com/docs/en/desktop-ios-simulator#turn-off-simulator-access
disable_remote_control
class-attribute
instance-attribute
¶
Disable Remote Control: blocks claude remote-control, the --remote-control flag, auto-start, and the in-session toggle. Requires Claude Code v2.1.128 or later. See https://code.claude.com/docs/en/remote-control
disable_sideload_flags
class-attribute
instance-attribute
¶
(Managed settings only) Reject the --plugin-dir, --plugin-url, --agents, and --mcp-config CLI flags at startup, which users could otherwise pass to bypass strictKnownMarketplaces for a single run. Also rejects these flags from any surface that spawns the CLI with them internally, currently Cowork local sessions in the desktop app. A --mcp-config whose servers are all in-process type: "sdk" entries is still accepted, so the Agent SDK and VS Code extension keep working. Does not block claude mcp add, .mcp.json, or SDK setMcpServers(); pair with allowedMcpServers for per-server MCP control. Requires Claude Code v2.1.193 or later. See https://code.claude.com/docs/en/settings#available-settings
disable_skill_shell_execution
class-attribute
instance-attribute
¶
Disable inline shell execution for !`...` and ```! blocks in skills and custom slash commands from user, project, plugin, or additional-directory sources. Commands are replaced with [shell command execution disabled by policy] instead of being run. Bundled and managed skills are not affected. Most useful in managed settings where users cannot override it. See https://code.claude.com/docs/en/settings#available-settings
disable_workflows
class-attribute
instance-attribute
¶
Disable dynamic workflows and bundled workflow commands. Also configurable via the CLAUDE_CODE_DISABLE_WORKFLOWS environment variable. See https://code.claude.com/docs/en/settings#available-settings
disabled_mcpjson_servers
class-attribute
instance-attribute
¶
disabled_mcpjson_servers: list[DisabledMcpjsonServer] | None = Field(
None, alias="disabledMcpjsonServers", examples=[["filesystem"]]
)
List of rejected MCP servers from .mcp.json. See https://code.claude.com/docs/en/mcp
editor_mode
class-attribute
instance-attribute
¶
Key binding mode for the input prompt: "normal" or "vim". Appears in /config as Editor mode. See https://code.claude.com/docs/en/terminal-config#edit-prompts-with-vim-keybindings
effort_level
class-attribute
instance-attribute
¶
effort_level: Literal["low", "medium", "high", "xhigh", "max"] | None = Field(
None, alias="effortLevel"
)
Persist adaptive reasoning effort across sessions. Set to low, medium, high, or xhigh; max and ultracode are session-only and are not accepted in the settings file (use the CLAUDE_CODE_EFFORT_LEVEL environment variable or /effort for a session-only max). Effort is supported on Fable 5, Opus 4.8, Opus 4.7, Opus 4.6, and Sonnet 4.6, with xhigh sitting between high and max (added in v2.1.111). Defaults: Fable 5 and Opus 4.8 default to high; Opus 4.6 and Sonnet 4.6 default to high on all plans (Pro/Max raised from medium to high in v2.1.117); Opus 4.7 defaults to xhigh. Use /effort auto to reset to model default. Also configurable via CLAUDE_CODE_EFFORT_LEVEL environment variable. See https://code.claude.com/docs/en/model-config#adjust-effort-level
emoji_completion_enabled
class-attribute
instance-attribute
¶
Show emoji suggestions when you type : plus a shortcode in the prompt input, and replace a completed shortcode such as
with its emoji (default: true). Set to false to disable both. Requires Claude Code v2.1.217 or later. See https://code.claude.com/docs/en/interactive-mode#emoji-shortcodes
enable_all_project_mcp_servers
class-attribute
instance-attribute
¶
enable_all_project_mcp_servers: bool | None = Field(
None, alias="enableAllProjectMcpServers", examples=[True]
)
Whether to automatically approve all MCP servers in the project. See https://code.claude.com/docs/en/mcp
enable_artifact
class-attribute
instance-attribute
¶
Enable or disable the Artifact tool for this user. When unset, the default follows the feature's availability for your account. The Artifacts row in /config writes this key. A managed disableArtifact and your organization's admin setting take precedence, and the key is ignored in project and local settings (.claude/settings.json, .claude/settings.local.json), which a repository could otherwise commit. Requires Claude Code v2.1.196 or later. See https://code.claude.com/docs/en/artifacts
enabled_mcpjson_servers
class-attribute
instance-attribute
¶
enabled_mcpjson_servers: list[EnabledMcpjsonServer] | None = Field(
None, alias="enabledMcpjsonServers", examples=[["memory", "github"]]
)
List of approved MCP servers from .mcp.json. See https://code.claude.com/docs/en/mcp
enabled_plugins
class-attribute
instance-attribute
¶
Enabled plugins using plugin-id@marketplace-id format. Example: { "formatter@anthropic-tools": true }. See https://code.claude.com/docs/en/plugins
enforce_available_models
class-attribute
instance-attribute
¶
(Managed settings) Extend the availableModels allowlist to the Default model option (requires v2.1.175+). Requires a non-empty availableModels list; when the account-type default is not in the allowlist, Default resolves to the first allowed entry instead. Has no effect when availableModels is unset or empty. See https://code.claude.com/docs/en/model-config#enforce-the-allowlist-for-the-default-model
env
class-attribute
instance-attribute
¶
env: Env | None = Field(
default_factory=lambda: Env.model_validate({}),
examples=[
{
"ANTHROPIC_MODEL": "claude-opus-4-1",
"ANTHROPIC_SMALL_FAST_MODEL": "claude-3-5-haiku-latest",
}
],
)
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.
external_editor_context
class-attribute
instance-attribute
¶
Prepend Claude's previous response as #-commented context when you open the external editor with Ctrl+G (default: false). Appears in /config as Show last response in external editor. See https://code.claude.com/docs/en/settings#global-config-settings
extra_known_marketplaces
class-attribute
instance-attribute
¶
extra_known_marketplaces: dict[str, ExtraKnownMarketplaces] | None = Field(
None, alias="extraKnownMarketplaces"
)
Additional marketplaces to make available for this repository. Typically used in repository .claude/settings.json to ensure team members have required plugin sources. See https://code.claude.com/docs/en/plugin-marketplaces
fallback_model
class-attribute
instance-attribute
¶
Fallback model chain tried in order when the primary model is overloaded, unavailable, or returns a non-retryable server error. Capped at three entries after deduplication; accepts model names or aliases, and "default" expands to the account-type default. Overridden by the --fallback-model CLI flag for the session. See https://code.claude.com/docs/en/model-config#fallback-model-chains
fast_mode
class-attribute
instance-attribute
¶
Enable fast mode, which uses Claude Opus 5 by default (since v2.1.219) for faster output at higher per-token cost without downgrading to a smaller model. Requires extra usage enabled. Toggle with the /fast command. Supported on Opus 5 and Opus 4.8; fast mode for Opus 4.7 was deprecated on June 25, 2026 and removed on July 24, 2026. Before v2.1.219 fast mode defaulted to Opus 4.8 (v2.1.154 through v2.1.218) and to Opus 4.7 (v2.1.142 through v2.1.153). See https://code.claude.com/docs/en/fast-mode
fast_mode_per_session_opt_in
class-attribute
instance-attribute
¶
Require per-session opt-in for fast mode. When true, fast mode does not persist across sessions and users must enable it with /fast each session. Useful for controlling costs. See https://code.claude.com/docs/en/fast-mode
feedback_survey_rate
class-attribute
instance-attribute
¶
feedback_survey_rate: float | None = Field(
None, alias="feedbackSurveyRate", examples=[0.05], ge=0.0, le=1.0
)
Probability (0–1) that the session quality survey appears when eligible. A value of 0.05 means 5% of eligible sessions. See https://code.claude.com/docs/en/settings#available-settings
field_schema
class-attribute
instance-attribute
¶
JSON Schema reference for Claude Code settings
file_checkpointing_enabled
class-attribute
instance-attribute
¶
Snapshot edited files so /rewind can restore them. Also configurable via the CLAUDE_CODE_DISABLE_FILE_CHECKPOINTING environment variable (set to 1 to disable). See https://code.claude.com/docs/en/checkpointing
file_suggestion
class-attribute
instance-attribute
¶
file_suggestion: FileSuggestion | None = Field(
None,
alias="fileSuggestion",
examples=[{"type": "command", "command": "~/.claude/file-suggestion.sh"}],
)
Configure a custom script for @ file autocomplete. See https://code.claude.com/docs/en/settings#file-suggestion-settings
footer_links_regexes
class-attribute
instance-attribute
¶
footer_links_regexes: list[FooterLinksRegex] | None = Field(None, alias='footerLinksRegexes')
Render extra clickable badges in the footer when a regex matches turn output (tool results and assistant responses). Read from user, --settings flag, and managed settings only; ignored in project and local settings. Requires Claude Code v2.1.176 or later. See https://code.claude.com/docs/en/settings#available-settings
force_login_gateway_url
class-attribute
instance-attribute
¶
force_login_gateway_url: str | None = Field(
None, alias="forceLoginGatewayUrl", examples=["https://claude-gateway.example.com"]
)
Pre-fills and locks the gateway URL on the /login Cloud gateway screen. Either this key or forceLoginMethod: "gateway" surfaces that screen; set both so the URL is filled in. Honored only at the managed policy tier; ignored in user and project settings. See https://code.claude.com/docs/en/claude-apps-gateway#set-the-gateway-url
force_login_method
class-attribute
instance-attribute
¶
force_login_method: Literal["claudeai", "console", "gateway"] | None = Field(
None, alias="forceLoginMethod", examples=["claudeai"]
)
Use "claudeai" to restrict login to Claude.ai accounts, "console" to restrict login to Claude Console accounts, or "gateway" to restrict login to a cloud gateway. On Claude Code v2.1.212 or later, every first-party login path enforces the restriction, including the VS Code extension, the Agent SDK, claude setup-token, and /install-github-app; before v2.1.212, only terminal logins enforced it. See https://code.claude.com/docs/en/authentication#restrict-login-to-your-organization
force_login_org_uuid
class-attribute
instance-attribute
¶
force_login_org_uuid: ForceLoginOrgUuid | list[ForceLoginOrgUuidItem] | None = Field(
None, alias="forceLoginOrgUUID", examples=["xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx"]
)
Organization UUID to use for OAuth login, or an array of UUIDs to allow several organizations. An empty array fails closed and blocks every login. See https://code.claude.com/docs/en/authentication#restrict-login-to-your-organization
force_remote_settings_refresh
class-attribute
instance-attribute
¶
(Managed settings only) Block CLI startup until remote managed settings are freshly fetched from the server. If the fetch fails, the CLI exits (fail-closed) rather than continuing with cached settings. When not set, startup continues without waiting for remote settings. See https://code.claude.com/docs/en/server-managed-settings
gcp_auth_refresh
class-attribute
instance-attribute
¶
gcp_auth_refresh: str | None = Field(
None, alias="gcpAuthRefresh", examples=["gcloud auth application-default login"], min_length=1
)
Command to run when GCP credentials are expired or cannot be loaded. The command's output is displayed to the user but interactive input is not supported; it times out after three minutes. See https://code.claude.com/docs/en/google-vertex-ai#advanced-credential-configuration
hooks
class-attribute
instance-attribute
¶
hooks: Hooks | None = Field(
None,
examples=[
{
"PostToolUse": [
{
"matcher": "Edit|Write",
"hooks": [{"type": "command", "command": "prettier --write", "timeout": 5}],
}
]
}
],
)
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
http_hook_allowed_env_vars
class-attribute
instance-attribute
¶
http_hook_allowed_env_vars: list[HttpHookAllowedEnvVar] | None = Field(
None, alias="httpHookAllowedEnvVars", examples=[["MY_TOKEN", "HOOK_SECRET"]]
)
Allowlist of environment variable names HTTP hooks may interpolate into headers. When set, each hook's effective allowedEnvVars is the intersection with this list. Undefined = no restriction. Arrays merge across settings sources. See https://code.claude.com/docs/en/settings#hook-configuration
include_co_authored_by
class-attribute
instance-attribute
¶
DEPRECATED. Use 'attribution' instead. Whether to include the co-authored-by Claude byline in git commits and pull requests (default: true)
include_git_instructions
class-attribute
instance-attribute
¶
Include built-in git commit and PR workflow instructions in Claude's system prompt. Also configurable via CLAUDE_CODE_DISABLE_GIT_INSTRUCTIONS environment variable (set to 1 to disable). See https://code.claude.com/docs/en/settings#available-settings
input_needed_notif_enabled
class-attribute
instance-attribute
¶
When Remote Control is connected, send a push notification to your phone when a permission prompt or question is waiting for input. Requires Claude Code v2.1.119 or later. See https://code.claude.com/docs/en/settings#available-settings
language
class-attribute
instance-attribute
¶
Configure Claude's preferred response language (e.g., "japanese", "spanish", "french"). Claude will respond in this language by default. Also sets the voice dictation language and terminal tab session title generation. See https://code.claude.com/docs/en/settings#available-settings
managed_mcp_servers
class-attribute
instance-attribute
¶
(Managed settings, third-party Desktop deployments only) MCP server configurations pushed to all users. Each entry specifies the transport and connection details, plus an optional toolPolicy map. Delivered through the managed settings file or MDM. See https://code.claude.com/docs/en/desktop#enterprise-configuration
minimum_version
class-attribute
instance-attribute
¶
Minimum Claude Code version to stay on. Prevents downgrades when switching release channels. See https://code.claude.com/docs/en/settings#available-settings
model
class-attribute
instance-attribute
¶
Override the default model used by Claude Code. For finer control, use environment variables: ANTHROPIC_MODEL (runtime override), ANTHROPIC_DEFAULT_OPUS_MODEL, ANTHROPIC_DEFAULT_SONNET_MODEL, ANTHROPIC_DEFAULT_HAIKU_MODEL (per-class pinning), CLAUDE_CODE_SUBAGENT_MODEL (subagent model). See https://code.claude.com/docs/en/model-config
model_overrides
class-attribute
instance-attribute
¶
model_overrides: dict[str, str] | None = Field(
None,
alias="modelOverrides",
examples=[
{
"claude-opus-4-6": "arn:aws:bedrock:us-east-2:123456789012:application-inference-profile/opus-prod"
}
],
)
Map Anthropic model IDs to provider-specific model IDs such as Bedrock inference profile ARNs, Vertex AI version names, or Foundry deployment names. Each model picker entry uses its mapped value when calling the provider API. Unknown keys are ignored. See https://code.claude.com/docs/en/model-config#override-model-ids-per-version
otel_headers_helper
class-attribute
instance-attribute
¶
Path to an executable, or a shell command line with arguments, that outputs OpenTelemetry headers as a JSON object. Runs at startup and re-runs on the interval set by CLAUDE_CODE_OTEL_HEADERS_HELPER_DEBOUNCE_MS. Requires CLAUDE_CODE_ENABLE_TELEMETRY=1. See https://code.claude.com/docs/en/monitoring-usage#dynamic-headers
output_style
class-attribute
instance-attribute
¶
output_style: str | None = Field(
None,
alias="outputStyle",
examples=["default", "Proactive", "Explanatory", "Learning"],
min_length=1,
)
Controls the output style for assistant responses. Built-in styles: default, Proactive, Explanatory, Learning. Custom styles can be added in ~/.claude/output-styles/ or .claude/output-styles/. See https://code.claude.com/docs/en/output-styles
parent_settings_behavior
class-attribute
instance-attribute
¶
parent_settings_behavior: Literal["first-wins", "merge"] | None = Field(
"first-wins", alias="parentSettingsBehavior"
)
(Admin/managed settings only) Controls how SDK managedSettings (parent tier) merge with inherited settings. 'first-wins': first non-empty value applies (default). 'merge': merge arrays and objects. See https://code.claude.com/docs/en/server-managed-settings
permission_explainer_enabled
class-attribute
instance-attribute
¶
Show a model-generated explanation of the command when you press Ctrl+E on a Bash or PowerShell permission prompt (default: true). Set to false to turn the shortcut off. See https://code.claude.com/docs/en/permissions#permission-system
permissions
class-attribute
instance-attribute
¶
permissions: Permissions | None = Field(
None,
examples=[
{
"allow": ["Bash(git add:*)"],
"ask": ["Bash(gh pr create:*)", "Bash(git commit:*)"],
"deny": ["Read(*.env)", "Bash(rm:*)", "Bash(curl:*)"],
"defaultMode": "default",
}
],
)
Tool usage permissions configuration. See https://code.claude.com/docs/en/permissions and https://code.claude.com/docs/en/settings#permission-settings See https://code.claude.com/docs/en/tools-reference for full list of tools available to Claude.
plans_directory
class-attribute
instance-attribute
¶
plans_directory: str | None = Field("~/.claude/plans", alias="plansDirectory", examples=["./plans"])
Customize where plan files are stored. Path is relative to project root (default: ~/.claude/plans)
plugin_configs
class-attribute
instance-attribute
¶
plugin_configs: dict[str, PluginConfigs] | None = Field(None, alias='pluginConfigs')
Per-plugin configuration including MCP server user configs and plugin options, keyed by plugin ID (plugin@marketplace format). See https://code.claude.com/docs/en/plugins
plugin_suggestion_marketplaces
class-attribute
instance-attribute
¶
plugin_suggestion_marketplaces: list[str] | None = Field(None, alias="pluginSuggestionMarketplaces")
(Managed settings only) Allowlist of marketplace names whose plugins may surface as contextual "suggested for this directory" tips in the /plugin Discover tab. No marketplace-declared suggestions surface without this allowlist. The built-in first-party frontend-design tip is unaffected. See https://code.claude.com/docs/en/settings#available-settings
plugin_trust_message
class-attribute
instance-attribute
¶
(Managed settings only) Custom message appended to the plugin trust warning shown before installation. Use to provide organization-specific context about approved plugins. See https://code.claude.com/docs/en/settings#plugin-settings
policy_helper
class-attribute
instance-attribute
¶
policy_helper: PolicyHelper | None = Field(None, alias='policyHelper')
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
pr_url_template
class-attribute
instance-attribute
¶
pr_url_template: str | None = Field(
None,
alias="prUrlTemplate",
examples=["https://reviews.example.com/{owner}/{repo}/pull/{number}"],
)
URL template for the PR badge shown in the footer and in tool-result summaries. Substitutes placeholders {host}, {owner}, {repo}, {number}, {url} from the gh-reported PR URL. Use this to point PR links at an internal code-review tool instead of github.com. Does not affect #123 autolinks in Claude's prose. See https://code.claude.com/docs/en/settings#available-settings
preferred_notif_channel
class-attribute
instance-attribute
¶
preferred_notif_channel: (
Literal[
"auto",
"terminal_bell",
"iterm2",
"iterm2_with_bell",
"kitty",
"ghostty",
"notifications_disabled",
]
| None
) = Field("auto", alias="preferredNotifChannel")
Method for task-complete and permission-prompt notifications. "auto" (default) sends a desktop notification in iTerm2, Ghostty, and Kitty and does nothing in other terminals; "terminal_bell" rings the bell in any terminal; "notifications_disabled" turns them off. See https://code.claude.com/docs/en/terminal-config#get-a-terminal-bell-or-notification
prefers_reduced_motion
class-attribute
instance-attribute
¶
Reduce or disable UI animations (spinners, shimmer, flash effects) for accessibility
process_wrapper
class-attribute
instance-attribute
¶
process_wrapper: str | None = Field(
None, alias="processWrapper", examples=["/opt/corp/launcher --profile claude"]
)
Corporate launcher command placed in front of the background processes Claude Code starts. Honored from managed settings, a --settings file, and user settings only; the CLAUDE_CODE_PROCESS_WRAPPER environment variable takes precedence when both are set. Requires Claude Code v2.1.210 or later. See https://code.claude.com/docs/en/corporate-launcher
remote_control_at_startup
class-attribute
instance-attribute
¶
Connect Remote Control automatically when each interactive session starts. true = always, false = never, unset = organization default. Requires Claude Code v2.1.119 or later. See https://code.claude.com/docs/en/remote-control#enable-remote-control-for-all-sessions
require_cowork_full_vm_sandbox
class-attribute
instance-attribute
¶
(Managed settings only) Run Claude's tools inside an isolated virtual machine instead of on your Mac. Disables the desktop app's iOS Simulator pane and Claude's simulator tools entirely, so the pane cannot attach a device while it is set. See https://code.claude.com/docs/en/desktop-ios-simulator#turn-off-simulator-access
required_maximum_version
class-attribute
instance-attribute
¶
(Managed settings only) Maximum Claude Code version allowed to start. If the running version is newer, Claude Code exits at startup with instructions to install an approved version. See https://code.claude.com/docs/en/admin-setup#decide-what-to-enforce
required_minimum_version
class-attribute
instance-attribute
¶
(Managed settings only) Minimum Claude Code version required to start. If the running version is older, Claude Code exits at startup rather than only warning. See https://code.claude.com/docs/en/admin-setup#decide-what-to-enforce
respect_gitignore
class-attribute
instance-attribute
¶
Control whether the @ file picker respects .gitignore patterns. When true (default), files matching .gitignore patterns are excluded from suggestions
respond_to_bash_commands
class-attribute
instance-attribute
¶
Whether Claude responds after an input-box ! shell command runs (v2.1.186+). Set to false to add the command output to context without a response. See https://code.claude.com/docs/en/interactive-mode#shell-mode-with--prefix
sandbox
class-attribute
instance-attribute
¶
sandbox: Sandbox | None = None
Sandbox execution configuration. See https://code.claude.com/docs/en/sandboxing
show_clear_context_on_plan_accept
class-attribute
instance-attribute
¶
When true, the plan-approval dialog offers a "clear context" option. Defaults to false.
show_thinking_summaries
class-attribute
instance-attribute
¶
Show thinking summaries in the transcript view (Ctrl+O). Thinking summaries are not generated by default in interactive sessions; set to true to restore. See https://code.claude.com/docs/en/settings#available-settings
show_turn_duration
class-attribute
instance-attribute
¶
Show turn duration messages after responses (e.g., "Cooked for 1m 6s"). Set to false to hide these messages (default: true)
skill_listing_budget_fraction
class-attribute
instance-attribute
¶
skill_listing_budget_fraction: float | None = Field(
0.01, alias="skillListingBudgetFraction", gt=0.0, le=1.0
)
Fraction of the model context window reserved for the skill listing sent to Claude (default 0.01 = 1%). When the listing exceeds this, descriptions are shortened to fit. Also configurable via the SLASH_COMMAND_TOOL_CHAR_BUDGET environment variable (fixed character count). See https://code.claude.com/docs/en/skills#skill-descriptions-are-cut-short
skill_listing_max_desc_chars
class-attribute
instance-attribute
¶
Per-skill character cap on the combined description and when_to_use text in the skill listing Claude sees each turn. Text longer than this is truncated. See https://code.claude.com/docs/en/skills#skill-descriptions-are-cut-short
skill_overrides
class-attribute
instance-attribute
¶
skill_overrides: dict[str, Literal["on", "name-only", "user-invocable-only", "off"]] | None = Field(
None, alias="skillOverrides", examples=[{"legacy-context": "name-only", "deploy": "off"}]
)
Per-skill visibility overrides. Controls whether skills appear to Claude and in the / picker. Values: 'on' (name and description shown, default), 'name-only' (name only), 'user-invocable-only' (hidden from Claude, visible in /), 'off' (hidden everywhere). Plugin skills are not affected by this setting. See https://code.claude.com/docs/en/skills#override-skill-visibility-from-settings
skip_dangerous_mode_permission_prompt
class-attribute
instance-attribute
¶
skip_dangerous_mode_permission_prompt: bool | None = Field(
None, alias="skipDangerousModePermissionPrompt"
)
Whether the user has accepted the bypass permissions mode dialog. Typically managed by the CLI rather than set by hand.
skip_web_fetch_preflight
class-attribute
instance-attribute
¶
Skip the WebFetch blocklist check for enterprise environments with restrictive security policies. See https://code.claude.com/docs/en/settings#available-settings
skipped_marketplaces
class-attribute
instance-attribute
¶
List of marketplace names the user has chosen not to install when prompted. See https://code.claude.com/docs/en/discover-plugins
skipped_plugins
class-attribute
instance-attribute
¶
List of plugin IDs (plugin@marketplace format) the user has chosen not to install when prompted. See https://code.claude.com/docs/en/discover-plugins
spinner_tips_enabled
class-attribute
instance-attribute
¶
Show tips in the spinner while Claude is working. Set to false to disable tips (default: true)
spinner_tips_override
class-attribute
instance-attribute
¶
spinner_tips_override: SpinnerTipsOverride | None = Field(None, alias='spinnerTipsOverride')
Customize the tips displayed in the spinner while Claude is working. See https://code.claude.com/docs/en/settings#available-settings
spinner_verbs
class-attribute
instance-attribute
¶
spinner_verbs: SpinnerVerbs | None = Field(None, alias='spinnerVerbs')
Customize the verbs shown in spinner progress messages
ssh_configs
class-attribute
instance-attribute
¶
ssh_configs: list[SshConfig] | None = Field(None, alias='sshConfigs')
(Managed settings) Pre-configured SSH connections distributed to Desktop users. See https://code.claude.com/docs/en/desktop#ssh-sessions
ssh_host_allowlist
class-attribute
instance-attribute
¶
(Managed settings only) Allowlist restricting Desktop SSH sessions to approved hosts. Patterns are case-insensitive; * matches any host and *.example.com matches example.com and any subdomain. See https://code.claude.com/docs/en/desktop#ssh-sessions
status_line
class-attribute
instance-attribute
¶
status_line: StatusLine | None = Field(
None, alias="statusLine", examples=[{"type": "command", "command": "~/.claude/statusline.sh"}]
)
Custom status line display configuration. See https://code.claude.com/docs/en/statusline
strict_known_marketplaces
class-attribute
instance-attribute
¶
strict_known_marketplaces: (
list[
StrictMarketplaceHostPattern
| StrictMarketplaceGithub
| StrictMarketplaceGit
| StrictMarketplaceUrl
| StrictMarketplaceNpm
| StrictMarketplaceFile
| StrictMarketplaceDirectory
| StrictMarketplacePathPattern
| StrictMarketplaceSkillsDir
]
| None
) = Field(
None,
alias="strictKnownMarketplaces",
examples=[
[
{"source": "github", "repo": "acme-corp/approved-plugins"},
{"source": "npm", "package": "@acme-corp/compliance-plugins"},
]
],
)
(Managed settings only) Allowlist of plugin marketplaces users can add. Undefined = no restrictions, empty array = lockdown. Uses exact matching for source specifications. See https://code.claude.com/docs/en/plugin-marketplaces#managed-marketplace-restrictions
strict_plugin_only_customization
class-attribute
instance-attribute
¶
strict_plugin_only_customization: bool | StrictPluginOnlyCustomization | None = Field(
None, alias="strictPluginOnlyCustomization"
)
(Managed settings) Block non-plugin customization sources for the listed surfaces. Array form locks specific surfaces (e.g., ["skills", "hooks"]); true locks all four; false is an explicit no-op. See https://code.claude.com/docs/en/plugins-reference
subagent_status_line
class-attribute
instance-attribute
¶
subagent_status_line: SubagentStatusLine | None = Field(None, alias='subagentStatusLine')
Status line configuration for subagent sessions. See https://code.claude.com/docs/en/statusline#subagent-status-lines
syntax_highlighting_disabled
class-attribute
instance-attribute
¶
Disable syntax highlighting in diffs, code blocks, and file previews. See https://code.claude.com/docs/en/settings#available-settings
teammate_default_model
class-attribute
instance-attribute
¶
Default model for agent team teammates when the spawn prompt does not specify one. Set to a model alias such as "sonnet", or null to inherit the lead's current /model selection. Appears in /config as Default teammate model. See https://code.claude.com/docs/en/agent-teams
teammate_mode
class-attribute
instance-attribute
¶
teammate_mode: Literal["auto", "in-process", "tmux", "iterm2"] | None = Field(
"in-process", alias="teammateMode"
)
How agent team teammates display: "auto" picks split panes in tmux or iTerm2, in-process otherwise; "iterm2" (added in v2.1.186) forces iTerm2 native split panes and requires the it2 CLI (it shows an error with the install command if it2 is missing). The default is "in-process" (it was "auto" before v2.1.179). Agent teams are experimental and disabled by default. Enable them by adding CLAUDE_CODE_EXPERIMENTAL_AGENT_TEAMS to your settings.json or environment. See https://code.claude.com/docs/en/agent-teams#choose-a-display-mode
terminal_progress_bar_enabled
class-attribute
instance-attribute
¶
Enable the terminal progress bar that shows progress in supported terminals like Windows Terminal and iTerm2 (default: true)
theme
class-attribute
instance-attribute
¶
theme: (
Literal[
"auto", "dark", "light", "dark-daltonized", "light-daltonized", "dark-ansi", "light-ansi"
]
| Theme
| None
) = None
Color theme for the interface: auto, dark, light, the daltonized variants (deuteranopia-friendly), the ansi variants (16-color terminals), or a custom theme reference such as custom:<slug> or custom:<plugin-name>:<slug>. See https://code.claude.com/docs/en/terminal-config#match-the-color-theme
tui
class-attribute
instance-attribute
¶
TUI rendering mode. Use "fullscreen" for the flicker-free alt-screen renderer with virtualized scrollback; "default" for the classic main-screen renderer. Corresponds to the /tui command. See https://code.claude.com/docs/en/settings#available-settings
use_auto_mode_during_plan
class-attribute
instance-attribute
¶
When true, apply the auto mode classifier during plan mode to auto-approve safe read-only tool calls while planning. Has no effect unless permissions.defaultMode allows auto. See https://code.claude.com/docs/en/permissions
verbose
class-attribute
instance-attribute
¶
Show full tool output instead of truncated summaries. The --verbose flag overrides this for a single session. Requires Claude Code v2.1.119 or later. See https://code.claude.com/docs/en/settings#available-settings
view_mode
class-attribute
instance-attribute
¶
Transcript view mode. "default" shows standard interactive view; "verbose" shows expanded tool details; "focus" shows prompt, one-line tool summaries, and final response only (Ctrl+O toggle). See https://code.claude.com/docs/en/settings#available-settings
vim_insert_mode_remaps
class-attribute
instance-attribute
¶
vim_insert_mode_remaps: dict[str, str] | None = Field(
None, alias="vimInsertModeRemaps", examples=[{"jj": "<Esc>"}]
)
Map two-key INSERT-mode sequences to Escape in vim editor mode. Each key is exactly two printable characters typed in sequence, and <Esc> is the only supported target; other entries are ignored. Read from user, --settings flag, and managed settings only, so a repository's checked-in settings cannot remap your keystrokes. Has no effect unless editorMode is "vim". Requires Claude Code v2.1.208 or later. See https://code.claude.com/docs/en/interactive-mode#remap-insert-mode-key-sequences
voice
class-attribute
instance-attribute
¶
voice: Voice | None = None
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
voice_enabled
class-attribute
instance-attribute
¶
Legacy alias for voice.enabled; prefer the voice object. Requires a Claude.ai account. See https://code.claude.com/docs/en/settings#available-settings
wheel_scroll_acceleration_enabled
class-attribute
instance-attribute
¶
wheel_scroll_acceleration_enabled: bool | None = Field(None, alias="wheelScrollAccelerationEnabled")
In fullscreen rendering, accelerate mouse-wheel scroll speed during fast scrolls (v2.1.174+). Set to false for a constant scroll rate per wheel notch. See https://code.claude.com/docs/en/fullscreen#mouse-wheel-scrolling
workflow_keyword_trigger_enabled
class-attribute
instance-attribute
¶
Whether including the keyword "ultracode" in a prompt triggers a dynamic workflow. Requires Claude Code v2.1.157 or later. See https://code.claude.com/docs/en/settings#available-settings
workflow_size_guideline
class-attribute
instance-attribute
¶
workflow_size_guideline: Literal["unrestricted", "small", "medium", "large"] | None = Field(
"unrestricted", alias="workflowSizeGuideline"
)
Sets the agent count Claude aims for in the dynamic workflows it writes. Claude Code sends the value to Claude as advice, not an enforced cap. Accepts "unrestricted" (default, which sends no guideline), "small", "medium", or "large". Appears in /config as Dynamic workflow size, and can be set with /config workflowSizeGuideline=small. Requires Claude Code v2.1.202 or later. On v2.1.203 or later the guideline's agent count also replaces the default threshold for the Large workflow warning. See https://code.claude.com/docs/en/workflows#set-a-size-guideline
worktree
class-attribute
instance-attribute
¶
worktree: Worktree | None = None
Configuration for --worktree sessions. See https://code.claude.com/docs/en/settings#worktree-settings
wsl_inherits_windows_settings
class-attribute
instance-attribute
¶
(Windows managed settings only) When true, Claude Code on WSL reads managed settings from the Windows policy chain in addition to /etc/claude-code, with Windows sources taking priority. Only honored when set in the HKLM registry key or C:\Program Files\ClaudeCode\managed-settings.json, both of which require Windows admin to write. For HKCU policy to also apply on WSL, the flag must additionally be set in HKCU itself. Has no effect on native Windows. See https://code.claude.com/docs/en/settings#available-settings
Credentials
¶
Bases: ClaudeCodeBaseModel
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.
Source code in src/clawd_code_sdk/models/settings.py
allow_plaintext_inject
class-attribute
instance-attribute
¶
Allow mask substitution on plain HTTP requests as well as TLS-terminated HTTPS. On plain HTTP the upstream identity is unverified and the credential travels in cleartext, so leave this off outside trusted test networks. Only honored from user, managed, or CLI --settings settings, not from .claude/settings.json or .claude/settings.local.json (default: false). Requires Claude Code v2.1.199 or later. See https://code.claude.com/docs/en/sandboxing#protect-credentials
DeniedMcpServerByServerName
¶
Bases: ClaudeCodeBaseModel
Source code in src/clawd_code_sdk/models/settings.py
server_name
class-attribute
instance-attribute
¶
Name of the MCP server that is explicitly blocked
Env
¶
Bases: ClaudeCodeBaseModel
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.
Source code in src/clawd_code_sdk/models/settings.py
18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 346 347 348 349 350 351 352 353 354 355 356 357 358 359 360 361 362 363 364 365 366 367 368 369 370 371 372 373 374 375 376 377 378 379 380 381 382 383 384 385 386 387 388 389 390 391 392 393 394 395 396 397 398 399 400 401 402 403 404 405 406 407 408 409 410 411 412 413 414 415 416 417 418 419 420 421 422 423 424 425 426 427 428 429 430 431 432 433 434 435 436 437 438 439 440 441 442 443 444 445 446 447 448 449 450 451 452 453 454 455 456 457 458 459 460 461 462 463 464 465 466 467 468 469 470 471 472 473 474 475 476 477 478 479 480 481 482 483 484 485 486 487 488 489 490 491 492 493 494 495 496 497 498 499 500 501 502 503 504 505 506 507 508 509 510 511 512 513 514 515 516 517 518 519 520 521 522 523 524 525 526 527 528 529 530 531 532 533 534 535 536 537 538 539 540 541 542 543 544 545 546 547 548 549 550 551 552 553 554 555 556 557 558 559 560 561 562 563 564 565 566 567 568 569 570 571 572 573 574 575 576 577 578 579 580 581 582 583 584 585 586 587 588 589 590 591 592 593 594 595 596 597 598 599 600 601 602 603 604 605 606 607 608 609 610 611 612 613 614 615 616 617 618 619 620 621 622 623 624 625 626 627 628 629 630 631 632 633 634 635 636 637 638 639 640 641 642 643 644 645 646 647 648 649 650 651 652 653 654 655 656 657 658 659 660 661 662 663 664 665 666 667 668 669 670 671 672 673 674 675 676 677 678 679 680 681 682 683 684 685 686 687 688 689 690 691 692 693 694 695 696 697 698 699 700 701 702 703 704 705 706 707 708 709 710 711 712 713 714 715 716 717 718 719 720 721 722 723 724 725 726 727 728 729 730 731 732 733 734 735 736 737 738 739 740 741 742 743 744 745 746 747 748 749 750 751 752 753 754 755 756 757 758 759 760 761 762 763 764 765 766 767 768 769 770 771 772 773 774 775 776 777 778 779 780 781 782 783 784 785 786 787 788 789 790 791 792 793 794 795 796 797 798 799 800 801 802 803 804 805 806 807 808 809 810 811 812 813 814 815 816 817 818 819 820 821 822 823 824 825 826 827 828 829 830 831 832 833 834 835 836 837 838 839 840 841 842 843 844 845 846 847 848 849 850 851 852 853 854 855 856 857 858 859 860 861 862 863 864 865 866 867 868 869 870 871 872 873 874 875 876 877 878 879 880 881 882 883 884 885 886 887 888 889 890 891 892 893 894 895 896 897 898 899 900 901 902 903 904 905 906 907 908 909 910 911 912 913 914 915 916 917 918 919 920 921 922 923 924 925 926 927 928 929 930 931 932 933 934 935 936 937 938 939 940 941 942 943 944 945 946 947 948 949 950 951 952 953 954 955 956 957 958 959 960 961 962 963 964 965 966 967 968 969 970 971 972 973 974 975 976 977 978 979 980 981 982 983 984 985 986 987 988 989 990 991 992 993 994 995 996 997 998 999 1000 1001 1002 1003 1004 1005 1006 1007 1008 1009 1010 1011 1012 1013 1014 1015 1016 1017 1018 1019 1020 1021 1022 1023 1024 1025 1026 1027 1028 1029 1030 1031 1032 1033 1034 1035 1036 1037 1038 1039 1040 1041 1042 1043 1044 1045 1046 1047 1048 1049 1050 1051 1052 1053 1054 1055 1056 1057 1058 1059 1060 1061 1062 1063 1064 1065 1066 1067 1068 1069 1070 1071 1072 1073 1074 1075 1076 1077 1078 1079 1080 1081 1082 1083 1084 1085 1086 1087 1088 1089 1090 1091 1092 1093 1094 1095 1096 1097 1098 1099 1100 1101 1102 1103 1104 1105 1106 1107 1108 1109 1110 1111 1112 1113 1114 1115 1116 1117 1118 1119 1120 1121 1122 1123 1124 1125 1126 1127 1128 1129 1130 1131 1132 1133 1134 1135 1136 1137 1138 1139 1140 1141 1142 1143 1144 1145 1146 1147 1148 1149 1150 1151 1152 1153 1154 1155 1156 1157 1158 1159 1160 1161 1162 1163 1164 1165 1166 1167 1168 1169 1170 1171 1172 1173 1174 1175 1176 1177 1178 1179 1180 1181 1182 1183 1184 1185 1186 1187 1188 1189 1190 1191 1192 1193 1194 1195 1196 1197 1198 1199 1200 1201 1202 1203 1204 1205 1206 1207 1208 1209 1210 1211 1212 1213 1214 1215 1216 1217 1218 1219 1220 1221 1222 1223 1224 1225 1226 1227 1228 1229 1230 1231 1232 1233 1234 1235 1236 1237 1238 1239 1240 1241 1242 1243 1244 1245 1246 1247 1248 1249 1250 1251 1252 1253 1254 1255 1256 1257 1258 1259 1260 1261 1262 1263 1264 1265 1266 1267 1268 1269 1270 1271 1272 1273 1274 1275 1276 1277 1278 1279 1280 1281 1282 1283 1284 1285 1286 1287 1288 1289 1290 1291 1292 1293 1294 1295 1296 1297 1298 1299 1300 1301 1302 1303 1304 1305 1306 1307 1308 1309 1310 1311 1312 1313 1314 1315 1316 1317 1318 1319 1320 1321 1322 1323 1324 1325 1326 1327 1328 1329 1330 1331 1332 1333 1334 1335 1336 1337 1338 1339 1340 1341 1342 1343 1344 1345 1346 1347 1348 1349 1350 1351 1352 1353 1354 1355 1356 1357 1358 1359 1360 1361 1362 1363 1364 1365 1366 1367 1368 1369 1370 1371 1372 1373 1374 1375 1376 1377 1378 1379 1380 1381 1382 1383 1384 1385 1386 1387 1388 1389 1390 1391 1392 1393 1394 1395 1396 1397 1398 1399 1400 1401 1402 1403 1404 1405 1406 1407 1408 1409 1410 1411 1412 1413 1414 1415 1416 1417 1418 1419 1420 1421 1422 1423 1424 1425 1426 1427 1428 1429 1430 1431 1432 1433 1434 1435 1436 1437 1438 1439 1440 1441 1442 1443 1444 1445 1446 1447 1448 1449 1450 1451 1452 1453 1454 1455 1456 1457 1458 1459 1460 1461 1462 1463 1464 1465 1466 1467 1468 1469 1470 1471 1472 1473 1474 1475 1476 1477 1478 1479 1480 1481 1482 1483 1484 1485 1486 1487 1488 1489 1490 1491 1492 1493 1494 1495 1496 1497 1498 1499 1500 1501 1502 1503 1504 1505 1506 1507 1508 1509 1510 1511 1512 1513 1514 1515 1516 1517 1518 1519 1520 1521 1522 1523 1524 1525 1526 1527 1528 1529 1530 1531 1532 1533 1534 1535 1536 1537 1538 1539 1540 1541 1542 1543 1544 1545 1546 1547 1548 1549 1550 1551 1552 1553 1554 1555 1556 1557 1558 1559 1560 1561 1562 1563 1564 1565 1566 1567 1568 1569 1570 1571 1572 1573 1574 1575 1576 1577 1578 1579 1580 1581 1582 1583 1584 1585 1586 1587 1588 1589 1590 1591 1592 1593 1594 1595 1596 1597 1598 1599 1600 1601 1602 1603 1604 1605 1606 1607 1608 1609 1610 1611 1612 1613 1614 1615 1616 1617 1618 1619 1620 1621 1622 1623 1624 1625 1626 1627 1628 1629 1630 1631 1632 1633 1634 1635 1636 1637 1638 1639 1640 1641 1642 1643 1644 1645 1646 1647 1648 1649 1650 1651 1652 1653 1654 1655 1656 1657 1658 1659 1660 1661 1662 1663 1664 1665 1666 1667 1668 1669 1670 1671 1672 1673 1674 1675 1676 1677 1678 1679 1680 1681 1682 1683 1684 1685 1686 1687 1688 1689 1690 1691 1692 1693 1694 1695 1696 1697 1698 1699 1700 1701 1702 1703 1704 1705 1706 1707 1708 1709 1710 1711 1712 1713 1714 1715 1716 1717 1718 1719 1720 1721 1722 1723 1724 1725 1726 1727 1728 1729 1730 1731 1732 1733 1734 1735 1736 1737 1738 1739 1740 1741 1742 1743 1744 1745 1746 1747 1748 1749 1750 1751 1752 1753 1754 1755 1756 1757 1758 1759 1760 1761 1762 1763 1764 1765 1766 1767 1768 1769 1770 1771 1772 1773 1774 | |
anthropic_api_key
class-attribute
instance-attribute
¶
API key for Anthropic API authentication
anthropic_auth_token
class-attribute
instance-attribute
¶
Custom Authorization header bearer token for API requests
anthropic_aws_api_key
class-attribute
instance-attribute
¶
Workspace API key for Claude Platform on AWS; takes precedence over SigV4 authentication. See https://code.claude.com/docs/en/claude-platform-on-aws#1-configure-aws-credentials
anthropic_aws_base_url
class-attribute
instance-attribute
¶
Override the Claude Platform on AWS endpoint URL. Default is https://aws-external-anthropic.{region}.api.aws. See https://code.claude.com/docs/en/claude-platform-on-aws#route-through-a-corporate-proxy
anthropic_aws_workspace_id
class-attribute
instance-attribute
¶
Required workspace ID for Claude Platform on AWS; sent as the anthropic-workspace-id header on every request. See https://code.claude.com/docs/en/claude-platform-on-aws#2-configure-claude-code
anthropic_base_url
class-attribute
instance-attribute
¶
Override API endpoint URL for proxy or gateway routing
anthropic_bedrock_base_url
class-attribute
instance-attribute
¶
Override Amazon Bedrock endpoint URL
anthropic_bedrock_mantle_base_url
class-attribute
instance-attribute
¶
anthropic_bedrock_mantle_base_url: str | None = Field(
None, alias="ANTHROPIC_BEDROCK_MANTLE_BASE_URL"
)
Override Bedrock Mantle endpoint URL
anthropic_bedrock_service_tier
class-attribute
instance-attribute
¶
anthropic_bedrock_service_tier: Literal["default", "flex", "priority"] | None = Field(
None, alias="ANTHROPIC_BEDROCK_SERVICE_TIER"
)
Select Bedrock service tier; sent as X-Amzn-Bedrock-Service-Tier header. See https://code.claude.com/docs/en/amazon-bedrock#service-tiers
anthropic_betas
class-attribute
instance-attribute
¶
Comma-separated beta header values to include in API requests
anthropic_custom_headers
class-attribute
instance-attribute
¶
Custom HTTP headers for API requests (newline-separated 'Name: Value' pairs)
anthropic_custom_model_option
class-attribute
instance-attribute
¶
Custom model ID to add as an entry in the model picker
anthropic_custom_model_option_description
class-attribute
instance-attribute
¶
anthropic_custom_model_option_description: str | None = Field(
None, alias="ANTHROPIC_CUSTOM_MODEL_OPTION_DESCRIPTION"
)
Display description for the custom model in the model picker
anthropic_custom_model_option_name
class-attribute
instance-attribute
¶
anthropic_custom_model_option_name: str | None = Field(
None, alias="ANTHROPIC_CUSTOM_MODEL_OPTION_NAME"
)
Display name for the custom model in the model picker
anthropic_custom_model_option_supported_capabilities
class-attribute
instance-attribute
¶
anthropic_custom_model_option_supported_capabilities: str | None = Field(
None, alias="ANTHROPIC_CUSTOM_MODEL_OPTION_SUPPORTED_CAPABILITIES"
)
JSON object specifying capability flags for the custom model
anthropic_default_fable_model
class-attribute
instance-attribute
¶
Override the default Fable-class model ID. See https://code.claude.com/docs/en/model-config#environment-variables
anthropic_default_fable_model_description
class-attribute
instance-attribute
¶
anthropic_default_fable_model_description: str | None = Field(
None, alias="ANTHROPIC_DEFAULT_FABLE_MODEL_DESCRIPTION"
)
Display description shown for the Fable model in the model picker. See https://code.claude.com/docs/en/model-config#customize-pinned-model-display-and-capabilities
anthropic_default_fable_model_name
class-attribute
instance-attribute
¶
anthropic_default_fable_model_name: str | None = Field(
None, alias="ANTHROPIC_DEFAULT_FABLE_MODEL_NAME"
)
Display name shown for the Fable model in the model picker. See https://code.claude.com/docs/en/model-config#customize-pinned-model-display-and-capabilities
anthropic_default_fable_model_supported_capabilities
class-attribute
instance-attribute
¶
anthropic_default_fable_model_supported_capabilities: str | None = Field(
None, alias="ANTHROPIC_DEFAULT_FABLE_MODEL_SUPPORTED_CAPABILITIES"
)
Comma-separated list of capabilities the pinned Fable model supports. See https://code.claude.com/docs/en/model-config#customize-pinned-model-display-and-capabilities
anthropic_default_haiku_model
class-attribute
instance-attribute
¶
Override default Haiku model ID
anthropic_default_haiku_model_description
class-attribute
instance-attribute
¶
anthropic_default_haiku_model_description: str | None = Field(
None, alias="ANTHROPIC_DEFAULT_HAIKU_MODEL_DESCRIPTION"
)
Display description shown for the Haiku model in the model picker. See https://code.claude.com/docs/en/model-config#customize-pinned-model-display-and-capabilities
anthropic_default_haiku_model_name
class-attribute
instance-attribute
¶
anthropic_default_haiku_model_name: str | None = Field(
None, alias="ANTHROPIC_DEFAULT_HAIKU_MODEL_NAME"
)
Display name shown for the Haiku model in the model picker. See https://code.claude.com/docs/en/model-config#customize-pinned-model-display-and-capabilities
anthropic_default_haiku_model_supported_capabilities
class-attribute
instance-attribute
¶
anthropic_default_haiku_model_supported_capabilities: str | None = Field(
None, alias="ANTHROPIC_DEFAULT_HAIKU_MODEL_SUPPORTED_CAPABILITIES"
)
Comma-separated list of capabilities the pinned Haiku model supports. See https://code.claude.com/docs/en/model-config#customize-pinned-model-display-and-capabilities
anthropic_default_opus_model
class-attribute
instance-attribute
¶
Override default Opus model ID
anthropic_default_opus_model_description
class-attribute
instance-attribute
¶
anthropic_default_opus_model_description: str | None = Field(
None, alias="ANTHROPIC_DEFAULT_OPUS_MODEL_DESCRIPTION"
)
Display description shown for the Opus model in the model picker. See https://code.claude.com/docs/en/model-config#customize-pinned-model-display-and-capabilities
anthropic_default_opus_model_name
class-attribute
instance-attribute
¶
anthropic_default_opus_model_name: str | None = Field(
None, alias="ANTHROPIC_DEFAULT_OPUS_MODEL_NAME"
)
Display name shown for the Opus model in the model picker. See https://code.claude.com/docs/en/model-config#customize-pinned-model-display-and-capabilities
anthropic_default_opus_model_supported_capabilities
class-attribute
instance-attribute
¶
anthropic_default_opus_model_supported_capabilities: str | None = Field(
None, alias="ANTHROPIC_DEFAULT_OPUS_MODEL_SUPPORTED_CAPABILITIES"
)
Comma-separated list of capabilities the pinned Opus model supports. See https://code.claude.com/docs/en/model-config#customize-pinned-model-display-and-capabilities
anthropic_default_sonnet_model
class-attribute
instance-attribute
¶
Override default Sonnet model ID
anthropic_default_sonnet_model_description
class-attribute
instance-attribute
¶
anthropic_default_sonnet_model_description: str | None = Field(
None, alias="ANTHROPIC_DEFAULT_SONNET_MODEL_DESCRIPTION"
)
Display description shown for the Sonnet model in the model picker. See https://code.claude.com/docs/en/model-config#customize-pinned-model-display-and-capabilities
anthropic_default_sonnet_model_name
class-attribute
instance-attribute
¶
anthropic_default_sonnet_model_name: str | None = Field(
None, alias="ANTHROPIC_DEFAULT_SONNET_MODEL_NAME"
)
Display name shown for the Sonnet model in the model picker. See https://code.claude.com/docs/en/model-config#customize-pinned-model-display-and-capabilities
anthropic_default_sonnet_model_supported_capabilities
class-attribute
instance-attribute
¶
anthropic_default_sonnet_model_supported_capabilities: str | None = Field(
None, alias="ANTHROPIC_DEFAULT_SONNET_MODEL_SUPPORTED_CAPABILITIES"
)
Comma-separated list of capabilities the pinned Sonnet model supports. See https://code.claude.com/docs/en/model-config#customize-pinned-model-display-and-capabilities
anthropic_foundry_api_key
class-attribute
instance-attribute
¶
Microsoft Foundry authentication key
anthropic_foundry_auth_token
class-attribute
instance-attribute
¶
Bearer token for Microsoft Foundry authentication, such as a Microsoft Entra access token. Claude Code sends it as the Authorization: Bearer header. Takes precedence over ANTHROPIC_FOUNDRY_API_KEY and over the Azure default credential chain. Requires Claude Code v2.1.203 or later. See https://code.claude.com/docs/en/microsoft-foundry
anthropic_foundry_base_url
class-attribute
instance-attribute
¶
Microsoft Foundry resource URL
anthropic_foundry_resource
class-attribute
instance-attribute
¶
Microsoft Foundry resource name
anthropic_model
class-attribute
instance-attribute
¶
Model to use (e.g., 'claude-opus-4-1', 'claude-sonnet-4-5-20250514', 'opus', 'sonnet', 'haiku')
anthropic_small_fast_model
class-attribute
instance-attribute
¶
DEPRECATED (prefer ANTHROPIC_DEFAULT_HAIKU_MODEL). Haiku-class model to use for background and low-complexity tasks (e.g., 'claude-3-5-haiku-latest')
anthropic_small_fast_model_aws_region
class-attribute
instance-attribute
¶
anthropic_small_fast_model_aws_region: str | None = Field(
None, alias="ANTHROPIC_SMALL_FAST_MODEL_AWS_REGION"
)
Override the AWS region for the Haiku-class model on Bedrock and Bedrock Mantle. Has no effect without ANTHROPIC_DEFAULT_HAIKU_MODEL (or the deprecated ANTHROPIC_SMALL_FAST_MODEL) set on Bedrock. See https://code.claude.com/docs/en/amazon-bedrock#3-configure-claude-code
anthropic_vertex_base_url
class-attribute
instance-attribute
¶
Override Google Cloud's Agent Platform (formerly Vertex AI) endpoint URL. Use for custom endpoints or when routing through an LLM gateway
anthropic_vertex_project_id
class-attribute
instance-attribute
¶
GCP project ID for Google Cloud's Agent Platform (formerly Vertex AI) requests. Overridden by GCLOUD_PROJECT, GOOGLE_CLOUD_PROJECT, or the project in your GOOGLE_APPLICATION_CREDENTIALS credential file
anthropic_workspace_id
class-attribute
instance-attribute
¶
Workspace ID for workload identity federation. Scopes the minted token to a specific workspace when the federation rule covers more than one. See https://code.claude.com/docs/en/env-vars
api_force_idle_timeout
class-attribute
instance-attribute
¶
Override the 5-minute idle timeout for streaming responses (0 disables it). See https://code.claude.com/docs/en/env-vars
api_timeout_ms
class-attribute
instance-attribute
¶
Timeout for API requests in milliseconds (default: 600000, or 10 minutes; maximum: 2147483647). Increase this when requests time out on slow networks or when routing through a proxy. Values above the maximum overflow the underlying timer and cause requests to fail immediately.
aws_bearer_token_bedrock
class-attribute
instance-attribute
¶
Bearer token for Bedrock API authentication
aws_region
class-attribute
instance-attribute
¶
AWS region for Amazon Bedrock and Claude Platform on AWS requests (e.g. us-east-1). See https://code.claude.com/docs/en/amazon-bedrock#3-configure-claude-code
bash_default_timeout_ms
class-attribute
instance-attribute
¶
Default bash command timeout in milliseconds (default: 120000)
bash_max_output_length
class-attribute
instance-attribute
¶
Maximum bash output characters before truncation
bash_max_timeout_ms
class-attribute
instance-attribute
¶
Maximum bash command timeout in milliseconds (default: 600000)
beta_tracing_endpoint
class-attribute
instance-attribute
¶
Endpoint that, together with ENABLE_BETA_TRACING_DETAILED=1, activates detailed beta tracing spans (e.g. claude_code.hook). See https://code.claude.com/docs/en/monitoring-usage#traces-beta
ccr_force_bundle
class-attribute
instance-attribute
¶
Force local repo bundling for --remote invocations
claude_afk_countdown_ms
class-attribute
instance-attribute
¶
How many milliseconds before auto-continue the on-screen countdown appears on an unanswered AskUserQuestion dialog. Default 20000 (20 seconds). See CLAUDE_AFK_TIMEOUT_MS. Requires Claude Code v2.1.198 or later. See https://code.claude.com/docs/en/env-vars
claude_afk_timeout_ms
class-attribute
instance-attribute
¶
How many milliseconds of idle time before an unanswered AskUserQuestion dialog auto-continues without you. Default 60000 (60 seconds). Requires Claude Code v2.1.198 or later. See https://code.claude.com/docs/en/env-vars
claude_agent_sdk_disable_builtin_agents
class-attribute
instance-attribute
¶
claude_agent_sdk_disable_builtin_agents: Literal["0", "1"] | None = Field(
None, alias="CLAUDE_AGENT_SDK_DISABLE_BUILTIN_AGENTS"
)
Disable built-in subagent types in Agent SDK
claude_agent_sdk_mcp_no_prefix
class-attribute
instance-attribute
¶
claude_agent_sdk_mcp_no_prefix: Literal["0", "1"] | None = Field(
None, alias="CLAUDE_AGENT_SDK_MCP_NO_PREFIX"
)
Skip mcp__<server>__ prefix on MCP tool names in Agent SDK
claude_async_agent_stall_timeout_ms
class-attribute
instance-attribute
¶
claude_async_agent_stall_timeout_ms: str | None = Field(
None, alias="CLAUDE_ASYNC_AGENT_STALL_TIMEOUT_MS"
)
Stall timeout for background subagents in milliseconds (default 600000). The timer resets on each streaming progress event; if no progress arrives within the window the subagent is aborted and the task is marked failed, surfacing any partial result to the parent. See https://code.claude.com/docs/en/env-vars
claude_auto_background_tasks
class-attribute
instance-attribute
¶
claude_auto_background_tasks: Literal["0", "1"] | None = Field(
None, alias="CLAUDE_AUTO_BACKGROUND_TASKS"
)
Force-enable automatic backgrounding of tasks
claude_autocompact_pct_override
class-attribute
instance-attribute
¶
Context capacity percentage threshold for auto-compaction (1-100)
claude_ax_screen_reader
class-attribute
instance-attribute
¶
Set to 1 to render screen-reader friendly output: flat text without decorative borders or animations. Set to 0 to force screen-reader mode off even when axScreenReader is true. The --ax-screen-reader flag takes precedence. Requires Claude Code v2.1.181 or later. See https://code.claude.com/docs/en/env-vars
claude_bash_maintain_project_working_dir
class-attribute
instance-attribute
¶
claude_bash_maintain_project_working_dir: Literal["0", "1"] | None = Field(
None, alias="CLAUDE_BASH_MAINTAIN_PROJECT_WORKING_DIR"
)
Return to original project directory after each bash command
claude_client_presence_file
class-attribute
instance-attribute
¶
Path to a file whose existence marks the user as present; while it exists, mobile push notifications are skipped (v2.1.181+). See https://code.claude.com/docs/en/env-vars
claude_code_accessibility
class-attribute
instance-attribute
¶
claude_code_accessibility: Literal["0", "1"] | None = Field(None, alias="CLAUDE_CODE_ACCESSIBILITY")
Keep native cursor visible for screen magnifiers and assistive tools
claude_code_additional_directories_claude_md
class-attribute
instance-attribute
¶
claude_code_additional_directories_claude_md: Literal["0", "1"] | None = Field(
None, alias="CLAUDE_CODE_ADDITIONAL_DIRECTORIES_CLAUDE_MD"
)
Load CLAUDE.md memory files from additional directories
claude_code_alt_screen_full_repaint
class-attribute
instance-attribute
¶
claude_code_alt_screen_full_repaint: Literal["0", "1"] | None = Field(
None, alias="CLAUDE_CODE_ALT_SCREEN_FULL_REPAINT"
)
Force a full-screen repaint on every frame in fullscreen mode. See https://code.claude.com/docs/en/env-vars
claude_code_always_enable_effort
class-attribute
instance-attribute
¶
claude_code_always_enable_effort: Literal["0", "1"] | None = Field(
None, alias="CLAUDE_CODE_ALWAYS_ENABLE_EFFORT"
)
Send the effort parameter for all models, not just those with effort enabled by default. See https://code.claude.com/docs/en/env-vars
claude_code_api_key_helper_ttl_ms
class-attribute
instance-attribute
¶
claude_code_api_key_helper_ttl_ms: str | None = Field(
None, alias="CLAUDE_CODE_API_KEY_HELPER_TTL_MS"
)
Credential helper refresh interval in milliseconds
claude_code_artifact_auto_open
class-attribute
instance-attribute
¶
claude_code_artifact_auto_open: Literal["0", "1"] | None = Field(
None, alias="CLAUDE_CODE_ARTIFACT_AUTO_OPEN"
)
Set to 0 to stop auto-opening the browser when a new artifact is created. See https://code.claude.com/docs/en/artifacts#create-an-artifact
claude_code_attribution_header
class-attribute
instance-attribute
¶
claude_code_attribution_header: Literal["0", "1"] | None = Field(
None, alias="CLAUDE_CODE_ATTRIBUTION_HEADER"
)
Include attribution block in the system prompt
claude_code_auto_compact_window
class-attribute
instance-attribute
¶
Context capacity for compaction calculations in tokens
claude_code_auto_connect_ide
class-attribute
instance-attribute
¶
claude_code_auto_connect_ide: Literal["true", "false"] | None = Field(
None, alias="CLAUDE_CODE_AUTO_CONNECT_IDE"
)
Override automatic IDE connection behavior
claude_code_aws_chain_resolve_timeout_ms
class-attribute
instance-attribute
¶
claude_code_aws_chain_resolve_timeout_ms: str | None = Field(
None, alias="CLAUDE_CODE_AWS_CHAIN_RESOLVE_TIMEOUT_MS"
)
Time in milliseconds Claude Code waits for the AWS default credential provider chain to produce credentials before the request fails with "AWS default-chain credential resolve timed out" (default: 60000). Raise it when a step in your chain legitimately needs longer, such as a browser-based SSO sign-in with MFA through a wrapper like aws-vault. Applies wherever Claude Code signs with the default chain. Requires Claude Code v2.1.207 or later. See https://code.claude.com/docs/en/amazon-bedrock#credential-caching-and-resolution-timeout
claude_code_bridge_session_id
class-attribute
instance-attribute
¶
Set automatically in Bash tool and hook command subprocesses while the session has an active Remote Control connection, and removed when the connection ends. The value is the session's ID in session_ form, the same identifier that appears in the session's claude.ai/code URL, so a script can link back to the session that ran it. Requires Claude Code v2.1.199 or later. See https://code.claude.com/docs/en/remote-control
claude_code_cert_store
class-attribute
instance-attribute
¶
CA certificate sources (comma-separated: 'bundled', 'system')
claude_code_child_session
class-attribute
instance-attribute
¶
claude_code_child_session: Literal["0", "1"] | None = Field(None, alias="CLAUDE_CODE_CHILD_SESSION")
Set by Claude Code to 1 in nested subprocesses (Bash, PowerShell, Monitor, hook commands, status-line commands) to distinguish nested sessions from a top-level claude launched in IDE terminals (v2.1.172+). A nested interactive claude TUI started this way is excluded from --resume, --continue, up-arrow history, and the claude agents list; non-interactive claude -p sessions still persist (override with CLAUDE_CODE_FORCE_SESSION_PERSISTENCE=1). See https://code.claude.com/docs/en/env-vars
claude_code_client_cert
class-attribute
instance-attribute
¶
Client certificate file path for mutual TLS
claude_code_client_key
class-attribute
instance-attribute
¶
Client private key file path for mutual TLS
claude_code_client_key_passphrase
class-attribute
instance-attribute
¶
claude_code_client_key_passphrase: str | None = Field(
None, alias="CLAUDE_CODE_CLIENT_KEY_PASSPHRASE"
)
Passphrase for encrypted client private key
claude_code_debug_log_level
class-attribute
instance-attribute
¶
claude_code_debug_log_level: Literal["verbose", "debug", "info", "warn", "error"] | None = Field(
None, alias="CLAUDE_CODE_DEBUG_LOG_LEVEL"
)
Debug log verbosity level
claude_code_debug_logs_dir
class-attribute
instance-attribute
¶
Override the debug log file path. Despite the name, this is a file path, not a directory.
claude_code_disable_1_m_context
class-attribute
instance-attribute
¶
claude_code_disable_1_m_context: Literal["0", "1"] | None = Field(
None, alias="CLAUDE_CODE_DISABLE_1M_CONTEXT"
)
Disable 1M context window models
claude_code_disable_adaptive_thinking
class-attribute
instance-attribute
¶
claude_code_disable_adaptive_thinking: Literal["0", "1"] | None = Field(
None, alias="CLAUDE_CODE_DISABLE_ADAPTIVE_THINKING"
)
Disable adaptive reasoning
claude_code_disable_advisor_tool
class-attribute
instance-attribute
¶
claude_code_disable_advisor_tool: Literal["0", "1"] | None = Field(
None, alias="CLAUDE_CODE_DISABLE_ADVISOR_TOOL"
)
Disable the server-side advisor tool. See https://code.claude.com/docs/en/env-vars
claude_code_disable_agent_view
class-attribute
instance-attribute
¶
claude_code_disable_agent_view: Literal["0", "1"] | None = Field(
None, alias="CLAUDE_CODE_DISABLE_AGENT_VIEW"
)
Turn off background agents and agent view (claude agents, --bg, /background, and the on-demand supervisor). Equivalent to the disableAgentView setting. See https://code.claude.com/docs/en/env-vars
claude_code_disable_alternate_screen
class-attribute
instance-attribute
¶
claude_code_disable_alternate_screen: Literal["0", "1"] | None = Field(
None, alias="CLAUDE_CODE_DISABLE_ALTERNATE_SCREEN"
)
Disable alternate screen buffer rendering. When set to 1, keeps conversation in native scrollback instead of fullscreen renderer
claude_code_disable_artifact
class-attribute
instance-attribute
¶
claude_code_disable_artifact: Literal["0", "1"] | None = Field(
None, alias="CLAUDE_CODE_DISABLE_ARTIFACT"
)
Disable the Artifact tool. Equivalent to setting disableArtifact. See https://code.claude.com/docs/en/env-vars
claude_code_disable_attachments
class-attribute
instance-attribute
¶
claude_code_disable_attachments: Literal["0", "1"] | None = Field(
None, alias="CLAUDE_CODE_DISABLE_ATTACHMENTS"
)
Disable attachment processing
claude_code_disable_auto_memory
class-attribute
instance-attribute
¶
claude_code_disable_auto_memory: Literal["0", "1"] | None = Field(
None, alias="CLAUDE_CODE_DISABLE_AUTO_MEMORY"
)
Disable automatic memory feature
claude_code_disable_background_tasks
class-attribute
instance-attribute
¶
claude_code_disable_background_tasks: Literal["0", "1"] | None = Field(
None, alias="CLAUDE_CODE_DISABLE_BACKGROUND_TASKS"
)
Disable all background task functionality
claude_code_disable_bedrock_content_type_guard
class-attribute
instance-attribute
¶
claude_code_disable_bedrock_content_type_guard: Literal["0", "1"] | None = Field(
None, alias="CLAUDE_CODE_DISABLE_BEDROCK_CONTENT_TYPE_GUARD"
)
Set to 1 to skip the check that an Amazon Bedrock streaming response carries the application/vnd.amazon.eventstream content-type. Without this variable, a response with a different content-type fails with an error naming that content-type, which means a gateway or proxy is transforming the response. Set it only when the gateway rewrites the Content-Type header but passes the binary event-stream body through unmodified; if the body itself was transformed, requests fail with "Truncated event message received" instead. Requires Claude Code v2.1.208 or later. See https://code.claude.com/docs/en/amazon-bedrock#streaming-errors-behind-a-gateway-or-proxy
claude_code_disable_bg_exit_handoff
class-attribute
instance-attribute
¶
claude_code_disable_bg_exit_handoff: Literal["0", "1"] | None = Field(
None, alias="CLAUDE_CODE_DISABLE_BG_EXIT_HANDOFF"
)
Set to 1 to stop a background session's running background shell commands, dynamic workflows, and (as of v2.1.198) background subagents when the supervisor stops, restarts, or updates that session's process, instead of handing them off to the session's next process. Affects only that handoff; CLAUDE_DISABLE_ADOPT turns off both. Requires Claude Code v2.1.196 or later. See https://code.claude.com/docs/en/env-vars
claude_code_disable_bg_shell_pressure_reap
class-attribute
instance-attribute
¶
claude_code_disable_bg_shell_pressure_reap: Literal["0", "1"] | None = Field(
None, alias="CLAUDE_CODE_DISABLE_BG_SHELL_PRESSURE_REAP"
)
UNDOCUMENTED. Disable automatic memory-pressure reaping of idle background shell commands (added v2.1.193).
claude_code_disable_bundled_skills
class-attribute
instance-attribute
¶
claude_code_disable_bundled_skills: Literal["0", "1"] | None = Field(
None, alias="CLAUDE_CODE_DISABLE_BUNDLED_SKILLS"
)
Disable the skills and workflows bundled with Claude Code (plugins and project .claude/skills are unaffected). See https://code.claude.com/docs/en/env-vars
claude_code_disable_claude_mds
class-attribute
instance-attribute
¶
claude_code_disable_claude_mds: Literal["0", "1"] | None = Field(
None, alias="CLAUDE_CODE_DISABLE_CLAUDE_MDS"
)
Prevent loading CLAUDE.md memory files
claude_code_disable_cron
class-attribute
instance-attribute
¶
Disable scheduled/cron tasks
claude_code_disable_experimental_betas
class-attribute
instance-attribute
¶
claude_code_disable_experimental_betas: Literal["0", "1"] | None = Field(
None, alias="CLAUDE_CODE_DISABLE_EXPERIMENTAL_BETAS"
)
Strip anthropic-beta headers from API requests. See https://github.com/anthropics/claude-code/blob/main/CHANGELOG.md#21123
claude_code_disable_explore_plan_agents
class-attribute
instance-attribute
¶
claude_code_disable_explore_plan_agents: Literal["0", "1"] | None = Field(
None, alias="CLAUDE_CODE_DISABLE_EXPLORE_PLAN_AGENTS"
)
Set to 1 to disable the built-in Explore and Plan subagents. Requires Claude Code v2.1.198 or later. See https://code.claude.com/docs/en/env-vars
claude_code_disable_fast_mode
class-attribute
instance-attribute
¶
claude_code_disable_fast_mode: Literal["0", "1"] | None = Field(
None, alias="CLAUDE_CODE_DISABLE_FAST_MODE"
)
Disable fast mode toggle
claude_code_disable_feedback_survey
class-attribute
instance-attribute
¶
claude_code_disable_feedback_survey: Literal["0", "1"] | None = Field(
None, alias="CLAUDE_CODE_DISABLE_FEEDBACK_SURVEY"
)
Disable session quality feedback surveys
claude_code_disable_file_checkpointing
class-attribute
instance-attribute
¶
claude_code_disable_file_checkpointing: Literal["0", "1"] | None = Field(
None, alias="CLAUDE_CODE_DISABLE_FILE_CHECKPOINTING"
)
Disable file checkpointing for /rewind
claude_code_disable_git_instructions
class-attribute
instance-attribute
¶
claude_code_disable_git_instructions: Literal["0", "1"] | None = Field(
None, alias="CLAUDE_CODE_DISABLE_GIT_INSTRUCTIONS"
)
Remove git commit and PR workflow instructions from the system prompt
claude_code_disable_legacy_model_remap
class-attribute
instance-attribute
¶
claude_code_disable_legacy_model_remap: Literal["0", "1"] | None = Field(
None, alias="CLAUDE_CODE_DISABLE_LEGACY_MODEL_REMAP"
)
Prevent automatic remapping of legacy model names
claude_code_disable_mouse
class-attribute
instance-attribute
¶
claude_code_disable_mouse: Literal["0", "1"] | None = Field(None, alias="CLAUDE_CODE_DISABLE_MOUSE")
Disable mouse tracking in fullscreen mode. See https://code.claude.com/docs/en/fullscreen#keep-native-text-selection
claude_code_disable_mouse_clicks
class-attribute
instance-attribute
¶
claude_code_disable_mouse_clicks: Literal["0", "1"] | None = Field(
None, alias="CLAUDE_CODE_DISABLE_MOUSE_CLICKS"
)
Disable mouse click/drag/hover in fullscreen mode while keeping wheel scroll (requires v2.1.195+). CLAUDE_CODE_DISABLE_MOUSE takes precedence when both variables are set. See https://code.claude.com/docs/en/fullscreen#keep-native-text-selection
claude_code_disable_nonessential_traffic
class-attribute
instance-attribute
¶
claude_code_disable_nonessential_traffic: Literal["0", "1"] | None = Field(
None, alias="CLAUDE_CODE_DISABLE_NONESSENTIAL_TRAFFIC"
)
Disable auto-update checks, telemetry, and feedback in one setting
claude_code_disable_nonstreaming_fallback
class-attribute
instance-attribute
¶
claude_code_disable_nonstreaming_fallback: Literal["0", "1"] | None = Field(
None, alias="CLAUDE_CODE_DISABLE_NONSTREAMING_FALLBACK"
)
Disable fallback to non-streaming API mode
claude_code_disable_notification_presence_check
class-attribute
instance-attribute
¶
claude_code_disable_notification_presence_check: Literal["0", "1"] | None = Field(
None, alias="CLAUDE_CODE_DISABLE_NOTIFICATION_PRESENCE_CHECK"
)
Set to 1 to send desktop notifications from the PushNotification tool even while focused on the terminal. Requires Claude Code v2.1.193 or later. See https://code.claude.com/docs/en/env-vars
claude_code_disable_official_marketplace_autoinstall
class-attribute
instance-attribute
¶
claude_code_disable_official_marketplace_autoinstall: Literal["0", "1"] | None = Field(
None, alias="CLAUDE_CODE_DISABLE_OFFICIAL_MARKETPLACE_AUTOINSTALL"
)
Skip automatic installation of official marketplace plugins. See https://code.claude.com/docs/en/env-vars
claude_code_disable_policy_skills
class-attribute
instance-attribute
¶
claude_code_disable_policy_skills: Literal["0", "1"] | None = Field(
None, alias="CLAUDE_CODE_DISABLE_POLICY_SKILLS"
)
Skip loading system-wide policy skills. See https://code.claude.com/docs/en/env-vars
claude_code_disable_terminal_title
class-attribute
instance-attribute
¶
claude_code_disable_terminal_title: Literal["0", "1"] | None = Field(
None, alias="CLAUDE_CODE_DISABLE_TERMINAL_TITLE"
)
Disable terminal title updates
claude_code_disable_thinking
class-attribute
instance-attribute
¶
claude_code_disable_thinking: Literal["0", "1"] | None = Field(
None, alias="CLAUDE_CODE_DISABLE_THINKING"
)
Force-disable extended thinking
claude_code_disable_virtual_scroll
class-attribute
instance-attribute
¶
claude_code_disable_virtual_scroll: Literal["0", "1"] | None = Field(
None, alias="CLAUDE_CODE_DISABLE_VIRTUAL_SCROLL"
)
Disable virtual scrolling in fullscreen mode
claude_code_disable_workflows
class-attribute
instance-attribute
¶
claude_code_disable_workflows: Literal["0", "1"] | None = Field(
None, alias="CLAUDE_CODE_DISABLE_WORKFLOWS"
)
Set to 1 to disable workflows. Equivalent to the disableWorkflows setting. See https://code.claude.com/docs/en/env-vars
claude_code_effort_level
class-attribute
instance-attribute
¶
claude_code_effort_level: Literal["low", "medium", "high", "xhigh", "max", "auto"] | None = Field(
None, alias="CLAUDE_CODE_EFFORT_LEVEL"
)
Reasoning effort level
claude_code_enable_append_subagent_prompt
class-attribute
instance-attribute
¶
claude_code_enable_append_subagent_prompt: Literal["0", "1"] | None = Field(
None, alias="CLAUDE_CODE_ENABLE_APPEND_SUBAGENT_PROMPT"
)
Set to 1 to enable appending extra text to the end of every subagent's system prompt. The --append-subagent-system-prompt flag supplies the appended text and sets this variable automatically, so you do not need to set it yourself. Requires Claude Code v2.1.205 or later. See https://code.claude.com/docs/en/sub-agents
claude_code_enable_auto_mode
class-attribute
instance-attribute
¶
claude_code_enable_auto_mode: Literal["0", "1"] | None = Field(
None, alias="CLAUDE_CODE_ENABLE_AUTO_MODE"
)
Set to 1 to make auto mode available on Amazon Bedrock, Google Cloud Vertex AI, and Microsoft Foundry (requires v2.1.158+; no effect on the Anthropic API where auto mode is available by default). See https://code.claude.com/docs/en/env-vars
claude_code_enable_away_summary
class-attribute
instance-attribute
¶
claude_code_enable_away_summary: Literal["0", "1"] | None = Field(
None, alias="CLAUDE_CODE_ENABLE_AWAY_SUMMARY"
)
Override session recap/away summary availability
claude_code_enable_background_plugin_refresh
class-attribute
instance-attribute
¶
claude_code_enable_background_plugin_refresh: Literal["0", "1"] | None = Field(
None, alias="CLAUDE_CODE_ENABLE_BACKGROUND_PLUGIN_REFRESH"
)
Refresh plugins at turn boundaries. See https://code.claude.com/docs/en/env-vars
claude_code_enable_feedback_survey_for_otel
class-attribute
instance-attribute
¶
claude_code_enable_feedback_survey_for_otel: Literal["0", "1"] | None = Field(
None, alias="CLAUDE_CODE_ENABLE_FEEDBACK_SURVEY_FOR_OTEL"
)
Enable feedback survey collection via OpenTelemetry for enterprises
claude_code_enable_fine_grained_tool_streaming
class-attribute
instance-attribute
¶
claude_code_enable_fine_grained_tool_streaming: Literal["0", "1"] | None = Field(
None, alias="CLAUDE_CODE_ENABLE_FINE_GRAINED_TOOL_STREAMING"
)
Force fine-grained tool output streaming
claude_code_enable_gateway_model_discovery
class-attribute
instance-attribute
¶
claude_code_enable_gateway_model_discovery: Literal["0", "1"] | None = Field(
None, alias="CLAUDE_CODE_ENABLE_GATEWAY_MODEL_DISCOVERY"
)
Enable model discovery from LLM gateway /v1/models endpoint when ANTHROPIC_BASE_URL points at an Anthropic-compatible gateway
claude_code_enable_prompt_suggestion
class-attribute
instance-attribute
¶
claude_code_enable_prompt_suggestion: Literal["true", "false"] | None = Field(
None, alias="CLAUDE_CODE_ENABLE_PROMPT_SUGGESTION"
)
Enable prompt suggestions
claude_code_enable_sdk_file_checkpointing
class-attribute
instance-attribute
¶
claude_code_enable_sdk_file_checkpointing: str | None = Field(
None, alias="CLAUDE_CODE_ENABLE_SDK_FILE_CHECKPOINTING"
)
Enable file checkpointing for a non-interactive CLI run, so claude -p --resume--rewind-files
claude_code_enable_tasks
class-attribute
instance-attribute
¶
Enable task tracking in non-interactive mode
claude_code_enable_telemetry
class-attribute
instance-attribute
¶
claude_code_enable_telemetry: Literal["0", "1"] | None = Field(
None, alias="CLAUDE_CODE_ENABLE_TELEMETRY"
)
Set to 1 to enable telemetry collection. Required for all OpenTelemetry integration. See https://code.claude.com/docs/en/monitoring-usage#common-configuration-variables
claude_code_enhanced_telemetry_beta
class-attribute
instance-attribute
¶
claude_code_enhanced_telemetry_beta: Literal["0", "1"] | None = Field(
None, alias="CLAUDE_CODE_ENHANCED_TELEMETRY_BETA"
)
Enable the enhanced telemetry (tracing) beta. ENABLE_ENHANCED_TELEMETRY_BETA is also accepted. See https://code.claude.com/docs/en/monitoring-usage#traces-beta
claude_code_exit_after_stop_delay
class-attribute
instance-attribute
¶
claude_code_exit_after_stop_delay: str | None = Field(
None, alias="CLAUDE_CODE_EXIT_AFTER_STOP_DELAY"
)
Wait time in milliseconds before auto-exit after stop
claude_code_experimental_agent_teams
class-attribute
instance-attribute
¶
claude_code_experimental_agent_teams: Literal["0", "1"] | None = Field(
None, alias="CLAUDE_CODE_EXPERIMENTAL_AGENT_TEAMS"
)
Enable experimental agent teams feature
claude_code_extra_body
class-attribute
instance-attribute
¶
JSON object to merge into every API request body
claude_code_file_read_max_output_tokens
class-attribute
instance-attribute
¶
claude_code_file_read_max_output_tokens: str | None = Field(
None, alias="CLAUDE_CODE_FILE_READ_MAX_OUTPUT_TOKENS"
)
Token limit for file read operations
claude_code_force_session_persistence
class-attribute
instance-attribute
¶
claude_code_force_session_persistence: Literal["0", "1"] | None = Field(
None, alias="CLAUDE_CODE_FORCE_SESSION_PERSISTENCE"
)
Set to 1 to override the automatic exclusion of nested interactive claude TUI sessions from --resume, --continue, up-arrow history, and the claude agents list (requires v2.1.172+). See https://code.claude.com/docs/en/env-vars
claude_code_force_strikethrough
class-attribute
instance-attribute
¶
claude_code_force_strikethrough: Literal["0", "1"] | None = Field(
None, alias="CLAUDE_CODE_FORCE_STRIKETHROUGH"
)
Set to 1 to force strikethrough rendering for ~~text~~ in Claude's responses when the terminal supports it but is not auto-detected, such as over SSH without TERM_PROGRAM forwarded. Without this, undetected terminals show the literal ~~ markers. Requires Claude Code v2.1.186 or later. See https://code.claude.com/docs/en/env-vars
claude_code_force_sync_output
class-attribute
instance-attribute
¶
claude_code_force_sync_output: Literal["0", "1"] | None = Field(
None, alias="CLAUDE_CODE_FORCE_SYNC_OUTPUT"
)
Force synchronous output flushing. When set to 1, forces synchronized output on terminals that auto-detection misses (e.g., Emacs eat)
claude_code_fork_subagent
class-attribute
instance-attribute
¶
claude_code_fork_subagent: Literal["0", "1"] | None = Field(None, alias="CLAUDE_CODE_FORK_SUBAGENT")
Fork subagent processes in non-interactive sessions. See https://github.com/anthropics/claude-code/blob/main/CHANGELOG.md#21120
claude_code_forward_subagent_text
class-attribute
instance-attribute
¶
claude_code_forward_subagent_text: Literal["0", "1"] | None = Field(
None, alias="CLAUDE_CODE_FORWARD_SUBAGENT_TEXT"
)
Set to 1 to emit subagent text and thinking blocks in claude -p --output-format stream-json output, the same behavior as the --forward-subagent-text flag. Use the variable when a harness invokes claude and cannot pass the flag itself. Unlike the flag, which exits with an error outside non-interactive mode with stream-json output, the variable is ignored there so that nested invocations keep working when it is set process-wide. Requires Claude Code v2.1.211 or later. See https://code.claude.com/docs/en/sub-agents
claude_code_git_bash_path
class-attribute
instance-attribute
¶
Path to Git Bash executable (Windows only)
claude_code_glob_hidden
class-attribute
instance-attribute
¶
claude_code_glob_hidden: Literal["true", "false"] | None = Field(
None, alias="CLAUDE_CODE_GLOB_HIDDEN"
)
Include dotfiles/hidden files in Glob results
claude_code_glob_no_ignore
class-attribute
instance-attribute
¶
claude_code_glob_no_ignore: Literal["true", "false"] | None = Field(
None, alias="CLAUDE_CODE_GLOB_NO_IGNORE"
)
Don't respect .gitignore rules in Glob results
claude_code_glob_timeout_seconds
class-attribute
instance-attribute
¶
claude_code_glob_timeout_seconds: str | None = Field(None, alias="CLAUDE_CODE_GLOB_TIMEOUT_SECONDS")
Glob tool timeout in seconds (default: 20-60)
claude_code_hide_cwd
class-attribute
instance-attribute
¶
Hide the working directory in the startup logo. See https://github.com/anthropics/claude-code/blob/main/CHANGELOG.md#21126
claude_code_ide_host_override
class-attribute
instance-attribute
¶
Override IDE connection address
claude_code_ide_skip_auto_install
class-attribute
instance-attribute
¶
claude_code_ide_skip_auto_install: Literal["0", "1"] | None = Field(
None, alias="CLAUDE_CODE_IDE_SKIP_AUTO_INSTALL"
)
Skip automatic IDE extension installation
claude_code_ide_skip_valid_check
class-attribute
instance-attribute
¶
claude_code_ide_skip_valid_check: Literal["0", "1"] | None = Field(
None, alias="CLAUDE_CODE_IDE_SKIP_VALID_CHECK"
)
Skip IDE lockfile validation
claude_code_max_concurrent_subagents
class-attribute
instance-attribute
¶
claude_code_max_concurrent_subagents: str | None = Field(
None, alias="CLAUDE_CODE_MAX_CONCURRENT_SUBAGENTS"
)
How many subagents can be running in one session before the Agent tool refuses to spawn another (default: 20). Accepts a positive whole number in plain digits; anything else is ignored, so the variable can adjust the cap but cannot disable it. Requires Claude Code v2.1.217 or later. See https://code.claude.com/docs/en/sub-agents#concurrent-subagent-limit
claude_code_max_context_tokens
class-attribute
instance-attribute
¶
Override context window size in tokens
claude_code_max_output_tokens
class-attribute
instance-attribute
¶
Maximum output tokens per API request
claude_code_max_retries
class-attribute
instance-attribute
¶
Maximum API request retry attempts (default: 10)
claude_code_max_subagent_spawn_depth
class-attribute
instance-attribute
¶
claude_code_max_subagent_spawn_depth: str | None = Field(
None, alias="CLAUDE_CODE_MAX_SUBAGENT_SPAWN_DEPTH"
)
Number of subagent layers allowed below the main conversation (default: 1). At the default, subagents cannot spawn their own subagents; set 2 or higher to allow it. Accepts a positive whole number in plain digits; anything else is ignored, so the limit can be raised but not turned off. Requires Claude Code v2.1.217 or later. See https://code.claude.com/docs/en/sub-agents#let-subagents-spawn-their-own-subagents
claude_code_max_subagents_per_session
class-attribute
instance-attribute
¶
claude_code_max_subagents_per_session: str | None = Field(
None, alias="CLAUDE_CODE_MAX_SUBAGENTS_PER_SESSION"
)
Cap on the number of subagents one session can spawn with the Agent tool (default: 200). When Claude reaches the cap, spawning another subagent fails with an error telling Claude to finish the remaining work directly. Accepts a positive whole number in plain digits with no upper bound; this variable does not take the scientific notation or digit-separator spellings. Anything else is ignored and the default applies, so the cap can be raised but not turned off. Requires Claude Code v2.1.212 or later. See https://code.claude.com/docs/en/sub-agents#session-subagent-limit
claude_code_max_tool_use_concurrency
class-attribute
instance-attribute
¶
claude_code_max_tool_use_concurrency: str | None = Field(
None, alias="CLAUDE_CODE_MAX_TOOL_USE_CONCURRENCY"
)
Maximum parallel tool executions (default: 10)
claude_code_max_turns
class-attribute
instance-attribute
¶
Cap the number of agentic turns when no explicit limit is passed. Equivalent to --max-turns, which takes precedence. A non-positive integer is rejected at startup. See https://code.claude.com/docs/en/env-vars
claude_code_max_web_searches_per_session
class-attribute
instance-attribute
¶
claude_code_max_web_searches_per_session: str | None = Field(
None, alias="CLAUDE_CODE_MAX_WEB_SEARCHES_PER_SESSION"
)
Cap on the total number of WebSearch calls one session can make (default: 200). When Claude reaches the cap, further WebSearch calls return a notice telling it to continue with the information it already gathered. Accepts a positive whole number with no upper bound. Anything else is ignored and the default applies, so the cap can be raised but not turned off. Requires Claude Code v2.1.212 or later. See https://code.claude.com/docs/en/tools-reference#websearch-tool-behavior
claude_code_mcp_allowlist_env
class-attribute
instance-attribute
¶
claude_code_mcp_allowlist_env: Literal["0", "1"] | None = Field(
None, alias="CLAUDE_CODE_MCP_ALLOWLIST_ENV"
)
Isolate MCP server environments to allowlisted variables
claude_code_mcp_auto_background_ms
class-attribute
instance-attribute
¶
claude_code_mcp_auto_background_ms: str | None = Field(
None, alias="CLAUDE_CODE_MCP_AUTO_BACKGROUND_MS"
)
Elapsed time in milliseconds before a still-running MCP tool call moves to a background task (default: 120000, or 2 minutes). Set to 0 to turn automatic backgrounding off. Requires Claude Code v2.1.212 or later. See https://code.claude.com/docs/en/mcp#automatic-backgrounding-of-long-tool-calls
claude_code_mcp_tool_idle_timeout
class-attribute
instance-attribute
¶
claude_code_mcp_tool_idle_timeout: str | None = Field(
None, alias="CLAUDE_CODE_MCP_TOOL_IDLE_TIMEOUT"
)
Idle timeout in milliseconds for MCP tool calls. When a stdio, HTTP, SSE, WebSocket, or claude.ai connector MCP server sends no response and no progress notification for this long, the tool call aborts with an error instead of waiting for the overall MCP_TOOL_TIMEOUT. Overrides the per-transport defaults of 300000 (5 minutes) for network servers and 1800000 (30 minutes) for stdio servers. Set to 0 to disable the idle check. Values below 1000 are raised to one second, and the value is capped at the effective MCP_TOOL_TIMEOUT. A per-server timeout in .mcp.json of at least 1000 raises that server's idle window to at least the timeout value. Does not apply to IDE servers or SDK in-process servers. Requires Claude Code v2.1.187 or later. Before v2.1.203, stdio servers were exempt from the idle timeout. See https://code.claude.com/docs/en/mcp
claude_code_native_cursor
class-attribute
instance-attribute
¶
claude_code_native_cursor: Literal["0", "1"] | None = Field(None, alias="CLAUDE_CODE_NATIVE_CURSOR")
Set to 1 to show the terminal's own cursor at the input caret instead of a drawn block. The cursor respects the terminal's blink, shape, and focus settings. See https://code.claude.com/docs/en/env-vars
claude_code_new_init
class-attribute
instance-attribute
¶
Use the interactive /init setup flow
claude_code_no_flicker
class-attribute
instance-attribute
¶
Enable fullscreen rendering mode to reduce flicker
claude_code_oauth_refresh_token
class-attribute
instance-attribute
¶
OAuth refresh token
claude_code_oauth_scopes
class-attribute
instance-attribute
¶
OAuth scopes (space-separated)
claude_code_oauth_token
class-attribute
instance-attribute
¶
OAuth access token
claude_code_otel_content_max_length
class-attribute
instance-attribute
¶
claude_code_otel_content_max_length: str | None = Field(
None, alias="CLAUDE_CODE_OTEL_CONTENT_MAX_LENGTH"
)
Maximum length of content-bearing OpenTelemetry attributes (model responses, tool content, system prompts, raw API bodies), truncation marker included, in UTF-16 code units (default: 61440, i.e. 60 KB). Raise it only if your telemetry backend accepts attribute values larger than 64 KB, or lower it to cut telemetry volume. Requires Claude Code v2.1.214 or later. See https://code.claude.com/docs/en/monitoring-usage#common-configuration-variables
claude_code_otel_diag_stderr
class-attribute
instance-attribute
¶
claude_code_otel_diag_stderr: Literal["0", "1"] | None = Field(
None, alias="CLAUDE_CODE_OTEL_DIAG_STDERR"
)
Set to 1 to write OpenTelemetry exporter diagnostic errors to stderr (otherwise shown only with --debug). Requires v2.1.179+. See https://code.claude.com/docs/en/env-vars
claude_code_otel_flush_timeout_ms
class-attribute
instance-attribute
¶
claude_code_otel_flush_timeout_ms: str | None = Field(
None, alias="CLAUDE_CODE_OTEL_FLUSH_TIMEOUT_MS"
)
OpenTelemetry span flush timeout in milliseconds (default: 5000)
claude_code_otel_headers_helper_debounce_ms
class-attribute
instance-attribute
¶
claude_code_otel_headers_helper_debounce_ms: str | None = Field(
None, alias="CLAUDE_CODE_OTEL_HEADERS_HELPER_DEBOUNCE_MS"
)
OpenTelemetry header helper refresh interval in milliseconds
claude_code_otel_shutdown_timeout_ms
class-attribute
instance-attribute
¶
claude_code_otel_shutdown_timeout_ms: str | None = Field(
None, alias="CLAUDE_CODE_OTEL_SHUTDOWN_TIMEOUT_MS"
)
OpenTelemetry shutdown timeout in milliseconds (default: 2000)
claude_code_package_manager_auto_update
class-attribute
instance-attribute
¶
claude_code_package_manager_auto_update: Literal["0", "1"] | None = Field(
None, alias="CLAUDE_CODE_PACKAGE_MANAGER_AUTO_UPDATE"
)
Enable automatic package manager updates. When set, Claude Code runs the upgrade command in background on Homebrew/WinGet and prompts to restart
claude_code_perforce_mode
class-attribute
instance-attribute
¶
claude_code_perforce_mode: Literal["0", "1"] | None = Field(None, alias="CLAUDE_CODE_PERFORCE_MODE")
Enable Perforce write protection mode
claude_code_plugin_cache_dir
class-attribute
instance-attribute
¶
Override the plugins root directory. Despite the name, this sets the parent directory, not the cache itself: marketplaces and the plugin cache live in subdirectories under this path. Defaults to ~/.claude/plugins. See https://code.claude.com/docs/en/env-vars
claude_code_plugin_git_timeout_ms
class-attribute
instance-attribute
¶
claude_code_plugin_git_timeout_ms: str | None = Field(
None, alias="CLAUDE_CODE_PLUGIN_GIT_TIMEOUT_MS"
)
Plugin marketplace git operations timeout in milliseconds (default: 120000). See https://github.com/anthropics/claude-code/blob/main/CHANGELOG.md#2151
claude_code_plugin_keep_marketplace_on_failure
class-attribute
instance-attribute
¶
claude_code_plugin_keep_marketplace_on_failure: Literal["0", "1"] | None = Field(
None, alias="CLAUDE_CODE_PLUGIN_KEEP_MARKETPLACE_ON_FAILURE"
)
Keep plugin cache on update failure
claude_code_plugin_prefer_https
class-attribute
instance-attribute
¶
claude_code_plugin_prefer_https: Literal["0", "1"] | None = Field(
None, alias="CLAUDE_CODE_PLUGIN_PREFER_HTTPS"
)
Set to 1 to clone GitHub owner/repo plugin sources over HTTPS instead of SSH. Useful in CI runners, containers, or environments without a configured SSH key for github.com. See https://code.claude.com/docs/en/env-vars
claude_code_plugin_seed_dir
class-attribute
instance-attribute
¶
Path(s) to pre-populated plugin directories. See https://code.claude.com/docs/en/plugin-marketplaces#pre-populate-plugins-for-containers
claude_code_powershell_respect_execution_policy
class-attribute
instance-attribute
¶
claude_code_powershell_respect_execution_policy: Literal["0", "1"] | None = Field(
None, alias="CLAUDE_CODE_POWERSHELL_RESPECT_EXECUTION_POLICY"
)
Set to 1 to stop Claude Code from passing -ExecutionPolicy Bypass when spawning PowerShell for tool calls, hooks, and status line commands. By default Claude Code bypasses execution policy so .ps1 scripts work on default-Restricted Windows installs. See https://code.claude.com/docs/en/env-vars
claude_code_print_bg_wait_ceiling_ms
class-attribute
instance-attribute
¶
claude_code_print_bg_wait_ceiling_ms: str | None = Field(
None, alias="CLAUDE_CODE_PRINT_BG_WAIT_CEILING_MS"
)
Cap, in milliseconds, on how long claude -p waits for background subagents at exit (default 10 minutes; set to 0 to wait without limit, added v2.1.182). See https://code.claude.com/docs/en/headless#background-tasks-at-exit
claude_code_process_wrapper
class-attribute
instance-attribute
¶
Launch the processes Claude Code starts from its own binary, such as the background service that hosts agent view sessions, through a corporate launcher given as an argv prefix like /opt/corp/launcher. Set it in the env block of user or managed settings, not as a shell export, so the detached background service inherits it; project and local settings cannot set it. Equivalent to the processWrapper setting, which requires Claude Code v2.1.210 or later; this variable takes precedence when both are set. The VS Code extension configures its own launcher separately through its claudeProcessWrapper setting. Ignored on Windows. Requires Claude Code v2.1.208 or later. See https://code.claude.com/docs/en/corporate-launcher
claude_code_propagate_traceparent
class-attribute
instance-attribute
¶
claude_code_propagate_traceparent: Literal["0", "1"] | None = Field(
None, alias="CLAUDE_CODE_PROPAGATE_TRACEPARENT"
)
Propagate the W3C traceparent header on API requests when using a custom ANTHROPIC_BASE_URL. See https://code.claude.com/docs/en/monitoring-usage#traces-beta
claude_code_provider_managed_by_host
class-attribute
instance-attribute
¶
claude_code_provider_managed_by_host: Literal["0", "1"] | None = Field(
None, alias="CLAUDE_CODE_PROVIDER_MANAGED_BY_HOST"
)
Indicate that the host application manages provider routing
claude_code_proxy_resolves_hosts
class-attribute
instance-attribute
¶
claude_code_proxy_resolves_hosts: Literal["0", "1"] | None = Field(
None, alias="CLAUDE_CODE_PROXY_RESOLVES_HOSTS"
)
Allow proxy to handle DNS resolution
claude_code_remote
class-attribute
instance-attribute
¶
Indicates a remote web environment session
claude_code_remote_session_id
class-attribute
instance-attribute
¶
Cloud session identifier for remote sessions
claude_code_resume_interrupted_turn
class-attribute
instance-attribute
¶
claude_code_resume_interrupted_turn: Literal["0", "1"] | None = Field(
None, alias="CLAUDE_CODE_RESUME_INTERRUPTED_TURN"
)
Automatically resume from a mid-turn interruption
claude_code_resume_interrupted_turn_max_age_ms
class-attribute
instance-attribute
¶
claude_code_resume_interrupted_turn_max_age_ms: str | None = Field(
None, alias="CLAUDE_CODE_RESUME_INTERRUPTED_TURN_MAX_AGE_MS"
)
Maximum age in milliseconds of the last transcript message for a session that ended mid-turn to continue automatically on resume. When the last message is older than this bound, Claude Code skips both the CLAUDE_CODE_RESUME_INTERRUPTED_TURN automatic resume and the injected CLAUDE_CODE_RESUME_PROMPT continuation message, and the session starts idle so you continue explicitly. Unset or 0 means no bound; a negative or non-numeric value applies a one-hour bound. Spawn scripts for long-running agents can set this so a restart against an old transcript does not re-run a stale prompt. Claude Code sets a one-hour bound itself when it restarts a crashed agent view session that inherited its conversation from an interactive session. Requires Claude Code v2.1.211 or later. See https://code.claude.com/docs/en/env-vars
claude_code_resume_prompt
class-attribute
instance-attribute
¶
Override the continuation message injected when resuming a session that ended mid-turn (default "Continue from where you left off."). An empty string uses the default. See https://code.claude.com/docs/en/env-vars
claude_code_retry_watchdog
class-attribute
instance-attribute
¶
claude_code_retry_watchdog: Literal["0", "1"] | None = Field(
None, alias="CLAUDE_CODE_RETRY_WATCHDOG"
)
Set to 1 for unattended sessions (eval harnesses, CI, remote workers) to retry 429/529 capacity errors indefinitely, backing off up to 5 minutes, instead of failing after CLAUDE_CODE_MAX_RETRIES. Requires v2.1.186+. See https://code.claude.com/docs/en/env-vars
claude_code_safe_mode
class-attribute
instance-attribute
¶
Set to 1 to start in safe mode: CLAUDE.md, skills, plugins, hooks, MCP servers, custom commands and agents, output styles, workflows, custom themes, custom keybindings, status line and file-suggestion commands, LSP servers, and auto-memory do not load, for troubleshooting a broken configuration. Managed settings policy still applies. Equivalent to passing --safe-mode; directly spawned child processes inherit the variable. See https://code.claude.com/docs/en/env-vars
claude_code_script_caps
class-attribute
instance-attribute
¶
Script invocation limits (JSON object)
claude_code_scroll_speed
class-attribute
instance-attribute
¶
Set the mouse wheel scroll multiplier in fullscreen rendering. Accepts any positive value up to 20, including fractional values below 1 such as 0.5 to slow accelerated trackpad and wheel scrolling in terminals that already amplify wheel events. Set to 3 to match vim if your terminal sends one wheel event per notch without amplification. See https://code.claude.com/docs/en/fullscreen#mouse-wheel-scrolling
claude_code_session_id
class-attribute
instance-attribute
¶
Set automatically to the current session ID in Bash/PowerShell tool subprocesses, hook command subprocesses, and stdio MCP server subprocesses. Read-only. See https://code.claude.com/docs/en/env-vars
claude_code_sessionend_hooks_timeout_ms
class-attribute
instance-attribute
¶
claude_code_sessionend_hooks_timeout_ms: str | None = Field(
None, alias="CLAUDE_CODE_SESSIONEND_HOOKS_TIMEOUT_MS"
)
Override the time budget in milliseconds for SessionEnd hooks (default 1500, raised up to 60000 by the highest configured per-hook timeout). See https://code.claude.com/docs/en/env-vars
claude_code_shell
class-attribute
instance-attribute
¶
Override automatic shell detection (e.g., '/bin/zsh', '/bin/bash')
claude_code_shell_prefix
class-attribute
instance-attribute
¶
Command prefix wrapper for shell commands
claude_code_simple
class-attribute
instance-attribute
¶
Minimal mode with core tools only
claude_code_simple_system_prompt
class-attribute
instance-attribute
¶
claude_code_simple_system_prompt: Literal["0", "1"] | None = Field(
None, alias="CLAUDE_CODE_SIMPLE_SYSTEM_PROMPT"
)
Use a shortened system prompt
claude_code_skip_anthropic_aws_auth
class-attribute
instance-attribute
¶
claude_code_skip_anthropic_aws_auth: Literal["0", "1"] | None = Field(
None, alias="CLAUDE_CODE_SKIP_ANTHROPIC_AWS_AUTH"
)
Skip client-side SigV4 authentication for Claude Platform on AWS; use when a proxy or gateway adds authentication before forwarding. See https://code.claude.com/docs/en/claude-platform-on-aws#route-through-a-corporate-proxy
claude_code_skip_aws_cred_cache
class-attribute
instance-attribute
¶
claude_code_skip_aws_cred_cache: Literal["0", "1"] | None = Field(
None, alias="CLAUDE_CODE_SKIP_AWS_CRED_CACHE"
)
Set to 1 to turn off the in-process cache of credentials resolved from the AWS default credential provider chain, so Claude Code resolves the chain on every API request. With the cache off, an SSO-backed profile requests credentials from IAM Identity Center on every request. Requires Claude Code v2.1.207 or later. See https://code.claude.com/docs/en/amazon-bedrock#credential-caching-and-resolution-timeout
claude_code_skip_bedrock_auth
class-attribute
instance-attribute
¶
claude_code_skip_bedrock_auth: Literal["0", "1"] | None = Field(
None, alias="CLAUDE_CODE_SKIP_BEDROCK_AUTH"
)
Skip AWS authentication for Bedrock
claude_code_skip_fast_mode_network_errors
class-attribute
instance-attribute
¶
claude_code_skip_fast_mode_network_errors: Literal["0", "1"] | None = Field(
None, alias="CLAUDE_CODE_SKIP_FAST_MODE_NETWORK_ERRORS"
)
Set to 1 to treat a failed fast mode availability check as available, for networks that block the check's direct request to api.anthropic.com. Claude Code still honors a "disabled by your organization" response. See https://code.claude.com/docs/en/fast-mode#use-fast-mode-behind-proxies-and-llm-gateways
claude_code_skip_fast_mode_org_check
class-attribute
instance-attribute
¶
claude_code_skip_fast_mode_org_check: Literal["0", "1"] | None = Field(
None, alias="CLAUDE_CODE_SKIP_FAST_MODE_ORG_CHECK"
)
Set to 1 to skip the client-side fast mode availability check, for proxies that intercept the check's request rather than refuse it. The API still rejects fast mode requests when your organization has fast mode disabled. See https://code.claude.com/docs/en/fast-mode#use-fast-mode-behind-proxies-and-llm-gateways
claude_code_skip_foundry_auth
class-attribute
instance-attribute
¶
claude_code_skip_foundry_auth: Literal["0", "1"] | None = Field(
None, alias="CLAUDE_CODE_SKIP_FOUNDRY_AUTH"
)
Skip Azure authentication for Foundry
claude_code_skip_mantle_auth
class-attribute
instance-attribute
¶
claude_code_skip_mantle_auth: Literal["0", "1"] | None = Field(
None, alias="CLAUDE_CODE_SKIP_MANTLE_AUTH"
)
Skip AWS authentication for Bedrock Mantle (for example, when using an LLM gateway). See https://code.claude.com/docs/en/env-vars
claude_code_skip_prompt_history
class-attribute
instance-attribute
¶
claude_code_skip_prompt_history: Literal["0", "1"] | None = Field(
None, alias="CLAUDE_CODE_SKIP_PROMPT_HISTORY"
)
Disable transcript writes entirely. See https://code.claude.com/docs/en/settings#environment-variables
claude_code_skip_vertex_auth
class-attribute
instance-attribute
¶
claude_code_skip_vertex_auth: Literal["0", "1"] | None = Field(
None, alias="CLAUDE_CODE_SKIP_VERTEX_AUTH"
)
Skip Google authentication for Google Cloud's Agent Platform
claude_code_stop_hook_block_cap
class-attribute
instance-attribute
¶
Override the default maximum consecutive Stop hook blocks (default: 8) before the turn ends with a warning. Raise this when a stop hook legitimately needs more than 8 iterations to converge. See https://code.claude.com/docs/en/hooks-guide
claude_code_subagent_model
class-attribute
instance-attribute
¶
Override model used by subagents
claude_code_subprocess_env_scrub
class-attribute
instance-attribute
¶
claude_code_subprocess_env_scrub: Literal["0", "1"] | None = Field(
None, alias="CLAUDE_CODE_SUBPROCESS_ENV_SCRUB"
)
Strip credentials from subprocess environments
claude_code_sync_plugin_install
class-attribute
instance-attribute
¶
claude_code_sync_plugin_install: Literal["0", "1"] | None = Field(
None, alias="CLAUDE_CODE_SYNC_PLUGIN_INSTALL"
)
Wait synchronously for plugin installation
claude_code_sync_plugin_install_timeout_ms
class-attribute
instance-attribute
¶
claude_code_sync_plugin_install_timeout_ms: str | None = Field(
None, alias="CLAUDE_CODE_SYNC_PLUGIN_INSTALL_TIMEOUT_MS"
)
Timeout in milliseconds for synchronous plugin installation
claude_code_sync_skills
class-attribute
instance-attribute
¶
Set to 1 to download enabled claude.ai skills into ~/.claude/skills/ before the first query and resync every 10 minutes (non-interactive -p mode only; requires claude.ai auth). See https://code.claude.com/docs/en/env-vars
claude_code_sync_skills_install_timeout_ms
class-attribute
instance-attribute
¶
claude_code_sync_skills_install_timeout_ms: str | None = Field(
None, alias="CLAUDE_CODE_SYNC_SKILLS_INSTALL_TIMEOUT_MS"
)
Timeout in milliseconds for a mid-session skills resync when CLAUDE_CODE_SYNC_SKILLS is set (default 30000). See https://code.claude.com/docs/en/env-vars
claude_code_sync_skills_wait_timeout_ms
class-attribute
instance-attribute
¶
claude_code_sync_skills_wait_timeout_ms: str | None = Field(
None, alias="CLAUDE_CODE_SYNC_SKILLS_WAIT_TIMEOUT_MS"
)
Timeout in milliseconds for the first query to wait on the initial skills sync when CLAUDE_CODE_SYNC_SKILLS is set (default 5000). See https://code.claude.com/docs/en/env-vars
claude_code_syntax_highlight
class-attribute
instance-attribute
¶
claude_code_syntax_highlight: Literal["true", "false"] | None = Field(
None, alias="CLAUDE_CODE_SYNTAX_HIGHLIGHT"
)
UNDOCUMENTED. Enable syntax highlighting in diffs
claude_code_task_list_id
class-attribute
instance-attribute
¶
Shared task list identifier for team collaboration
claude_code_team_name
class-attribute
instance-attribute
¶
Agent team membership name
claude_code_team_teardown_park_timeout_ms
class-attribute
instance-attribute
¶
claude_code_team_teardown_park_timeout_ms: str | None = Field(
None, alias="CLAUDE_CODE_TEAM_TEARDOWN_PARK_TIMEOUT_MS"
)
Override, in milliseconds, how long a non-interactive session waits at exit for its agent team to finish tearing down. Accepts 1000 to 60000; an out-of-range value is ignored and the default of 10000 applies. Requires Claude Code v2.1.206 or later. See https://code.claude.com/docs/en/agent-teams
claude_code_tmpdir
class-attribute
instance-attribute
¶
Override temp directory path
claude_code_tmux_truecolor
class-attribute
instance-attribute
¶
claude_code_tmux_truecolor: Literal["0", "1"] | None = Field(
None, alias="CLAUDE_CODE_TMUX_TRUECOLOR"
)
Allow 24-bit truecolor rendering in tmux
claude_code_use_anthropic_aws
class-attribute
instance-attribute
¶
claude_code_use_anthropic_aws: Literal["0", "1"] | None = Field(
None, alias="CLAUDE_CODE_USE_ANTHROPIC_AWS"
)
Enable Claude Platform on AWS as the API provider. Bedrock and Foundry take precedence if also set. See https://code.claude.com/docs/en/claude-platform-on-aws#2-configure-claude-code
claude_code_use_bedrock
class-attribute
instance-attribute
¶
Enable Amazon Bedrock as the API provider. See https://code.claude.com/docs/en/amazon-bedrock#3-configure-claude-code
claude_code_use_foundry
class-attribute
instance-attribute
¶
Enable Microsoft Foundry as the API provider. See https://code.claude.com/docs/en/microsoft-foundry#3-configure-claude-code
claude_code_use_mantle
class-attribute
instance-attribute
¶
Enable the Mantle endpoint (native Anthropic API shape on Bedrock). See https://code.claude.com/docs/en/amazon-bedrock#enable-mantle
claude_code_use_native_file_search
class-attribute
instance-attribute
¶
claude_code_use_native_file_search: Literal["0", "1"] | None = Field(
None, alias="CLAUDE_CODE_USE_NATIVE_FILE_SEARCH"
)
Set to 1 to discover custom commands, subagents, and output styles using Node.js file APIs instead of ripgrep (for environments where the bundled ripgrep is unavailable). See https://code.claude.com/docs/en/env-vars
claude_code_use_powershell_tool
class-attribute
instance-attribute
¶
claude_code_use_powershell_tool: Literal["0", "1"] | None = Field(
None, alias="CLAUDE_CODE_USE_POWERSHELL_TOOL"
)
Enable PowerShell as default shell for interactive commands (Windows)
claude_code_use_vertex
class-attribute
instance-attribute
¶
Enable Google Cloud's Agent Platform as the API provider. See https://code.claude.com/docs/en/google-vertex-ai#4-configure-claude-code
claude_config_dir
class-attribute
instance-attribute
¶
Override the configuration directory (default ~/.claude) where settings, credentials, session history, and plugins are stored. Useful for running multiple accounts side by side. See https://code.claude.com/docs/en/env-vars
claude_disable_adopt
class-attribute
instance-attribute
¶
Set to 1 to stop in-flight background work instead of carrying it over when you background a session by pressing ← or with /background. Claude Code asks you to confirm before backgrounding, then stops the tasks that would otherwise carry over. Requires Claude Code v2.1.195 or later. See https://code.claude.com/docs/en/env-vars
claude_effort
class-attribute
instance-attribute
¶
claude_effort: Literal["low", "medium", "high", "xhigh", "max"] | None = Field(
None, alias="CLAUDE_EFFORT"
)
Set automatically in Bash tool subprocesses and hook commands to the active effort level for the turn (low, medium, high, xhigh, or max; ultracode reports as xhigh). Read-only. See https://code.claude.com/docs/en/env-vars
claude_enable_byte_watchdog
class-attribute
instance-attribute
¶
claude_enable_byte_watchdog: Literal["0", "1"] | None = Field(
None, alias="CLAUDE_ENABLE_BYTE_WATCHDOG"
)
Set to 1 to force-enable, or 0 to force-disable, the byte-level streaming idle watchdog that aborts a connection when no bytes arrive within the configured timeout. Enabled by default on direct Anthropic API and Claude Platform on AWS connections. See https://code.claude.com/docs/en/env-vars
claude_enable_byte_watchdog_bedrock
class-attribute
instance-attribute
¶
claude_enable_byte_watchdog_bedrock: Literal["0", "1"] | None = Field(
None, alias="CLAUDE_ENABLE_BYTE_WATCHDOG_BEDROCK"
)
Set to 1 to enable the byte-level streaming idle watchdog on Amazon Bedrock eventstream responses (off by default). Configure the timeout with CLAUDE_STREAM_IDLE_TIMEOUT_MS. See https://code.claude.com/docs/en/env-vars
claude_enable_stream_watchdog
class-attribute
instance-attribute
¶
claude_enable_stream_watchdog: Literal["0", "1"] | None = Field(
None, alias="CLAUDE_ENABLE_STREAM_WATCHDOG"
)
Set to 1 to force-enable, or 0 to force-disable, the event-level streaming idle watchdog. When unset, the watchdog is on by default for all providers (as of v2.1.196; before that the unset default was server-controlled on the direct Anthropic API and off on other providers). See https://code.claude.com/docs/en/env-vars
claude_env_file
class-attribute
instance-attribute
¶
File path for persisting environment variables across Bash commands
claude_pid
class-attribute
instance-attribute
¶
Claude Code sets this to its own process ID in the subprocesses it spawns: Bash and PowerShell tool commands and hook commands. On Linux, the Bash tool's shell integration uses it to refuse a pkill pattern that would match the Claude Code process itself. Read it from your own scripts to identify or signal the parent Claude Code process deliberately. Requires Claude Code v2.1.214 or later. See https://code.claude.com/docs/en/errors#pkill-pattern-matches-the-claude-code-process
claude_project_dir
class-attribute
instance-attribute
¶
Project root directory path (also provided to hooks)
claude_remote_control_session_name_prefix
class-attribute
instance-attribute
¶
claude_remote_control_session_name_prefix: str | None = Field(
None, alias="CLAUDE_REMOTE_CONTROL_SESSION_NAME_PREFIX"
)
Prefix for auto-generated Remote Control session names when no explicit name is set. Defaults to the machine hostname, producing names like myhost-graceful-unicorn. See https://code.claude.com/docs/en/remote-control#start-a-remote-control-session
claude_stream_idle_timeout_ms
class-attribute
instance-attribute
¶
Timeout in milliseconds before the streaming idle watchdog closes a stalled connection. When set explicitly the minimum is 300000 (5 minutes); lower values are clamped. See https://code.claude.com/docs/en/env-vars
claudecode
class-attribute
instance-attribute
¶
Set to 1 in subprocesses Claude Code spawns (Bash and PowerShell tools, tmux sessions, hook commands, status line commands, stdio MCP server subprocesses). IDE extensions also set this in their integrated terminals. To distinguish a direct tool/hook subprocess from a stdio MCP server subprocess, use CLAUDE_CODE_CHILD_SESSION instead. See https://code.claude.com/docs/en/env-vars
cloud_ml_region
class-attribute
instance-attribute
¶
Google Cloud's Agent Platform region: global, a multi-region location (eu, us), or a specific region (e.g. us-east5). See https://code.claude.com/docs/en/google-vertex-ai#region-configuration
debug
class-attribute
instance-attribute
¶
Set to a truthy value (1, true, yes, or on) to enable debug mode, equivalent to --debug. Logs are written to ~/.claude/debug/<session-id>.txt. See https://code.claude.com/docs/en/env-vars
disable_auto_compact
class-attribute
instance-attribute
¶
Set to 1 to disable automatic compaction when approaching the context limit. The manual /compact command remains available. Equivalent to autoCompactEnabled: false. See https://code.claude.com/docs/en/env-vars
disable_autoupdater
class-attribute
instance-attribute
¶
Set to 1 to disable automatic background updates. Manual claude update still works; use DISABLE_UPDATES to block both. See https://code.claude.com/docs/en/env-vars
disable_compact
class-attribute
instance-attribute
¶
Set to 1 to disable all compaction: both automatic compaction and the manual /compact command. See https://code.claude.com/docs/en/env-vars
disable_cost_warnings
class-attribute
instance-attribute
¶
Set to 1 to disable cost warning messages. See https://code.claude.com/docs/en/env-vars
disable_doctor_command
class-attribute
instance-attribute
¶
Set to 1 to hide the /doctor command (useful for managed deployments). See https://code.claude.com/docs/en/env-vars
disable_error_reporting
class-attribute
instance-attribute
¶
Disable Sentry error reporting
disable_extra_usage_command
class-attribute
instance-attribute
¶
disable_extra_usage_command: Literal["0", "1"] | None = Field(
None, alias="DISABLE_EXTRA_USAGE_COMMAND"
)
Set to 1 to hide the /usage-credits command for purchasing additional usage beyond rate limits. See https://code.claude.com/docs/en/env-vars
disable_feedback_command
class-attribute
instance-attribute
¶
Set to 1 to disable the /feedback command. The older name DISABLE_BUG_COMMAND is also accepted. See https://code.claude.com/docs/en/env-vars
disable_growthbook
class-attribute
instance-attribute
¶
Set to 1 to disable GrowthBook feature-flag fetching and use code defaults for every flag. Telemetry stays on unless DISABLE_TELEMETRY is also set. See https://code.claude.com/docs/en/env-vars
disable_install_github_app_command
class-attribute
instance-attribute
¶
disable_install_github_app_command: Literal["0", "1"] | None = Field(
None, alias="DISABLE_INSTALL_GITHUB_APP_COMMAND"
)
Set to 1 to hide the /install-github-app command (already hidden on Bedrock, Vertex, or Foundry). See https://code.claude.com/docs/en/env-vars
disable_installation_checks
class-attribute
instance-attribute
¶
disable_installation_checks: Literal["0", "1"] | None = Field(
None, alias="DISABLE_INSTALLATION_CHECKS"
)
Set to 1 to disable installation warnings (use only when manually managing the installation location). See https://code.claude.com/docs/en/env-vars
disable_interleaved_thinking
class-attribute
instance-attribute
¶
disable_interleaved_thinking: Literal["0", "1"] | None = Field(
None, alias="DISABLE_INTERLEAVED_THINKING"
)
Set to 1 to prevent sending the interleaved-thinking beta header (useful when a gateway or provider does not support interleaved thinking). See https://code.claude.com/docs/en/env-vars
disable_login_command
class-attribute
instance-attribute
¶
Set to 1 to hide the /login command (useful when authentication is handled externally via API keys or apiKeyHelper). See https://code.claude.com/docs/en/env-vars
disable_logout_command
class-attribute
instance-attribute
¶
Set to 1 to hide the /logout command. See https://code.claude.com/docs/en/env-vars
disable_prompt_caching
class-attribute
instance-attribute
¶
Disable prompt caching for all models. See https://code.claude.com/docs/en/prompt-caching#disable-prompt-caching
disable_prompt_caching_fable
class-attribute
instance-attribute
¶
disable_prompt_caching_fable: Literal["0", "1"] | None = Field(
None, alias="DISABLE_PROMPT_CACHING_FABLE"
)
Disable prompt caching for Fable models only. See https://code.claude.com/docs/en/prompt-caching#disable-prompt-caching
disable_prompt_caching_haiku
class-attribute
instance-attribute
¶
disable_prompt_caching_haiku: Literal["0", "1"] | None = Field(
None, alias="DISABLE_PROMPT_CACHING_HAIKU"
)
Disable prompt caching for Haiku models only. See https://code.claude.com/docs/en/prompt-caching#disable-prompt-caching
disable_prompt_caching_opus
class-attribute
instance-attribute
¶
disable_prompt_caching_opus: Literal["0", "1"] | None = Field(
None, alias="DISABLE_PROMPT_CACHING_OPUS"
)
Disable prompt caching for Opus models only. See https://code.claude.com/docs/en/prompt-caching#disable-prompt-caching
disable_prompt_caching_sonnet
class-attribute
instance-attribute
¶
disable_prompt_caching_sonnet: Literal["0", "1"] | None = Field(
None, alias="DISABLE_PROMPT_CACHING_SONNET"
)
Disable prompt caching for Sonnet models only. See https://code.claude.com/docs/en/prompt-caching#disable-prompt-caching
disable_telemetry
class-attribute
instance-attribute
¶
Set to 1 to opt out of telemetry. Also disables feature-flag fetching (same effect as DISABLE_GROWTHBOOK). See https://code.claude.com/docs/en/env-vars
disable_updates
class-attribute
instance-attribute
¶
Block all update paths including manual updates
disable_upgrade_command
class-attribute
instance-attribute
¶
Set to 1 to hide the /upgrade command. See https://code.claude.com/docs/en/env-vars
do_not_track
class-attribute
instance-attribute
¶
Set to 1 to opt out of telemetry (cross-tool convention; equivalent to DISABLE_TELEMETRY). See https://code.claude.com/docs/en/env-vars
enable_beta_tracing_detailed
class-attribute
instance-attribute
¶
enable_beta_tracing_detailed: Literal["0", "1"] | None = Field(
None, alias="ENABLE_BETA_TRACING_DETAILED"
)
Emit detailed spans including hook execution when the tracing beta is enabled. See https://code.claude.com/docs/en/monitoring-usage#traces-beta
enable_claudeai_mcp_servers
class-attribute
instance-attribute
¶
enable_claudeai_mcp_servers: Literal["true", "false"] | None = Field(
None, alias="ENABLE_CLAUDEAI_MCP_SERVERS"
)
Opt in/out of claude.ai MCP servers. See https://github.com/anthropics/claude-code/blob/main/CHANGELOG.md#2163
enable_prompt_caching_1_h
class-attribute
instance-attribute
¶
Request a 1-hour prompt cache TTL instead of the 5-minute default (billed at a higher rate). See https://code.claude.com/docs/en/prompt-caching#cache-lifetime
enable_tool_search
class-attribute
instance-attribute
¶
Control MCP tool search: "true" always defers and sends the beta header (requests fail on Google Cloud's Agent Platform models earlier than Sonnet 4.5/Opus 4.5 or on proxies that do not support tool_reference); "auto" loads tools upfront if they fit within 10% of context; "auto:N" sets a custom threshold percentage (e.g. auto:5); "false" loads all tools upfront. Also applies when ANTHROPIC_BASE_URL points to a non-first-party host. See https://code.claude.com/docs/en/google-vertex-ai#4-configure-claude-code
fallback_for_all_primary_models
class-attribute
instance-attribute
¶
Set to any non-empty value to make all models (not only Opus) stop retrying with a repeated-overload error when no fallback model is configured. See https://code.claude.com/docs/en/env-vars
force_autoupdate_plugins
class-attribute
instance-attribute
¶
Keep plugin auto-updates enabled even when DISABLE_AUTOUPDATER=1 is set. See https://code.claude.com/docs/en/discover-plugins#configure-auto-updates
force_hyperlink
class-attribute
instance-attribute
¶
Set to 1 to enable clickable OSC 8 hyperlinks when your terminal supports them but is not auto-detected, or 0 to disable them
force_prompt_caching_5_m
class-attribute
instance-attribute
¶
Force a 5-minute cache TTL regardless of authentication method; overrides ENABLE_PROMPT_CACHING_1H or a managed-settings TTL. See https://code.claude.com/docs/en/prompt-caching#override-the-ttl
google_application_credentials
class-attribute
instance-attribute
¶
Path to a GCP credential configuration file (service account key or workload identity federation config) used for Google Cloud's Agent Platform authentication. See https://code.claude.com/docs/en/google-vertex-ai#3-configure-gcp-credentials
http_proxy
class-attribute
instance-attribute
¶
HTTP proxy URL
https_proxy
class-attribute
instance-attribute
¶
HTTPS proxy URL (recommended over HTTP_PROXY)
is_demo
class-attribute
instance-attribute
¶
Set to 1 to enable demo mode: hides email and organization name from the header and /status output and skips onboarding. See https://code.claude.com/docs/en/env-vars
max_mcp_output_tokens
class-attribute
instance-attribute
¶
Maximum number of tokens allowed in MCP tool output before truncation (default: 25000). Claude Code displays a warning above 10000 tokens. For tools that declare anthropic/maxResultSizeChars, that character limit replaces this token limit for text content, but image content from those tools is still subject to this limit. See https://code.claude.com/docs/en/mcp
max_structured_output_retries
class-attribute
instance-attribute
¶
Number of times to retry when the model's response fails validation against --json-schema in non-interactive (-p) mode (default 5). See https://code.claude.com/docs/en/env-vars
max_thinking_tokens
class-attribute
instance-attribute
¶
Override the extended thinking token budget; set to 0 to disable thinking on the Anthropic API. On adaptive reasoning models (Opus 4.7+, Opus 4.8, Fable 5) a nonzero budget is ignored unless CLAUDE_CODE_DISABLE_ADAPTIVE_THINKING is set. See https://code.claude.com/docs/en/model-config#extended-thinking
mcp_client_secret
class-attribute
instance-attribute
¶
OAuth client secret for MCP servers that require pre-configured credentials (avoids the interactive prompt when adding a server with --client-secret). See https://code.claude.com/docs/en/env-vars
mcp_connect_timeout_ms
class-attribute
instance-attribute
¶
How long blocking MCP startup waits in milliseconds for the connection batch before snapshotting the tool list (default 5000). Applies when MCP_CONNECTION_NONBLOCKING=0 or for alwaysLoad servers. See https://code.claude.com/docs/en/env-vars
mcp_connection_nonblocking
class-attribute
instance-attribute
¶
mcp_connection_nonblocking: Literal["0", "1"] | None = Field(
None, alias="MCP_CONNECTION_NONBLOCKING"
)
Controls whether startup waits for MCP servers to connect before the first query. Non-blocking by default since v2.1.142; set to 0 to restore the blocking 5-second connection wait. See https://code.claude.com/docs/en/env-vars
mcp_oauth_callback_port
class-attribute
instance-attribute
¶
Fixed port for the OAuth redirect callback, as an alternative to --callback-port when adding an MCP server with pre-configured credentials. See https://code.claude.com/docs/en/env-vars
mcp_remote_server_connection_batch_size
class-attribute
instance-attribute
¶
mcp_remote_server_connection_batch_size: str | None = Field(
None, alias="MCP_REMOTE_SERVER_CONNECTION_BATCH_SIZE"
)
Maximum number of remote MCP servers (HTTP/SSE) to connect in parallel during startup (default 20). See https://code.claude.com/docs/en/env-vars
mcp_server_connection_batch_size
class-attribute
instance-attribute
¶
mcp_server_connection_batch_size: str | None = Field(None, alias="MCP_SERVER_CONNECTION_BATCH_SIZE")
Maximum number of local MCP servers (stdio) to connect in parallel during startup (default 3). See https://code.claude.com/docs/en/env-vars
mcp_timeout
class-attribute
instance-attribute
¶
Timeout in milliseconds for MCP server startup (default 30000). See https://code.claude.com/docs/en/env-vars
mcp_tool_timeout
class-attribute
instance-attribute
¶
Timeout in milliseconds for MCP tool execution (default: 100000000, about 28 hours). A per-server timeout field in .mcp.json overrides this for that server. Values below 1000 are floored to one second. See https://code.claude.com/docs/en/mcp
no_proxy
class-attribute
instance-attribute
¶
Domains to bypass proxy (space or comma-separated, or '*' for all)
node_extra_ca_certs
class-attribute
instance-attribute
¶
Path to custom CA certificate file
otel_attribute_value_length_limit
class-attribute
instance-attribute
¶
otel_attribute_value_length_limit: str | None = Field(
None, alias="OTEL_ATTRIBUTE_VALUE_LENGTH_LIMIT"
)
Standard OpenTelemetry SDK limit on attribute value length. Claude Code caps content-bearing telemetry attributes at the smaller of this and CLAUDE_CODE_OTEL_CONTENT_MAX_LENGTH, so the truncation marker stays within the SDK limit. Claude Code reads the OTEL_LOGRECORD_ATTRIBUTE_VALUE_LENGTH_LIMIT and OTEL_SPAN_ATTRIBUTE_VALUE_LENGTH_LIMIT variants the same way, and the smallest set value applies to all signals. Requires Claude Code v2.1.214 or later. See https://code.claude.com/docs/en/monitoring-usage#common-configuration-variables
otel_exporter_otlp_certificate
class-attribute
instance-attribute
¶
Path to the CA certificate for gRPC OTLP mTLS. See https://code.claude.com/docs/en/monitoring-usage#mtls-authentication
otel_exporter_otlp_client_certificate
class-attribute
instance-attribute
¶
otel_exporter_otlp_client_certificate: str | None = Field(
None, alias="OTEL_EXPORTER_OTLP_CLIENT_CERTIFICATE"
)
Path to the client certificate for gRPC OTLP mTLS. See https://code.claude.com/docs/en/monitoring-usage#mtls-authentication
otel_exporter_otlp_client_key
class-attribute
instance-attribute
¶
Path to the client private key for gRPC OTLP mTLS. See https://code.claude.com/docs/en/monitoring-usage#mtls-authentication
otel_exporter_otlp_endpoint
class-attribute
instance-attribute
¶
OTLP exporter endpoint for all signals (e.g. http://localhost:4317). See https://code.claude.com/docs/en/monitoring-usage#common-configuration-variables
otel_exporter_otlp_headers
class-attribute
instance-attribute
¶
Headers sent with OTLP exporter requests (e.g. Authorization=Bearer token). See https://code.claude.com/docs/en/monitoring-usage#common-configuration-variables
otel_exporter_otlp_logs_client_certificate
class-attribute
instance-attribute
¶
otel_exporter_otlp_logs_client_certificate: str | None = Field(
None, alias="OTEL_EXPORTER_OTLP_LOGS_CLIENT_CERTIFICATE"
)
Path to the client certificate for gRPC OTLP mTLS, overriding OTEL_EXPORTER_OTLP_CLIENT_CERTIFICATE for logs only. See https://code.claude.com/docs/en/monitoring-usage#mtls-authentication
otel_exporter_otlp_logs_client_key
class-attribute
instance-attribute
¶
otel_exporter_otlp_logs_client_key: str | None = Field(
None, alias="OTEL_EXPORTER_OTLP_LOGS_CLIENT_KEY"
)
Path to the client private key for gRPC OTLP mTLS, overriding OTEL_EXPORTER_OTLP_CLIENT_KEY for logs only. See https://code.claude.com/docs/en/monitoring-usage#mtls-authentication
otel_exporter_otlp_logs_endpoint
class-attribute
instance-attribute
¶
otel_exporter_otlp_logs_endpoint: str | None = Field(None, alias="OTEL_EXPORTER_OTLP_LOGS_ENDPOINT")
OTLP exporter endpoint override for logs. See https://code.claude.com/docs/en/monitoring-usage#common-configuration-variables
otel_exporter_otlp_logs_protocol
class-attribute
instance-attribute
¶
otel_exporter_otlp_logs_protocol: Literal["grpc", "http/json", "http/protobuf"] | None = Field(
None, alias="OTEL_EXPORTER_OTLP_LOGS_PROTOCOL"
)
OTLP protocol override for logs: grpc, http/json, or http/protobuf. See https://code.claude.com/docs/en/monitoring-usage#common-configuration-variables
otel_exporter_otlp_metrics_client_certificate
class-attribute
instance-attribute
¶
otel_exporter_otlp_metrics_client_certificate: str | None = Field(
None, alias="OTEL_EXPORTER_OTLP_METRICS_CLIENT_CERTIFICATE"
)
Path to the client certificate for gRPC OTLP mTLS, overriding OTEL_EXPORTER_OTLP_CLIENT_CERTIFICATE for metrics only. See https://code.claude.com/docs/en/monitoring-usage#mtls-authentication
otel_exporter_otlp_metrics_client_key
class-attribute
instance-attribute
¶
otel_exporter_otlp_metrics_client_key: str | None = Field(
None, alias="OTEL_EXPORTER_OTLP_METRICS_CLIENT_KEY"
)
Path to the client private key for gRPC OTLP mTLS, overriding OTEL_EXPORTER_OTLP_CLIENT_KEY for metrics only. See https://code.claude.com/docs/en/monitoring-usage#mtls-authentication
otel_exporter_otlp_metrics_endpoint
class-attribute
instance-attribute
¶
otel_exporter_otlp_metrics_endpoint: str | None = Field(
None, alias="OTEL_EXPORTER_OTLP_METRICS_ENDPOINT"
)
OTLP exporter endpoint override for metrics. See https://code.claude.com/docs/en/monitoring-usage#common-configuration-variables
otel_exporter_otlp_metrics_protocol
class-attribute
instance-attribute
¶
otel_exporter_otlp_metrics_protocol: Literal["grpc", "http/json", "http/protobuf"] | None = Field(
None, alias="OTEL_EXPORTER_OTLP_METRICS_PROTOCOL"
)
OTLP protocol override for metrics: grpc, http/json, or http/protobuf. See https://code.claude.com/docs/en/monitoring-usage#common-configuration-variables
otel_exporter_otlp_metrics_temporality_preference
class-attribute
instance-attribute
¶
otel_exporter_otlp_metrics_temporality_preference: Literal["delta", "cumulative"] | None = Field(
None, alias="OTEL_EXPORTER_OTLP_METRICS_TEMPORALITY_PREFERENCE"
)
Metrics temporality preference: delta (default) or cumulative. See https://code.claude.com/docs/en/monitoring-usage#common-configuration-variables
otel_exporter_otlp_protocol
class-attribute
instance-attribute
¶
otel_exporter_otlp_protocol: Literal["grpc", "http/json", "http/protobuf"] | None = Field(
None, alias="OTEL_EXPORTER_OTLP_PROTOCOL"
)
OTLP exporter protocol for all signals: grpc, http/json, or http/protobuf. See https://code.claude.com/docs/en/monitoring-usage#common-configuration-variables
otel_exporter_otlp_traces_client_certificate
class-attribute
instance-attribute
¶
otel_exporter_otlp_traces_client_certificate: str | None = Field(
None, alias="OTEL_EXPORTER_OTLP_TRACES_CLIENT_CERTIFICATE"
)
Path to the client certificate for gRPC OTLP mTLS, overriding OTEL_EXPORTER_OTLP_CLIENT_CERTIFICATE for traces only. See https://code.claude.com/docs/en/monitoring-usage#mtls-authentication
otel_exporter_otlp_traces_client_key
class-attribute
instance-attribute
¶
otel_exporter_otlp_traces_client_key: str | None = Field(
None, alias="OTEL_EXPORTER_OTLP_TRACES_CLIENT_KEY"
)
Path to the client private key for gRPC OTLP mTLS, overriding OTEL_EXPORTER_OTLP_CLIENT_KEY for traces only. See https://code.claude.com/docs/en/monitoring-usage#mtls-authentication
otel_exporter_otlp_traces_endpoint
class-attribute
instance-attribute
¶
otel_exporter_otlp_traces_endpoint: str | None = Field(
None, alias="OTEL_EXPORTER_OTLP_TRACES_ENDPOINT"
)
OTLP exporter endpoint override for traces. See https://code.claude.com/docs/en/monitoring-usage#traces-beta
otel_exporter_otlp_traces_protocol
class-attribute
instance-attribute
¶
otel_exporter_otlp_traces_protocol: Literal["grpc", "http/json", "http/protobuf"] | None = Field(
None, alias="OTEL_EXPORTER_OTLP_TRACES_PROTOCOL"
)
OTLP protocol override for traces: grpc, http/json, or http/protobuf. See https://code.claude.com/docs/en/monitoring-usage#traces-beta
otel_log_assistant_responses
class-attribute
instance-attribute
¶
otel_log_assistant_responses: Literal["0", "1"] | None = Field(
None, alias="OTEL_LOG_ASSISTANT_RESPONSES"
)
UNDOCUMENTED. Include assistant response text in the claude_code.assistant_response OpenTelemetry log event (added v2.1.193). When unset, follows OTEL_LOG_USER_PROMPTS; set to 0 to keep prompts-only.
otel_log_raw_api_bodies
class-attribute
instance-attribute
¶
Log raw API request/response bodies. Set to 1, or to file:<dir> to write them to a directory. See https://code.claude.com/docs/en/monitoring-usage#common-configuration-variables
otel_log_tool_content
class-attribute
instance-attribute
¶
Include full tool input/output content in OpenTelemetry log events (requires tracing; disabled by default). See https://code.claude.com/docs/en/monitoring-usage#common-configuration-variables
otel_log_tool_details
class-attribute
instance-attribute
¶
Include tool name and parameters in OpenTelemetry log events (disabled by default). See https://code.claude.com/docs/en/monitoring-usage#common-configuration-variables
otel_log_user_prompts
class-attribute
instance-attribute
¶
Include user prompt text in OpenTelemetry log events (disabled by default). See https://code.claude.com/docs/en/monitoring-usage#common-configuration-variables
otel_logs_export_interval
class-attribute
instance-attribute
¶
Logs export interval in milliseconds (default 5000). See https://code.claude.com/docs/en/monitoring-usage#common-configuration-variables
otel_logs_exporter
class-attribute
instance-attribute
¶
OpenTelemetry logs exporter(s) as a comma-separated list. Valid values: otlp, console, none. See https://code.claude.com/docs/en/monitoring-usage#common-configuration-variables
otel_metric_export_interval
class-attribute
instance-attribute
¶
Metrics export interval in milliseconds (default 60000). See https://code.claude.com/docs/en/monitoring-usage#common-configuration-variables
otel_metrics_exporter
class-attribute
instance-attribute
¶
OpenTelemetry metrics exporter(s) as a comma-separated list. Valid values: otlp, prometheus, console, none. See https://code.claude.com/docs/en/monitoring-usage#common-configuration-variables
otel_metrics_include_account_uuid
class-attribute
instance-attribute
¶
otel_metrics_include_account_uuid: Literal["true", "false"] | None = Field(
None, alias="OTEL_METRICS_INCLUDE_ACCOUNT_UUID"
)
Include the user.account_uuid and user.account_id attributes on metrics (default true). See https://code.claude.com/docs/en/monitoring-usage#metrics-cardinality-control
otel_metrics_include_entrypoint
class-attribute
instance-attribute
¶
otel_metrics_include_entrypoint: Literal["true", "false"] | None = Field(
None, alias="OTEL_METRICS_INCLUDE_ENTRYPOINT"
)
Include the app.entrypoint attribute on metrics (default false). See https://code.claude.com/docs/en/monitoring-usage#metrics-cardinality-control
otel_metrics_include_resource_attributes
class-attribute
instance-attribute
¶
otel_metrics_include_resource_attributes: Literal["true", "false"] | None = Field(
None, alias="OTEL_METRICS_INCLUDE_RESOURCE_ATTRIBUTES"
)
Include configured OTEL_RESOURCE_ATTRIBUTES on metric data points (default true). See https://code.claude.com/docs/en/monitoring-usage#metrics-cardinality-control
otel_metrics_include_session_id
class-attribute
instance-attribute
¶
otel_metrics_include_session_id: Literal["true", "false"] | None = Field(
None, alias="OTEL_METRICS_INCLUDE_SESSION_ID"
)
Include the session.id attribute on metrics (default true). See https://code.claude.com/docs/en/monitoring-usage#metrics-cardinality-control
otel_metrics_include_version
class-attribute
instance-attribute
¶
otel_metrics_include_version: Literal["true", "false"] | None = Field(
None, alias="OTEL_METRICS_INCLUDE_VERSION"
)
Include the app.version attribute on metrics (default false). See https://code.claude.com/docs/en/monitoring-usage#metrics-cardinality-control
otel_resource_attributes
class-attribute
instance-attribute
¶
Comma-separated key=value resource attributes attached to all telemetry. See https://code.claude.com/docs/en/monitoring-usage#multi-team-organization-support
otel_traces_export_interval
class-attribute
instance-attribute
¶
Traces export interval in milliseconds (default 5000). See https://code.claude.com/docs/en/monitoring-usage#traces-beta
otel_traces_exporter
class-attribute
instance-attribute
¶
OpenTelemetry traces exporter(s) as a comma-separated list. Valid values: otlp, console, none. See https://code.claude.com/docs/en/monitoring-usage#traces-beta
slash_command_tool_char_budget
class-attribute
instance-attribute
¶
Override the character budget for skill metadata shown to the Skill tool. The budget scales dynamically at 1% of the context window, with a fallback of 8000 characters. Legacy name kept for backwards compatibility. See https://code.claude.com/docs/en/skills#control-who-invokes-a-skill
task_max_output_length
class-attribute
instance-attribute
¶
Maximum number of characters in subagent output before truncation (default 32000, maximum 160000). When truncated, the full output is saved to disk and the path is included in the response. See https://code.claude.com/docs/en/env-vars
use_builtin_ripgrep
class-attribute
instance-attribute
¶
Use the bundled ripgrep binary instead of system ripgrep
vertex_region_claude_3_5_haiku
class-attribute
instance-attribute
¶
Override the Vertex AI region for Claude 3.5 Haiku (used when CLOUD_ML_REGION=global). See https://code.claude.com/docs/en/env-vars
vertex_region_claude_3_5_sonnet
class-attribute
instance-attribute
¶
Override the Vertex AI region for Claude 3.5 Sonnet (used when CLOUD_ML_REGION=global). See https://code.claude.com/docs/en/env-vars
vertex_region_claude_3_7_sonnet
class-attribute
instance-attribute
¶
Override the Vertex AI region for Claude 3.7 Sonnet (used when CLOUD_ML_REGION=global). See https://code.claude.com/docs/en/env-vars
vertex_region_claude_4_0_opus
class-attribute
instance-attribute
¶
Override the Vertex AI region for Claude 4.0 Opus (used when CLOUD_ML_REGION=global). See https://code.claude.com/docs/en/env-vars
vertex_region_claude_4_0_sonnet
class-attribute
instance-attribute
¶
Override the Vertex AI region for Claude 4.0 Sonnet (used when CLOUD_ML_REGION=global). See https://code.claude.com/docs/en/env-vars
vertex_region_claude_4_1_opus
class-attribute
instance-attribute
¶
Override the Vertex AI region for Claude 4.1 Opus (used when CLOUD_ML_REGION=global). See https://code.claude.com/docs/en/env-vars
vertex_region_claude_4_5_opus
class-attribute
instance-attribute
¶
Override the Vertex AI region for Claude Opus 4.5 (used when CLOUD_ML_REGION=global). See https://code.claude.com/docs/en/env-vars
vertex_region_claude_4_5_sonnet
class-attribute
instance-attribute
¶
Override the Vertex AI region for Claude Sonnet 4.5 (used when CLOUD_ML_REGION=global). See https://code.claude.com/docs/en/env-vars
vertex_region_claude_4_6_opus
class-attribute
instance-attribute
¶
Override the Vertex AI region for Claude Opus 4.6 (used when CLOUD_ML_REGION=global). See https://code.claude.com/docs/en/env-vars
vertex_region_claude_4_6_sonnet
class-attribute
instance-attribute
¶
Override the Vertex AI region for Claude Sonnet 4.6 (used when CLOUD_ML_REGION=global). See https://code.claude.com/docs/en/env-vars
vertex_region_claude_4_7_opus
class-attribute
instance-attribute
¶
Override the Vertex AI region for Claude Opus 4.7 (used when CLOUD_ML_REGION=global). See https://code.claude.com/docs/en/env-vars
vertex_region_claude_4_8_opus
class-attribute
instance-attribute
¶
Override the Vertex AI region for Claude Opus 4.8 (used when CLOUD_ML_REGION=global). See https://code.claude.com/docs/en/env-vars
vertex_region_claude_5_opus
class-attribute
instance-attribute
¶
Override region for Claude Opus 5 when using Google Cloud's Agent Platform (formerly Vertex AI). Added in v2.1.219. See https://code.claude.com/docs/en/google-vertex-ai
vertex_region_claude_5_sonnet
class-attribute
instance-attribute
¶
Override region for Claude Sonnet 5 when using Google Cloud's Agent Platform (formerly Vertex AI). Added in v2.1.197. See https://code.claude.com/docs/en/google-vertex-ai
vertex_region_claude_fable_5
class-attribute
instance-attribute
¶
Override the Vertex AI region for Claude Fable 5 (used when CLOUD_ML_REGION=global). See https://code.claude.com/docs/en/env-vars
vertex_region_claude_haiku_4_5
class-attribute
instance-attribute
¶
Override the Vertex AI region for Claude Haiku 4.5 (used when CLOUD_ML_REGION=global). See https://code.claude.com/docs/en/env-vars
EnvVar
¶
Bases: ClaudeCodeBaseModel
Source code in src/clawd_code_sdk/models/settings.py
ExtraKnownMarketplaces
¶
Bases: ClaudeCodeBaseModel
Source code in src/clawd_code_sdk/models/settings.py
auto_update
class-attribute
instance-attribute
¶
Whether to automatically update this marketplace on Claude Code startup. Written automatically by Claude Code when you toggle auto-update for a marketplace
install_location
class-attribute
instance-attribute
¶
Local cache path where marketplace manifest is stored (auto-generated if not provided)
last_updated
class-attribute
instance-attribute
¶
ISO 8601 timestamp of the last marketplace refresh. Written automatically by Claude Code
source
instance-attribute
¶
source: (
MarketplaceSourceUrl
| MarketplaceSourceHostPattern
| MarketplaceSourceGithub
| MarketplaceSourceGit
| MarketplaceSourceNpm
| MarketplaceSourceFile
| MarketplaceSourceDirectory
| MarketplaceSourceSettings
)
Where to fetch the marketplace from
File
¶
Bases: ClaudeCodeBaseModel
Source code in src/clawd_code_sdk/models/settings.py
FileSuggestion
¶
Bases: ClaudeCodeBaseModel
Configure a custom script for @ file autocomplete. See https://code.claude.com/docs/en/settings#file-suggestion-settings.
Source code in src/clawd_code_sdk/models/settings.py
type
class-attribute
instance-attribute
¶
The type of file suggestion handler; must be set to "command" to execute a custom shell script that generates file suggestions for the @ file picker.
Filesystem
¶
Bases: ClaudeCodeBaseModel
Filesystem access control for sandboxed commands. See https://code.claude.com/docs/en/sandboxing#filesystem-isolation.
Source code in src/clawd_code_sdk/models/settings.py
allow_managed_read_paths_only
class-attribute
instance-attribute
¶
(Managed settings only) When true, only allowRead paths from managed settings are used; user, project, and local allowRead entries are ignored. denyRead still merges from all sources. See https://code.claude.com/docs/en/sandboxing#filesystem-isolation
allow_read
class-attribute
instance-attribute
¶
Paths to re-allow reading within denyRead regions. Takes precedence over denyRead for matching paths. See https://code.claude.com/docs/en/sandboxing#granting-subprocess-write-access-to-specific-paths
allow_write
class-attribute
instance-attribute
¶
Paths where subprocesses are allowed to write. Supports prefixes: // (absolute), ~/ (home directory), / (relative to settings file), ./ or no prefix (relative path). See https://code.claude.com/docs/en/sandboxing#granting-subprocess-write-access-to-specific-paths
deny_read
class-attribute
instance-attribute
¶
Paths where subprocesses are explicitly denied read access. See https://code.claude.com/docs/en/sandboxing#filesystem-isolation
deny_write
class-attribute
instance-attribute
¶
Paths where subprocesses are explicitly denied write access. Takes precedence over allowWrite. See https://code.claude.com/docs/en/sandboxing#filesystem-isolation
disabled
class-attribute
instance-attribute
¶
Skip filesystem isolation while keeping network isolation: sandboxed commands get unrestricted read and write access to the host filesystem, and network egress stays confined to network.allowedDomains. Only honored from user, managed, or CLI --settings settings (default: false). Requires Claude Code v2.1.216 or later. See https://code.claude.com/docs/en/sandboxing#disable-filesystem-isolation
FooterLinksRegex
¶
Bases: ClaudeCodeBaseModel
Source code in src/clawd_code_sdk/models/settings.py
label
class-attribute
instance-attribute
¶
Badge text; {name} placeholders filled from named capture groups, defaults to the full match
type
class-attribute
instance-attribute
¶
Config variant; "regex" matches turn output and builds a URL from named capture groups
url
instance-attribute
¶
Link target; {name} placeholders are filled from named regex capture groups
ForceLoginOrgUuid
¶
Bases: RootModel[str]
Source code in src/clawd_code_sdk/models/settings.py
root
class-attribute
instance-attribute
¶
Organization UUID to use for OAuth login, or an array of UUIDs to allow several organizations. An empty array fails closed and blocks every login. See https://code.claude.com/docs/en/authentication#restrict-login-to-your-organization
HookConfigAgent
¶
Bases: ClaudeCodeBaseModel
Agent hook with multi-turn tool access for verification. See https://code.claude.com/docs/en/hooks#agent-based-hooks.
Source code in src/clawd_code_sdk/models/settings.py
if_
class-attribute
instance-attribute
¶
Optional permission-rule-syntax filter. Evaluated only on tool-related events (PreToolUse, PostToolUse, PostToolUseFailure, PermissionRequest, PermissionDenied); on other events a hook with if set never runs. See https://code.claude.com/docs/en/hooks-guide#filter-hooks-with-matchers
model
class-attribute
instance-attribute
¶
Model to use for evaluation. Defaults to a fast model
prompt
class-attribute
instance-attribute
¶
Prompt describing what to verify. Use $ARGUMENTS placeholder for hook input JSON.
status_message
class-attribute
instance-attribute
¶
Custom spinner message displayed while the hook runs
timeout
class-attribute
instance-attribute
¶
Optional timeout in seconds (default: 60)
HookConfigCommand
¶
Bases: ClaudeCodeBaseModel
Bash command hook.
Source code in src/clawd_code_sdk/models/settings.py
args
class-attribute
instance-attribute
¶
Argument list for exec form. When present, spawns the command directly without shell interpretation — each element is passed as-is, so path placeholders never need quoting. See https://code.claude.com/docs/en/hooks#command-hook-fields
async_
class-attribute
instance-attribute
¶
Run this hook asynchronously without blocking Claude Code
async_rewake
class-attribute
instance-attribute
¶
When true, the hook runs in the background and wakes the model when it exits with code 2. Implies async.
command
class-attribute
instance-attribute
¶
Shell command to execute
if_
class-attribute
instance-attribute
¶
Optional permission-rule-syntax filter (e.g., "Bash(git *)"). Evaluated only on tool-related events (PreToolUse, PostToolUse, PostToolUseFailure, PermissionRequest, PermissionDenied); on other events a hook with if set never runs. See https://code.claude.com/docs/en/hooks-guide#filter-hooks-with-matchers
on_failure
class-attribute
instance-attribute
¶
Whether the action that triggered the hook goes ahead when the hook fails: it can't start, exits with a code other than 0 or 2, times out, or prints invalid JSON. "block" does what exit code 2 does on that event, and denies the request on PermissionRequest. Leaving it unset isn't always the same as "continue". No effect on Stop, SubagentStop, TaskCompleted, and TeammateIdle hooks, or when async or asyncRewake is set. Requires Claude Code v2.1.295 or later. See https://code.claude.com/docs/en/hooks#block-the-action-when-a-hook-fails
shell
class-attribute
instance-attribute
¶
Shell interpreter for the command. "bash" uses the login shell (bash/zsh/sh); "powershell" uses pwsh. Defaults to bash.
status_message
class-attribute
instance-attribute
¶
Custom spinner message displayed while the hook runs
timeout
class-attribute
instance-attribute
¶
Optional timeout in seconds (default: 600; lowered to 30 on UserPromptSubmit and 10 on MessageDisplay)
HookConfigHttp
¶
Bases: ClaudeCodeBaseModel
HTTP webhook hook. POST JSON to a URL and receive JSON response. See https://code.claude.com/docs/en/hooks#http-hook-fields.
Source code in src/clawd_code_sdk/models/settings.py
allowed_env_vars
class-attribute
instance-attribute
¶
List of environment variable names permitted for interpolation in headers. If not set, no env var interpolation is allowed.
headers
class-attribute
instance-attribute
¶
Custom HTTP headers (e.g., Authorization: Bearer token). Values support $VAR_NAME or ${VAR_NAME} interpolation.
if_
class-attribute
instance-attribute
¶
Optional permission-rule-syntax filter. Evaluated only on tool-related events (PreToolUse, PostToolUse, PostToolUseFailure, PermissionRequest, PermissionDenied); on other events a hook with if set never runs. See https://code.claude.com/docs/en/hooks-guide#filter-hooks-with-matchers
on_failure
class-attribute
instance-attribute
¶
Whether the action that triggered the hook goes ahead when the hook fails: the connection fails, the response status isn't 2xx, it times out, or the response body is invalid. "block" does what exit code 2 does on that event, and denies the request on PermissionRequest. No effect on Stop, SubagentStop, TaskCompleted, and TeammateIdle hooks. Requires Claude Code v2.1.295 or later. See https://code.claude.com/docs/en/hooks#block-the-action-when-a-hook-fails
status_message
class-attribute
instance-attribute
¶
Custom spinner message displayed while the hook runs
timeout
class-attribute
instance-attribute
¶
Optional timeout in seconds (default: 600; lowered to 30 on UserPromptSubmit and 10 on MessageDisplay)
url
class-attribute
instance-attribute
¶
URL to POST hook input JSON to. Endpoint must accept POST requests and return JSON.
HookConfigMcpTool
¶
Bases: ClaudeCodeBaseModel
MCP tool hook. Call a tool on an already-connected MCP server. See https://code.claude.com/docs/en/hooks#mcp-tool-hook-fields.
Source code in src/clawd_code_sdk/models/settings.py
if_
class-attribute
instance-attribute
¶
Optional permission-rule-syntax filter. Evaluated only on tool-related events (PreToolUse, PostToolUse, PostToolUseFailure, PermissionRequest, PermissionDenied); on other events a hook with if set never runs. See https://code.claude.com/docs/en/hooks-guide#filter-hooks-with-matchers
input
class-attribute
instance-attribute
¶
Arguments passed to the tool. String values support ${path} substitution from hook JSON input (e.g., ${tool_input.file_path}, ${cwd})
on_failure
class-attribute
instance-attribute
¶
Whether the action that triggered the hook goes ahead when the hook fails: the server isn't connected, the tool returns an error, it times out, or the output is invalid. "block" does what exit code 2 does on that event, and denies the request on PermissionRequest. No effect on Stop, SubagentStop, TaskCompleted, and TeammateIdle hooks. Requires Claude Code v2.1.328 or later. See https://code.claude.com/docs/en/hooks#block-the-action-when-a-hook-fails
server
class-attribute
instance-attribute
¶
Name of a configured MCP server (must already be connected)
status_message
class-attribute
instance-attribute
¶
Custom spinner message displayed while the hook runs
timeout
class-attribute
instance-attribute
¶
Optional timeout in seconds (default: 600; lowered to 30 on UserPromptSubmit and 10 on MessageDisplay)
tool
class-attribute
instance-attribute
¶
Name of the tool to call on that server
HookConfigPrompt
¶
Bases: ClaudeCodeBaseModel
LLM prompt hook. See https://code.claude.com/docs/en/hooks#prompt-based-hooks.
Source code in src/clawd_code_sdk/models/settings.py
continue_on_block
class-attribute
instance-attribute
¶
When the prompt returns ok: false, feed the reason back to Claude and continue the turn instead of stopping. Implemented as continue: true on the resulting decision: "block". See https://code.claude.com/docs/en/hooks#prompt-hook-configuration
if_
class-attribute
instance-attribute
¶
Optional permission-rule-syntax filter. Evaluated only on tool-related events (PreToolUse, PostToolUse, PostToolUseFailure, PermissionRequest, PermissionDenied); on other events a hook with if set never runs. See https://code.claude.com/docs/en/hooks-guide#filter-hooks-with-matchers
model
class-attribute
instance-attribute
¶
Model to use for evaluation. Defaults to a fast model
prompt
class-attribute
instance-attribute
¶
Prompt to evaluate with LLM. Use $ARGUMENTS placeholder for hook input JSON.
status_message
class-attribute
instance-attribute
¶
Custom spinner message displayed while the hook runs
timeout
class-attribute
instance-attribute
¶
Optional timeout in seconds (default: 30)
HookMatcher
¶
Bases: ClaudeCodeBaseModel
Hook matcher configuration with multiple hooks.
Source code in src/clawd_code_sdk/models/settings.py
hooks
instance-attribute
¶
hooks: list[
HookConfigCommand | HookConfigPrompt | HookConfigAgent | HookConfigHttp | HookConfigMcpTool
]
Array of hooks to execute
matcher
class-attribute
instance-attribute
¶
Optional pattern to match event contexts, case-sensitive. Behavior depends on event type. See https://code.claude.com/docs/en/hooks#matcher-patterns for event-specific details and examples
Hooks
¶
Bases: ClaudeCodeBaseModel
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.
Source code in src/clawd_code_sdk/models/settings.py
3373 3374 3375 3376 3377 3378 3379 3380 3381 3382 3383 3384 3385 3386 3387 3388 3389 3390 3391 3392 3393 3394 3395 3396 3397 3398 3399 3400 3401 3402 3403 3404 3405 3406 3407 3408 3409 3410 3411 3412 3413 3414 3415 3416 3417 3418 3419 3420 3421 3422 3423 3424 3425 3426 3427 3428 3429 3430 3431 3432 3433 3434 3435 3436 3437 3438 3439 3440 3441 3442 3443 3444 3445 3446 3447 3448 3449 3450 3451 3452 3453 3454 3455 3456 3457 3458 3459 3460 3461 3462 3463 3464 3465 3466 3467 3468 3469 3470 3471 3472 3473 3474 3475 3476 3477 3478 3479 3480 3481 3482 3483 3484 3485 3486 3487 3488 3489 3490 3491 3492 3493 3494 3495 3496 3497 3498 3499 3500 3501 3502 | |
config_change
class-attribute
instance-attribute
¶
config_change: list[HookMatcher] | None = Field(None, alias='ConfigChange')
Hooks that run when settings, managed settings, or skill files change during a session. Supports matchers: user_settings, project_settings, local_settings, policy_settings, skills. Command handlers only. Exit code 2 blocks the change (except policy_settings which is audit-only). See https://code.claude.com/docs/en/hooks#configchange
cwd_changed
class-attribute
instance-attribute
¶
cwd_changed: list[HookMatcher] | None = Field(None, alias='CwdChanged')
Hooks that run when the working directory changes. Provides cwd (new directory) and previous_cwd. Matchers are ignored; fires on every directory change. See https://code.claude.com/docs/en/hooks#cwdchanged
directory_added
class-attribute
instance-attribute
¶
directory_added: list[HookMatcher] | None = Field(None, alias='DirectoryAdded')
UNDOCUMENTED. Hooks that run after /add-dir or the SDK register_repo_root control request registers a new working directory mid-session (added v2.1.219)
elicitation
class-attribute
instance-attribute
¶
elicitation: list[HookMatcher] | None = Field(None, alias='Elicitation')
Hooks that run when an MCP server requests user input during a tool call. See https://code.claude.com/docs/en/hooks
elicitation_result
class-attribute
instance-attribute
¶
elicitation_result: list[HookMatcher] | None = Field(None, alias='ElicitationResult')
Hooks that run after a user responds to an MCP elicitation, before the response is sent back to the server. See https://code.claude.com/docs/en/hooks
file_changed
class-attribute
instance-attribute
¶
file_changed: list[HookMatcher] | None = Field(None, alias='FileChanged')
Hooks that run when a watched file is created, modified, or deleted. Supports filename matchers. Provides file_path and file_event_type (created, modified, deleted). See https://code.claude.com/docs/en/hooks#filechanged
instructions_loaded
class-attribute
instance-attribute
¶
instructions_loaded: list[HookMatcher] | None = Field(None, alias='InstructionsLoaded')
Hooks that run when a CLAUDE.md or .claude/rules/*.md file is loaded into context. Fires at session start and when files are lazily loaded (e.g., nested traversal, path glob match). No decision control; used for audit logging and observability. Does not support matchers. See https://code.claude.com/docs/en/hooks#instructionsloaded
message_display
class-attribute
instance-attribute
¶
message_display: list[HookMatcher] | None = Field(None, alias='MessageDisplay')
Hooks that run while assistant message text is displayed
notification
class-attribute
instance-attribute
¶
notification: list[HookMatcher] | None = Field(None, alias='Notification')
Hooks that trigger on notifications
permission_denied
class-attribute
instance-attribute
¶
permission_denied: list[HookMatcher] | None = Field(None, alias='PermissionDenied')
Hooks that run when a tool call is denied by the auto mode classifier. Supports matchers on tool name. See https://code.claude.com/docs/en/hooks
permission_request
class-attribute
instance-attribute
¶
permission_request: list[HookMatcher] | None = Field(None, alias='PermissionRequest')
Hooks that run when a permission dialog appears
post_compact
class-attribute
instance-attribute
¶
post_compact: list[HookMatcher] | None = Field(None, alias='PostCompact')
Hooks that run after the context is compacted. See https://code.claude.com/docs/en/hooks
post_tool_batch
class-attribute
instance-attribute
¶
post_tool_batch: list[HookMatcher] | None = Field(None, alias='PostToolBatch')
Hooks that run after a full batch of parallel tool calls resolves, before the next model call. Exit code 2 blocks the agentic loop. Does not support matchers. See https://code.claude.com/docs/en/hooks
post_tool_use
class-attribute
instance-attribute
¶
post_tool_use: list[HookMatcher] | None = Field(None, alias='PostToolUse')
Hooks that run after tool completion
post_tool_use_failure
class-attribute
instance-attribute
¶
post_tool_use_failure: list[HookMatcher] | None = Field(None, alias='PostToolUseFailure')
Hooks that run after a tool fails
pre_compact
class-attribute
instance-attribute
¶
pre_compact: list[HookMatcher] | None = Field(None, alias='PreCompact')
Hooks that run before the context is compacted
pre_tool_use
class-attribute
instance-attribute
¶
pre_tool_use: list[HookMatcher] | None = Field(None, alias='PreToolUse')
Hooks that run before tool calls
session_end
class-attribute
instance-attribute
¶
session_end: list[HookMatcher] | None = Field(None, alias='SessionEnd')
Hooks that run when a session ends
session_start
class-attribute
instance-attribute
¶
session_start: list[HookMatcher] | None = Field(None, alias='SessionStart')
Hooks that run when a new session starts
setup
class-attribute
instance-attribute
¶
setup: list[HookMatcher] | None = Field(None, alias='Setup')
UNDOCUMENTED. Hooks that run during repository initialization (--init, --init-only) or maintenance (--maintenance)
stop
class-attribute
instance-attribute
¶
stop: list[HookMatcher] | None = Field(None, alias='Stop')
Hooks that run when agents finish responding. Does not run on user interrupt
stop_failure
class-attribute
instance-attribute
¶
stop_failure: list[HookMatcher] | None = Field(None, alias='StopFailure')
Hooks that run when a turn ends due to an API error (e.g., rate_limit, authentication_failed, billing_error, invalid_request, server_error, max_output_tokens, unknown). Matcher can scope to specific error types. Hook output and exit code are ignored. See https://code.claude.com/docs/en/hooks
subagent_start
class-attribute
instance-attribute
¶
subagent_start: list[HookMatcher] | None = Field(None, alias='SubagentStart')
Hooks that run when a subagent is spawned
subagent_stop
class-attribute
instance-attribute
¶
subagent_stop: list[HookMatcher] | None = Field(None, alias='SubagentStop')
Hooks that run when subagents finish responding
task_completed
class-attribute
instance-attribute
¶
task_completed: list[HookMatcher] | None = Field(None, alias='TaskCompleted')
Hooks that run when a task is being marked as completed. Exit code 2 prevents completion and sends feedback. Does not support matchers. See https://code.claude.com/docs/en/hooks#taskcompleted
task_created
class-attribute
instance-attribute
¶
task_created: list[HookMatcher] | None = Field(None, alias='TaskCreated')
Hooks that run when a task is being created via TaskCreate. Exit code 2 rolls back task creation. Does not support matchers. See https://code.claude.com/docs/en/hooks#taskcreated
teammate_idle
class-attribute
instance-attribute
¶
teammate_idle: list[HookMatcher] | None = Field(None, alias='TeammateIdle')
Hooks that run when an agent team teammate is about to go idle. Exit code 2 sends feedback and keeps the teammate working. Does not support matchers. Agent teams are experimental. See https://code.claude.com/docs/en/hooks#teammateidle
user_prompt_expansion
class-attribute
instance-attribute
¶
user_prompt_expansion: list[HookMatcher] | None = Field(None, alias='UserPromptExpansion')
Hooks that run when a user-typed command expands into a prompt, before it reaches Claude. Exit code 2 blocks the expansion. Supports matchers on command name. See https://code.claude.com/docs/en/hooks
user_prompt_submit
class-attribute
instance-attribute
¶
user_prompt_submit: list[HookMatcher] | None = Field(None, alias='UserPromptSubmit')
Hooks that run when a user submits a prompt
worktree_create
class-attribute
instance-attribute
¶
worktree_create: list[HookMatcher] | None = Field(None, alias='WorktreeCreate')
Hooks that run when a worktree is created via --worktree or isolation: "worktree" in subagents. Command handlers only, no matchers. Hook must print absolute path to created worktree on stdout; non-zero exit fails creation. See https://code.claude.com/docs/en/hooks#worktreecreate
worktree_remove
class-attribute
instance-attribute
¶
worktree_remove: list[HookMatcher] | None = Field(None, alias='WorktreeRemove')
Hooks that run when a worktree is being removed at session exit or when a subagent finishes. Command handlers only, no matchers. Used for cleanup tasks; cannot block removal. See https://code.claude.com/docs/en/hooks#worktreeremove
MarketplaceSourceDirectory
¶
Bases: ClaudeCodeBaseModel
Where to fetch the marketplace from.
Source code in src/clawd_code_sdk/models/settings.py
MarketplaceSourceFile
¶
Bases: ClaudeCodeBaseModel
Where to fetch the marketplace from.
Source code in src/clawd_code_sdk/models/settings.py
MarketplaceSourceGit
¶
Bases: ClaudeCodeBaseModel
Where to fetch the marketplace from.
Source code in src/clawd_code_sdk/models/settings.py
path
class-attribute
instance-attribute
¶
Path to marketplace.json within repo (defaults to .claude-plugin/marketplace.json)
ref
class-attribute
instance-attribute
¶
Git branch or tag to use (e.g., "main", "v1.0.0"). Defaults to repository default branch.
skip_lfs
class-attribute
instance-attribute
¶
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
¶
Identifies the marketplace source type
url
class-attribute
instance-attribute
¶
Full git repository URL
MarketplaceSourceGithub
¶
Bases: ClaudeCodeBaseModel
Where to fetch the marketplace from.
Source code in src/clawd_code_sdk/models/settings.py
path
class-attribute
instance-attribute
¶
Path to marketplace.json within repo (defaults to .claude-plugin/marketplace.json)
ref
class-attribute
instance-attribute
¶
Git branch or tag to use (e.g., "main", "v1.0.0"). Defaults to repository default branch.
skip_lfs
class-attribute
instance-attribute
¶
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
¶
Identifies the marketplace source type
MarketplaceSourceHostPattern
¶
Bases: ClaudeCodeBaseModel
Where to fetch the marketplace from.
Source code in src/clawd_code_sdk/models/settings.py
MarketplaceSourceNpm
¶
Bases: ClaudeCodeBaseModel
Where to fetch the marketplace from.
Source code in src/clawd_code_sdk/models/settings.py
MarketplaceSourceSettings
¶
Bases: ClaudeCodeBaseModel
Where to fetch the marketplace from.
Source code in src/clawd_code_sdk/models/settings.py
MarketplaceSourceUrl
¶
Bases: ClaudeCodeBaseModel
Where to fetch the marketplace from.
Source code in src/clawd_code_sdk/models/settings.py
Network
¶
Bases: ClaudeCodeBaseModel
Configures network isolation settings for the sandboxed bash environment, including domain restrictions, Unix socket access, and custom proxy configuration.
Source code in src/clawd_code_sdk/models/settings.py
allow_all_unix_sockets
class-attribute
instance-attribute
¶
Allow all Unix domain socket connections. If true, this overrides allowUnixSockets. See https://code.claude.com/docs/en/sandboxing#network-isolation
allow_local_binding
class-attribute
instance-attribute
¶
Allow binding to local network addresses (e.g., localhost ports). Defaults to false if not specified. See https://code.claude.com/docs/en/sandboxing#network-isolation
allow_mach_lookup
class-attribute
instance-attribute
¶
allow_mach_lookup: list[AllowMachLookupItem] | None = Field(
None, alias="allowMachLookup", examples=[["com.apple.coresimulator.*"]]
)
macOS only. Additional XPC/Mach service names the sandbox may look up. Supports a single trailing * for prefix matching. Needed for tools that communicate via XPC such as the iOS Simulator or Playwright. See https://code.claude.com/docs/en/sandboxing#network-isolation
allow_managed_domains_only
class-attribute
instance-attribute
¶
(Managed settings only) Only allowedDomains and WebFetch(domain:...) allow rules from managed settings are respected. User, project, local, and flag settings domains are ignored. Denied domains are still respected from all sources. Non-allowed domains are automatically blocked without user prompts. See https://code.claude.com/docs/en/sandboxing#network-isolation
allow_unix_sockets
class-attribute
instance-attribute
¶
Allow Unix domain sockets for local IPC (SSH agent, Docker, etc.). Provide an array of specific paths. Defaults to blocking if not specified. See https://code.claude.com/docs/en/sandboxing#network-isolation
allowed_domains
class-attribute
instance-attribute
¶
Allowlist of network domains for sandboxed commands. Supports wildcard patterns like *.example.com. See https://code.claude.com/docs/en/sandboxing#network-isolation
denied_domains
class-attribute
instance-attribute
¶
Blocklist of network domains for sandboxed commands. Blocks specific domains even when a broader allowedDomains wildcard would otherwise permit them. Supports wildcard patterns like *.example.com. See https://code.claude.com/docs/en/sandboxing#network-isolation
http_proxy_port
class-attribute
instance-attribute
¶
HTTP proxy port to use for network filtering. If not specified, a proxy server will be started automatically. See https://code.claude.com/docs/en/sandboxing#custom-proxy-configuration
socks_proxy_port
class-attribute
instance-attribute
¶
SOCKS proxy port to use for network filtering. If not specified, a proxy server will be started automatically. See https://code.claude.com/docs/en/sandboxing#custom-proxy-configuration
strict_allowlist
class-attribute
instance-attribute
¶
UNDOCUMENTED. Deny non-allowlisted hosts for sandboxed commands without prompting (added v2.1.219). See https://code.claude.com/docs/en/sandboxing#network-isolation
tls_terminate
class-attribute
instance-attribute
¶
tls_terminate: TlsTerminate | None = Field(None, alias='tlsTerminate')
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
PermissionRule
¶
Bases: RootModel[str]
Source code in src/clawd_code_sdk/models/settings.py
root
class-attribute
instance-attribute
¶
root: str = Field(
...,
examples=[
"Bash",
"Bash(npm run build)",
"Bash(git commit *)",
"Bash(npm run *)",
"Bash(ls*)",
"Bash(git * main)",
"Edit",
"Edit(/src/**/*.ts)",
"Read(*)",
"Skill(*)",
"Read(./.env)",
"Read(./secrets/**)",
"Read(//Users/alice/secrets/**)",
"Read(~/Documents/*.pdf)",
"Agent(Explore)",
"WebFetch",
"WebFetch(domain:example.com)",
"mcp__puppeteer",
"mcp__github__search_repositories",
],
pattern="^((Agent|Artifact|Bash|Cd|Edit|EnterWorktree|ExitPlanMode|Glob|Grep|KillShell|LSP|Monitor|MultiEdit|NotebookEdit|PowerShell|Read|ShareOnboardingGuide|Skill|TaskCreate|TaskGet|TaskList|TaskOutput|TaskStop|TaskUpdate|TodoWrite|ToolSearch|WebFetch|WebSearch|Workflow|Write)(\\([^)]+\\))?|mcp__.*)$",
)
Tool permission rule. See https://code.claude.com/docs/en/settings#permission-rule-syntax See https://code.claude.com/docs/en/tools-reference for full list of tools available to Claude.
Permissions
¶
Bases: ClaudeCodeBaseModel
Tool usage permissions configuration. See https://code.claude.com/docs/en/permissions and https://code.claude.com/docs/en/settings#permission-settings See https://code.claude.com/docs/en/tools-reference for full list of tools available to Claude.
Source code in src/clawd_code_sdk/models/settings.py
3303 3304 3305 3306 3307 3308 3309 3310 3311 3312 3313 3314 3315 3316 3317 3318 3319 3320 3321 3322 3323 3324 3325 3326 3327 3328 3329 3330 3331 3332 3333 3334 3335 3336 3337 3338 3339 3340 3341 3342 3343 3344 3345 3346 3347 3348 3349 3350 3351 3352 3353 3354 3355 3356 3357 3358 3359 3360 3361 3362 3363 3364 3365 3366 3367 3368 3369 3370 | |
additional_directories
class-attribute
instance-attribute
¶
additional_directories: list[AdditionalDirectory] | None = Field(
None, alias="additionalDirectories", examples=[["//Users/alice/Documents", "~/projects"]]
)
Additional directories to include in the permission scope
allow
class-attribute
instance-attribute
¶
allow: list[PermissionRule] | None = None
List of permission rules for allowed operations
ask
class-attribute
instance-attribute
¶
ask: list[PermissionRule] | None = None
List of permission rules that should always prompt for confirmation
block_writes_outside_working_directories
class-attribute
instance-attribute
¶
block_writes_outside_working_directories: bool | None = Field(
None, alias="blockWritesOutsideWorkingDirectories"
)
When true, the Write, Edit, and NotebookEdit tools refuse paths outside the working directories in every permission mode, including bypassPermissions, apart from some of Claude Code's own files. Does not limit shell commands, MCP tools, or the programs hooks run; use sandboxing for those. A true in any settings file applies; false is the same as unset. Requires Claude Code v2.1.314 or later. See https://code.claude.com/docs/en/settings-reference#permissions-blockwritesoutsideworkingdirectories
default_mode
class-attribute
instance-attribute
¶
default_mode: (
Literal[
"acceptEdits",
"bypassPermissions",
"default",
"delegate",
"dontAsk",
"plan",
"auto",
"manual",
]
| None
) = Field(None, alias="defaultMode")
Default permission mode. "default": prompts on first use. UNDOCUMENTED. "manual": accepted alias for "default" (the CLI/VS Code/JetBrains UI now labels this mode "Manual" as of v2.1.200; permission-modes.md has not yet been updated to mention it). "acceptEdits": auto-accepts file edits. "plan": read-only, no modifications. UNDOCUMENTED. "delegate": coordination-only for agent team leads (agent teams are experimental; enable via CLAUDE_CODE_EXPERIMENTAL_AGENT_TEAMS). "dontAsk": auto-denies unless pre-approved via permissions. "bypassPermissions": skips all prompts (use only in isolated environments). "auto": auto-approves tool calls with background safety checks that verify actions align with your request. See https://code.claude.com/docs/en/permissions
deny
class-attribute
instance-attribute
¶
deny: list[PermissionRule] | None = None
List of permission rules for denied operations
disable_auto_mode
class-attribute
instance-attribute
¶
Set to "disable" to prevent auto mode from being activated. Removes auto from the Shift+Tab cycle and rejects --permission-mode auto at startup. Most useful in managed settings where users cannot override it. See https://code.claude.com/docs/en/permissions
disable_bypass_permissions_mode
class-attribute
instance-attribute
¶
disable_bypass_permissions_mode: Literal["disable"] | None = Field(
None, alias="disableBypassPermissionsMode"
)
Disable the ability to bypass permission prompts
Plugin
¶
Bases: ClaudeCodeBaseModel
Source code in src/clawd_code_sdk/models/settings.py
source
instance-attribute
¶
External source the plugin is fetched from. Inline plugins must reference external sources such as GitHub or npm, not relative paths
PluginConfigs
¶
Bases: ClaudeCodeBaseModel
Source code in src/clawd_code_sdk/models/settings.py
mcp_servers
class-attribute
instance-attribute
¶
mcp_servers: dict[str, dict[str, str | float | bool | list[str]]] | None = Field(
None, alias="mcpServers"
)
User configuration values for MCP servers keyed by server name
options
class-attribute
instance-attribute
¶
Non-sensitive option values from the plugin manifest's userConfig, keyed by option name. Sensitive values go to secure storage instead. See https://code.claude.com/docs/en/plugins-reference
PluginSourceGitSubdir
¶
Bases: ClaudeCodeBaseModel
External source the plugin is fetched from. Inline plugins must reference external sources such as GitHub or npm, not relative paths.
Source code in src/clawd_code_sdk/models/settings.py
PluginSourceGithub
¶
Bases: ClaudeCodeBaseModel
External source the plugin is fetched from. Inline plugins must reference external sources such as GitHub or npm, not relative paths.
Source code in src/clawd_code_sdk/models/settings.py
PluginSourceNpm
¶
Bases: ClaudeCodeBaseModel
External source the plugin is fetched from. Inline plugins must reference external sources such as GitHub or npm, not relative paths.
Source code in src/clawd_code_sdk/models/settings.py
source
class-attribute
instance-attribute
¶
Identifies the plugin source type
PluginSourceUrl
¶
Bases: ClaudeCodeBaseModel
External source the plugin is fetched from. Inline plugins must reference external sources such as GitHub or npm, not relative paths.
Source code in src/clawd_code_sdk/models/settings.py
PolicyHelper
¶
Bases: ClaudeCodeBaseModel
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.
Source code in src/clawd_code_sdk/models/settings.py
refresh_interval_ms
class-attribute
instance-attribute
¶
refresh_interval_ms: Literal[0] | RefreshIntervalMs | None = Field(None, alias='refreshIntervalMs')
How often in milliseconds to re-run the helper in the background; set to 0 to disable refresh, or to at least 60000
timeout_ms
class-attribute
instance-attribute
¶
How long in milliseconds to wait for the helper before treating the run as failed
RefreshIntervalMs
¶
Bases: RootModel[int]
Source code in src/clawd_code_sdk/models/settings.py
root
class-attribute
instance-attribute
¶
How often in milliseconds to re-run the helper in the background; set to 0 to disable refresh, or to at least 60000
Ripgrep
¶
Bases: ClaudeCodeBaseModel
Custom ripgrep configuration for Claude Code's bundled ripgrep support. Overrides the bundled binary and arguments.
Source code in src/clawd_code_sdk/models/settings.py
Sandbox
¶
Bases: ClaudeCodeBaseModel
Sandbox execution configuration. See https://code.claude.com/docs/en/sandboxing.
Source code in src/clawd_code_sdk/models/settings.py
2581 2582 2583 2584 2585 2586 2587 2588 2589 2590 2591 2592 2593 2594 2595 2596 2597 2598 2599 2600 2601 2602 2603 2604 2605 2606 2607 2608 2609 2610 2611 2612 2613 2614 2615 2616 2617 2618 2619 2620 2621 2622 2623 2624 2625 2626 2627 2628 2629 2630 2631 2632 2633 2634 2635 2636 2637 2638 2639 2640 2641 2642 2643 2644 2645 2646 2647 2648 2649 2650 2651 2652 2653 2654 | |
allow_apple_events
class-attribute
instance-attribute
¶
Allow sandboxed commands to send Apple Events on macOS (v2.1.181+). Honored only from user, managed, or CLI settings; project settings cannot enable it. See https://code.claude.com/docs/en/sandboxing#limitations
allow_unsandboxed_commands
class-attribute
instance-attribute
¶
Allow commands to run outside the sandbox via the dangerouslyDisableSandbox parameter. When false, the dangerouslyDisableSandbox parameter is completely ignored and all commands must run sandboxed. Default: true. See https://code.claude.com/docs/en/sandboxing#limitations
auto_allow_bash_if_sandboxed
class-attribute
instance-attribute
¶
Automatically allow bash commands without prompting when they run in the sandbox. Only applies to commands that will run sandboxed. See https://code.claude.com/docs/en/sandboxing#sandbox-modes
bwrap_path
class-attribute
instance-attribute
¶
(Managed setting only) Path to custom bubblewrap (bwrap) binary for Linux/WSL sandbox. Overrides default. See https://code.claude.com/docs/en/server-managed-settings
credentials
class-attribute
instance-attribute
¶
credentials: Credentials | None = None
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
enable_weaker_nested_sandbox
class-attribute
instance-attribute
¶
Enable weaker sandbox mode for unprivileged docker environments where --proc mounting fails. This significantly reduces the strength of the sandbox and should only be used when this risk is acceptable. Default: false (secure). See https://code.claude.com/docs/en/sandboxing#limitations
enable_weaker_network_isolation
class-attribute
instance-attribute
¶
macOS only. Allow access to the system TLS trust service (com.apple.trustd.agent) in the sandbox. Required for Go-based tools like gh, gcloud, and terraform to verify TLS certificates when using httpProxyPort with a MITM proxy and custom CA. Reduces security by opening a potential data exfiltration path. Default: false. See https://code.claude.com/docs/en/sandboxing
enabled
class-attribute
instance-attribute
¶
Enable sandboxed bash. See https://code.claude.com/docs/en/sandboxing#enable-sandboxing
enabled_platforms
class-attribute
instance-attribute
¶
enabled_platforms: list[Literal["macos", "linux", "wsl", "windows"]] | None = Field(
None, alias="enabledPlatforms"
)
Limit the entire sandbox configuration to the listed platforms. On platforms not in the list the sandbox config is inert: no sandbox, no auto-allow, no startup warning, and no failIfUnavailable exit. When omitted, all supported platforms are included. Only honored from managed (policy) settings.
excluded_commands
class-attribute
instance-attribute
¶
Commands that should never run in the sandbox (e.g., ["git", "docker"]). See https://code.claude.com/docs/en/sandboxing#configure-sandboxing
fail_if_unavailable
class-attribute
instance-attribute
¶
When true, make sandbox startup a hard failure if required sandbox dependencies are missing. Default: false (sandbox is skipped with a warning). See https://code.claude.com/docs/en/sandboxing#enable-sandboxing
filesystem
class-attribute
instance-attribute
¶
filesystem: Filesystem | None = None
Filesystem access control for sandboxed commands. See https://code.claude.com/docs/en/sandboxing#filesystem-isolation
ignore_violations
class-attribute
instance-attribute
¶
Map of command patterns to filesystem paths to ignore violations for. Use "*" to match all commands
network
class-attribute
instance-attribute
¶
network: Network | None = None
Configures network isolation settings for the sandboxed bash environment, including domain restrictions, Unix socket access, and custom proxy configuration.
ripgrep
class-attribute
instance-attribute
¶
ripgrep: Ripgrep | None = None
Custom ripgrep configuration for Claude Code's bundled ripgrep support. Overrides the bundled binary and arguments.
socat_path
class-attribute
instance-attribute
¶
(Managed setting only) Path to custom socat binary for Linux/WSL network proxying. Overrides default. See https://code.claude.com/docs/en/server-managed-settings
SpinnerTipsOverride
¶
Bases: ClaudeCodeBaseModel
Customize the tips displayed in the spinner while Claude is working. See https://code.claude.com/docs/en/settings#available-settings.
Source code in src/clawd_code_sdk/models/settings.py
SpinnerVerbs
¶
Bases: ClaudeCodeBaseModel
Customize the verbs shown in spinner progress messages.
Source code in src/clawd_code_sdk/models/settings.py
SshConfig
¶
Bases: ClaudeCodeBaseModel
Source code in src/clawd_code_sdk/models/settings.py
id
instance-attribute
¶
Unique identifier for this SSH config, used to match configs across settings sources
ssh_host
class-attribute
instance-attribute
¶
SSH host in the form "user@hostname" or "hostname", or a host alias from ~/.ssh/config
ssh_identity_file
class-attribute
instance-attribute
¶
Path to the SSH identity file (private key)
ssh_port
class-attribute
instance-attribute
¶
SSH port (default 22)
start_directory
class-attribute
instance-attribute
¶
Default working directory on the remote host; supports tilde expansion. Defaults to the remote user home directory
StatusLine
¶
Bases: ClaudeCodeBaseModel
Custom status line display configuration. See https://code.claude.com/docs/en/statusline.
Source code in src/clawd_code_sdk/models/settings.py
command
instance-attribute
¶
A shell command or path to a script that displays session information (context usage, costs, git status, etc.) by reading JSON data from stdin and writing output to stdout. See https://code.claude.com/docs/en/statusline
hide_vim_mode_indicator
class-attribute
instance-attribute
¶
Set to true when your status line script renders the vim mode indicator itself, to suppress the built-in vim mode display. See https://code.claude.com/docs/en/statusline#manually-configure-a-status-line
padding
class-attribute
instance-attribute
¶
Optional number of extra horizontal spacing characters added to the status line content; defaults to 0.
refresh_interval
class-attribute
instance-attribute
¶
Re-run the status line command every N seconds in addition to event-driven updates. Leave unset to run only on events. Useful for time-based data like clocks, or when background subagents change git state while the main session is idle. See https://code.claude.com/docs/en/statusline
type
class-attribute
instance-attribute
¶
The type of status line handler; must be set to "command" to run a custom shell script that receives JSON session data via stdin.
StrictMarketplaceDirectory
¶
Bases: ClaudeCodeBaseModel
Source code in src/clawd_code_sdk/models/settings.py
StrictMarketplaceFile
¶
Bases: ClaudeCodeBaseModel
Source code in src/clawd_code_sdk/models/settings.py
StrictMarketplaceGit
¶
Bases: ClaudeCodeBaseModel
Source code in src/clawd_code_sdk/models/settings.py
source
class-attribute
instance-attribute
¶
Identifies the marketplace source type
StrictMarketplaceGithub
¶
Bases: ClaudeCodeBaseModel
Source code in src/clawd_code_sdk/models/settings.py
source
class-attribute
instance-attribute
¶
Identifies the marketplace source type
StrictMarketplaceHostPattern
¶
Bases: ClaudeCodeBaseModel
Source code in src/clawd_code_sdk/models/settings.py
StrictMarketplaceNpm
¶
Bases: ClaudeCodeBaseModel
Source code in src/clawd_code_sdk/models/settings.py
StrictMarketplacePathPattern
¶
Bases: ClaudeCodeBaseModel
Source code in src/clawd_code_sdk/models/settings.py
StrictMarketplaceSkillsDir
¶
Bases: ClaudeCodeBaseModel
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.
Source code in src/clawd_code_sdk/models/settings.py
source
class-attribute
instance-attribute
¶
Identifies the marketplace source type
StrictMarketplaceUrl
¶
Bases: ClaudeCodeBaseModel
Source code in src/clawd_code_sdk/models/settings.py
StrictPluginOnlyCustomization
¶
Bases: RootModel[list[Literal['skills', 'agents', 'hooks', 'mcp']]]
Source code in src/clawd_code_sdk/models/settings.py
root
instance-attribute
¶
(Managed settings) Block non-plugin customization sources for the listed surfaces. Array form locks specific surfaces (e.g., ["skills", "hooks"]); true locks all four; false is an explicit no-op. See https://code.claude.com/docs/en/plugins-reference
SubagentStatusLine
¶
Bases: ClaudeCodeBaseModel
Status line configuration for subagent sessions. See https://code.claude.com/docs/en/statusline#subagent-status-lines.
Source code in src/clawd_code_sdk/models/settings.py
Theme
¶
Bases: RootModel[str]
Source code in src/clawd_code_sdk/models/settings.py
root
class-attribute
instance-attribute
¶
Reference to a custom theme defined in ~/.claude/themes/, in the form custom:<slug>
TlsTerminate
¶
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
Voice
¶
Bases: ClaudeCodeBaseModel
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.
Source code in src/clawd_code_sdk/models/settings.py
auto_submit
class-attribute
instance-attribute
¶
In hold mode, auto-submit the prompt on key release when the transcript is at least three words long
enabled
class-attribute
instance-attribute
¶
Enable push-to-talk voice dictation input
mode
class-attribute
instance-attribute
¶
Recording mode: "hold" (default) is push-to-talk; "tap" taps once to start and again to stop and submit
Worktree
¶
Bases: ClaudeCodeBaseModel
Configuration for --worktree sessions. See https://code.claude.com/docs/en/settings#worktree-settings.
Source code in src/clawd_code_sdk/models/settings.py
base_ref
class-attribute
instance-attribute
¶
Whether to branch worktrees from origin/<default> (fresh) or local HEAD (head). Default: fresh. Set to 'head' to preserve unpushed commits in new worktrees. See https://code.claude.com/docs/en/settings#worktree-settings
bg_isolation
class-attribute
instance-attribute
¶
Isolation mode for background sessions. "worktree" blocks Edit/Write in main checkout until EnterWorktree is called; "none" lets background jobs edit the working copy directly without EnterWorktree, for repos where worktrees are impractical. See https://code.claude.com/docs/en/settings#worktree-settings
sparse_paths
class-attribute
instance-attribute
¶
sparse_paths: list[SparsePath] | None = Field(
None, alias="sparsePaths", examples=[["packages/my-app", "shared/utils"]]
)
Directories to check out in each worktree via git sparse-checkout (cone mode). Only the listed paths are written to disk, which is faster in large monorepos. See https://code.claude.com/docs/en/settings#worktree-settings
symlink_directories
class-attribute
instance-attribute
¶
symlink_directories: list[str] | None = Field(
None, alias="symlinkDirectories", examples=[["node_modules", ".cache"]]
)
Directories to symlink from the main repository into each worktree to avoid duplicating large directories on disk. No directories are symlinked by default. See https://code.claude.com/docs/en/settings#worktree-settings