Answer: Pass `--permission-prompts none` when nobody is available to answer permission prompts, for example in a scheduled job. To deny calls that would wait on a permission prompt in later runs too, set `permissions.denyInsteadOfPrompting` to `true` in your user or managed settings. Status: Confirmed Entry: tool/claude-code/permissions-and-security/disable-permission-prompts-unattended Revision: 2 Digest: sha256:1bbd2ca28b309597 (changes whenever the content changes) Timeline: Created: 2026-11-13T03:04:21Z Last changed: 2026-11-15T12:21:11Z (setting: — → permissions.denyInsteadOfPrompting) Last verified: 2026-11-20T12:21:13Z Next check: 2026-11-21T12:21:13Z Check interval: Daily Expected change: No fixed schedule Data: Field | Value | Source | As of flag | --permission-prompts none | [1] | 2026-11-20 setting | permissions.denyInsteadOfPrompting | [1] | 2026-11-20 minimum version | v2.1.259 | [1] | 2026-11-20 Sources: [1] Anthropic. "Run Claude Code programmatically". https://code.claude.com/docs/en/headless.md Role: primary. Accessed: 2026-11-20T12:21:13Z Quote: "Pass `--permission-prompts none` when nobody is available to answer permission prompts" (Supports: flag) Quote: "set [`permissions.denyInsteadOfPrompting`](https://code.claude.com/docs/en/settings-reference#permissions-denyinsteadofprompting) to `true` in your user or managed settings" (Supports: setting) Quote: "The `--permission-prompts` flag requires Claude Code v2.1.259 or later." (Supports: minimum version) Published: 2026-11-20T02:53:01Z Snapshot SHA-256: eae22eba29efbd00b5b2592bd64774ffd337ad0efe7645c4c842954c2d9cbcdd (captured 2026-11-20T12:21:14Z) Verification: Method: Automated extraction from [1] with deepseek-flash (JSON output, thinking disabled). Every value was checked by code to appear verbatim in a quoted passage of [1]. Cross-check: not-available at 2026-11-20T12:21:13Z. No independent second source is configured for this entry Last successful check: 2026-11-20T12:21:13Z Last attempt: 2026-11-20T12:21:13Z Notes and limitations: Extracted automatically from a single official source (section "Turn off permission prompts in unattended runs"). Related: https://latestn.com/tool/claude-code/permissions-and-security/enable-sandbox How do I enable or disable sandboxing in Claude Code? https://latestn.com/tool/claude-code/permissions-and-security/enable-sandboxed-bash How do I enable the sandboxed Bash tool in Claude Code and confirm commands run inside the sandbox? https://latestn.com/tool/claude-code/permissions-and-security/enforce-policies What policies and restrictions can I enforce on Claude Code for my organization? https://latestn.com/tool/claude-code/permissions-and-security/control-custom-tool-access How do I control which custom tools Claude Code can access or require approval for? https://latestn.com/tool/claude-code/permissions-and-security/control-permissions How do I control what Claude Code is allowed to do? https://latestn.com/tool/claude-code/permissions-and-security/define-trusted-infrastructure How do I define trusted infrastructure for Claude Code auto mode? https://latestn.com/tool/ All entries in AI tools Change log: Time | Event | Change | Source 2026-11-15T12:21:11Z | changed | setting: — → permissions.denyInsteadOfPrompting | [1] 2026-11-15T12:21:11Z | changed | example command: claude -p "Update the dependency pins and run the tests" --permission-mode auto --permission-prompts none → — | [1] 2026-11-13T03:04:21Z | added | Entry created | — Changes for this entry as a feed: https://latestn.com/tool/claude-code/permissions-and-security/disable-permission-prompts-unattended/latest Challenge this entry: Open challenges: None How: If a value here is wrong or out of date, send what is wrong and a link to evidence. Challenges are queued and checked against the evidence; they do not change the entry by themselves. If the entry changes as a result, the change log says so. Form: https://latestn.com/dispute/tool/claude-code/permissions-and-security/disable-permission-prompts-unattended POST: https://latestn.com/dispute/tool/claude-code/permissions-and-security/disable-permission-prompts-unattended with claim, evidence_url, and optionally field and contact (form-encoded or JSON) GET: https://latestn.com/dispute/tool/claude-code/permissions-and-security/disable-permission-prompts-unattended?claim={what is wrong}&evidence_url={link} How to cite: LatestN. (2026). How do I turn off permission prompts in unattended Claude Code runs? Revision 2, last verified 2026-11-20T12:21:13Z. https://latestn.com/tool/claude-code/permissions-and-security/disable-permission-prompts-unattended (accessed 2026-11-21T10:05:27Z). @misc{LatestN_tool_claude_code_permissions_and_security_disable_permission_prompts_unattended_r2, title = {How do I turn off permission prompts in unattended Claude Code runs?}, author = {{LatestN}}, year = {2026}, howpublished = {\url{https://latestn.com/tool/claude-code/permissions-and-security/disable-permission-prompts-unattended}}, note = {Revision 2; digest sha256:1bbd2ca28b309597; last verified 2026-11-20T12:21:13Z; accessed 2026-11-21T10:05:27Z} } Reuse: License: CC BY 4.0 (https://creativecommons.org/licenses/by/4.0/) Attribution: Copying and adapting are allowed, including commercially, if you credit LatestN and link to the entry you used. Each entry ends with a ready-made citation. URL: https://latestn.com/tool/claude-code/permissions-and-security/disable-permission-prompts-unattended