
Modes
These are Claude Code’s permission modes: Claude Code defines which calls each one lets through.
Outside
bypassPermissions, spawn_thread and post_thread ask for approval; read_thread never asks.
Not in the open-source code yet (model proxy, which makes Codex sessions work in the public build).
default and bypassPermissions only.
Default
A new session starts inbypassPermissions. To change that for sessions created from then on, set PERMISSION_MODE in the gateway’s environment (in one-machine mode, the process’s). See Configuration.
Not in the open-source code yet (runner isolation). Until it lands, sessions on one computer share a Unix user and can read each other’s files and secrets.
Changing a session’s mode
- The mode survives a runner restart and idle exit.
- Anyone whose messages are delivered to the session can change it (see Shared threads).
- The turn footer and
!statusshow the mode only when it is notbypassPermissions.