Search the documentation
3 pages for --restricted.
Titles and paths first, then pages whose text carries it. Each row opens that page as this site last read it.
Claude Code changelog
Claude Code CLI · in the page
changelog
…e> <Update label="2.1.248" description="August 27, 2026"> * Added `--restricted` (or `CLAUDE_CODE_RESTRICTED=1`): removes the built-in tools that run commands or code and `WebFetch` (unless named i…
CLI reference
Claude Code CLI · in the page
cli-reference
…on --output-format stream-json --verbose --replay-user-messages` | | `--restricted` | Start in restricted mode. Use it when an evaluation harness drives `claude` on a…
Choose a permission mode
Claude Code CLI · in the page
permission-modes
…Claude Code refuses `bypassPermissions` in a session you start with [`--restricted`](/docs/en/cli-reference#cli-flags). `--restricted` requires Claude Code v2.1.248 or later. The first time you start…