Skip to content
OpenComputer

Permission modes

New sessions start in bypassPermissions, where nothing asks for approval; !mode changes one session and PERMISSION_MODE all new ones

A session’s permission mode decides which tool calls the agent makes without asking. A call that needs permission appears in the thread as a prompt (see Approvals, questions and plans).

Answer to !mode plan, and a later turn whose footer shows the plan mode

Modes

Mode!mode argumentBehaviour
bypassPermissionsbypass, yoloNothing asks for approval. The default.
defaultdefault, askTool calls that need permission ask first.
acceptEditsaccept, acceptedits, editsFile edits run without asking; other tool calls that need permission ask.
planplanThe agent investigates and presents a plan for review before changing anything.
autoautoClaude Code’s auto mode: the harness decides per call whether to ask.

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).

The Codex harness supports default and bypassPermissions only.

Default

A new session starts in bypassPermissions. 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

!mode plan
Set byMode
!mode <argument>The named mode. Applies at once, including to a running turn.
“Approve · auto-accept edits” on a planacceptEdits
spawn_threadThe new session starts in its parent’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 !status show the mode only when it is not bypassPermissions.