Skip to content
BENIBIX Learn

allowDangerouslySkipPermissions Option

Also known as skip permissions safety flag, Claude Agent SDK allowDangerouslySkipPermissions

The option that must be true before bypass mode can run.

Think of it like

It is like a lock that needs two keys to open.

Example

Leo sets bypass mode in his CI agent and gets an error. He sets the long safety option to true, and it starts.

Why it matters

Bypass mode runs tool calls with no checks, so it should take two clear steps to turn on.

Definition

allowDangerouslySkipPermissions is an option in the TypeScript Agent SDK. It must be true before a session can use bypass mode. You need it at the start, and also before you switch to that mode later. The default is false. The long name is there so no one turns on the riskiest mode by mistake.

Common mistake

Turning it on outside a sandbox. Keep bypass mode for CI and throwaway containers.

Key takeaways

  1. 1
    Needed for bypass. In TypeScript.
  2. 2
    Off by default. false.
  3. 3
    Two keys on purpose. No accidents.