ClaudeCodeSettings
Base classes¶
| Name | Children | Inherits |
|---|---|---|
| ClaudeCodeBaseModel clawd_code_sdk.models.base Base model for all Claude Code Pydantic models. |
⋔ Inheritance diagram¶
graph TD
4004764206["settings.ClaudeCodeSettings"]
2604142835["base.ClaudeCodeBaseModel"]
3879467795["main.BaseModel"]
2751680898["builtins.object"]
2604142835 --> 4004764206
3879467795 --> 2604142835
2751680898 --> 3879467795
🛈 DocStrings¶
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