Skip to content
BENIBIX Learn

--allowedTools Flag

Also known as claude --allowedTools, --allowed-tools

It lists tools that run without asking you first.

Think of it like

It is like a list of games you may play. You do not have to ask first.

Example

Jack's CI job only needs git log and file reads. He lists just those in --allowedTools, so the job never stops to ask about them.

Why it matters

A run with no one watching cannot answer a prompt. The allow list keeps it moving.

Definition

--allowedTools lists tools that run without asking you first. Each entry is a permission rule, such as Read or "Bash(git log *)". Tools you leave off still exist, they just ask before they run. To take a tool away, use --tools or --disallowedTools. --allowed-tools is the same flag.

Example code

bash
claude -p "Show what changed" --allowedTools "Bash(git log *)" "Bash(git diff *)" "Read"
Let git log, git diff and Read run with no prompt.
--allowedTools is the middle gate: the tools that do not ask.

Common mistake

Using it to limit Claude to those tools. Others are still there and can ask. Use --tools to remove them.

Key takeaways

  1. 1
    Runs without asking. Just these.
  2. 2
    Permission rules. Read, Bash(git log *).
  3. 3
    Others still exist. They ask.

Compare

Learn it properly