--restricted
Launches Claude Code in a restricted mode that disables command execution tools and limits file access to working directories.
Syntax
--restrictedExample
Terminal
claude --restricted -p "query"Progress will not be saved. This browser is blocking storage (often private browsing). You can still learn, but closing the tab loses your progress.
--restrictedLaunches Claude Code in a restricted mode that disables command execution tools and limits file access to working directories.
--restrictedclaude --restricted -p "query"