Elevated Mode
When an agent runs inside a sandbox, itsexec commands are confined to the
sandbox environment. Elevated mode lets the agent break out and run commands
on the gateway host instead, with configurable approval gates.
Elevated mode only changes behavior when the agent is sandboxed. For
unsandboxed agents, exec already runs on the host.
Directives
Control elevated mode per-session with slash commands:
Also available as
/elev on|off|ask|full.
Send /elevated with no argument to see the current level.
How it works
1
Check availability
Elevated must be enabled in config and the sender must be on the allowlist:
2
Set the level
Send a directive-only message to set the session default:Or use it inline (applies to that message only):
3
Commands run on the host
With elevated active,
exec calls route to the gateway host instead of the
sandbox. In full mode, exec approvals are skipped. In on/ask mode,
configured approval rules still apply.Resolution order
- Inline directive on the message (applies only to that message)
- Session override (set by sending a directive-only message)
- Global default (
agents.defaults.elevatedDefaultin config)
Availability and allowlists
- Global gate:
tools.elevated.enabled(must betrue) - Sender allowlist:
tools.elevated.allowFromwith per-channel lists - Per-agent gate:
agents.list[].tools.elevated.enabled(can only further restrict) - Per-agent allowlist:
agents.list[].tools.elevated.allowFrom(sender must match both global + per-agent) - Discord fallback: if
tools.elevated.allowFrom.discordis omitted,channels.discord.allowFromis used as fallback - All gates must pass; otherwise elevated is treated as unavailable
What elevated does not control
- Tool policy: if
execis denied by tool policy, elevated cannot override it - Separate from
/exec: the/execdirective adjusts per-session exec defaults for authorized senders and does not require elevated mode
Related
- Exec tool — shell command execution
- Exec approvals — approval and allowlist system
- Sandboxing — sandbox configuration
- Sandbox vs Tool Policy vs Elevated