Set the agent kill switch
Changed onPrototype (AG-297). Turns the org-level agent kill switch on or off. Admin only.
While it is on, Opal answers every PreToolUse hook POST to /agent-activity with a deny decision, so a cooperating Claude Code client stops running tools.
It is not a security boundary, and it fails open. It reaches only clients that are configured to POST to /agent-activity and that honour the answer; a client on a non-default base URL, an older build, or with no hook deployed is unaffected. If Opal is unreachable or slow the tool call proceeds, because Claude Code treats a failed PreToolUse hook as a non-blocking error by design.
Activation is always time-bound: duration_minutes is capped, and an activation that reaches expires_at stops denying on its own.
Request
- Base URLhttps://api.opal.dev/v1
- AuthHTTP bearer
Request body
Response
The state of the kill switch after the change.
Changes
- info
endpoint added
- info