In short.
This xAI guide helps developers configure how Grok approves tool calls, but approval alone does not constrain filesystem or network access. It documents Ask, Auto and Always-approve modes, rule precedence and configuration locations. Its most consequential detail is that remembered grants can still prompt for dangerous commands, while explicit allow rules can approve them automatically. Auto requires an enabled feature; classifier accuracy, costs and runtime behavior are not established here.
Researched and written by an AI model and checked by a second AI model. How it works
Coverage includes the complete supplied page at [https://docs.x.ai/build/features/permissions.md], including its warnings about dangerous commands, feature availability, configuration precedence and planning behavior. Linked sandbox, plan-mode and enterprise pages are excluded. No commands, configurations, classifiers, hooks or sandbox behavior were executed or tested. Costs, licensing, installation requirements and release compatibility remain unknown where the page supplies no details.
The overview
Identity
The resource is xAI's Permissions documentation for Grok at [https://docs.x.ai/build/features/permissions.md]. It teaches tool-call approval settings through mode descriptions, keyboard shortcuts, slash commands, CLI flags and TOML configuration examples.
Assessment
The guide is useful for deciding when Grok should request approval and understanding which rules remain active during automatic approval. Its strongest practical detail is the distinction between remembered grants and explicit allow rules: these can behave differently for commands such as rm and git push.
It is a focused configuration reference. Installation, sandbox configuration, classifier reliability and deployment-specific controls need information beyond this page.
Users
Developers using Grok can use this guide to manage approval interruptions and command permissions. People maintaining shared configurations can use its explanation of rule precedence and the permitted locations for default-mode settings.
Beginners should understand the approval-versus-sandbox distinction before changing modes. Experienced users will find details about feature availability, legacy configuration keys and the interaction with planning mode.
Capabilities
Ask is the default and prompts for calls that are not already allowed. Auto uses a classifier to approve calls considered safe, while dangerous calls may still prompt. Always-approve automatically approves tool calls, subject to deny rules and PreToolUse hooks.
The documented controls include /auto, /always-approve, Ctrl+O and grok --always-approve. Shift+Tab cycles through Normal, Plan, Auto when available, and Always-approve. Switching between Auto and Always-approve replaces the active mode rather than combining them.
Rules support Bash, Edit, Read, Grep, MCPTool, WebFetch and WebSearch filters. Per-invocation --allow and --deny flags accept the same patterns as configuration rules.
Using it
Requirements
Following the examples requires a Grok environment supporting the documented commands, flags or configuration. The page supplies no installation instructions, supported operating systems or minimum software version.
Auto requires its permission-mode feature to be enabled; the page does not explain how to enable it. Default permission-mode settings belong in user configuration or managed/requirements configuration, not project .grok/config.toml.
Mechanism
Permissions determine whether a tool call may run. The separate sandbox limits the filesystem and network actions available to an approved call. Deny rules override allow rules, and automatic approval modes retain the documented rule and hook controls.
A remembered always-allow grant still prompts for dangerous patterns such as rm and git push. An explicit configuration or CLI allow rule can automatically approve those commands. Under Always-approve they run unless a deny rule matches; the page also says PreToolUse hooks still apply in this mode but does not describe what they can do.
Plan mode remains independent: editing tools stay restricted during planning, and Auto or Always-approve does not skip plan review.
Setup
The documented user configuration file is ~/.grok/config.toml. Under [ui], permission_mode accepts ask, auto or always-approve. Legacy approval_mode and yolo = true remain supported, but permission_mode takes precedence when multiple settings are present.
Allow and deny entries go in the rules array under [permission], with action, tool and optional pattern fields as illustrated on the page. The exact pattern-matching grammar is not explained.
The interface displays auto when Auto is active and plan mode is inactive. Headless settings and locking Always-approve off are referred to Enterprise Deployments documentation; their configuration is not provided here.
Example
The page's configuration example allows bash calls matching git *, allows read calls, and denies bash calls matching rm -rf *. It demonstrates combining a command-pattern grant, a tool-wide grant and a command-pattern denial.
The git * grant deserves attention because explicit allow rules can automatically approve dangerous commands. The example should therefore be read alongside the warning about git push and the rule that deny takes precedence. This is an explanation of the documented configuration; nothing was executed.
Assessment & evidence
Limitations
The Auto classifier's criteria, accuracy and failure rates are not disclosed. The page also does not specify detailed hook behavior or pattern-matching edge cases.
Automatic approval does not itself establish filesystem or network isolation. Broad explicit allow rules can remove prompts for consequential commands, so a remembered grant should not be assumed equivalent to a configuration grant.
Sandbox details, full planning behavior and enterprise permission controls are outside this page. No behavior, security property or compatibility claim was independently tested.
Reasoning
The practical trade-off is how much approval responsibility remains with the user. Ask retains prompts for calls without an existing grant; Auto delegates some decisions to a classifier; Always-approve relies on the remaining rules and hooks.
This suggests choosing a mode according to the review your work requires. The source provides no measurements of time saved or unsafe approvals prevented, so neither productivity gains nor classifier effectiveness can be quantified.
Alternatives
The page's mode table offers Ask, Auto and Always-approve for interactive use, and it points to the Enterprise Deployments documentation [https://docs.x.ai/build/enterprise#permissions] for headless modes such as dontAsk, which this page does not explain. It supplies no comparison with other assistants or permission systems.
Plan mode and sandboxing address related needs: planning restricts editing and preserves plan review, while sandboxing limits approved calls. Their detailed configuration is covered by linked pages rather than this resource.
Evidence
The evidence is the complete Permissions page from xAI's documentation at [https://docs.x.ai/build/features/permissions.md]. It supports descriptions of intended behavior and configuration syntax.
The page contains no execution results, benchmarks or classifier evaluations. Nothing was run, and linked documentation was not assessed.
Access & freshness
Costs
The page does not establish Grok pricing, usage charges or any extra charge for these modes. Whether Auto requires a particular plan or entitlement is unknown. No cost estimate is supported by this source.
Rights
The supplied page states no licence or redistribution grant for its text and provides no applicable Grok service terms. Rights to redistribute the documentation and terms governing use of the software are unknown from this source.
Freshness
The supplied page was captured on 14 November 2026 at 18:57:30.494 UTC. It states no publication date, update date or Grok release version.
Release compatibility and subsequent changes are unknown. Auto's availability is explicitly conditional on an enabled feature.
Actions
A cautious starting configuration is Ask, with narrowly scoped allow rules for recurring work and explicit deny rules for commands you intend to block. Review existing explicit grants before relying on prompts for dangerous commands.
Before enabling Auto, confirm that the feature is available in your environment. Before broadening approvals, examine sandbox controls at [https://docs.x.ai/build/features/sandbox]. For headless settings or centrally restricting Always-approve, consult [https://docs.x.ai/build/enterprise#permissions]; those details are not established by this page.
