Answer: Set the environment variable `BASH_MAX_TIMEOUT_MS` above `7200000` to raise the 2-hour maximum to that value; setting `BASH_DEFAULT_TIMEOUT_MS` above `7200000` raises the maximum the same way. Status: Confirmed Entry: tool/claude-code/settings/raise-background-command-time-limit Revision: 2 Digest: sha256:3b2563f74f77b562 (changes whenever the content changes) Timeline: Created: 2026-11-13T03:06:01Z Last changed: 2026-11-16T12:13:08Z (threshold value: — → 7200000) Last verified: 2026-11-20T12:25:55Z Next check: 2026-11-21T12:25:55Z Check interval: Daily Expected change: No fixed schedule Data: Field | Value | Unit | Source | As of max timeout variable | BASH_MAX_TIMEOUT_MS | | [1] | 2026-11-20 threshold value | 7200000 | milliseconds | [1] | 2026-11-20 default timeout variable | BASH_DEFAULT_TIMEOUT_MS | | [1] | 2026-11-20 default timeout threshold | 1800000 | milliseconds | [1] | 2026-11-20 default limit | 30-minute | | [1] | 2026-11-20 maximum limit | 2-hour | | [1] | 2026-11-20 Sources: [1] Anthropic. "Tools reference". https://code.claude.com/docs/en/tools-reference.md Role: primary. Accessed: 2026-11-20T12:25:55Z Quote: "Set `BASH_MAX_TIMEOUT_MS` above `7200000` to raise the 2-hour maximum to that value." (Supports: max timeout variable, threshold value) Quote: "Setting `BASH_DEFAULT_TIMEOUT_MS` above `7200000` raises the maximum the same way" (Supports: default timeout variable) Quote: "Set `BASH_DEFAULT_TIMEOUT_MS` above `1800000` to replace the 30-minute default with that value" (Supports: default timeout threshold) Quote: "replace the 30-minute default with that value" (Supports: default limit) Quote: "raise the 2-hour maximum to that value" (Supports: maximum limit) Published: 2026-11-20T02:54:52Z Snapshot SHA-256: b70a0f34f42a2adc0e99e9442dcf08c4ac58e9dd5e60f4a16e79bad9f5d37304 (captured 2026-11-20T12:25:55Z) 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:25:55Z. No independent second source is configured for this entry Last successful check: 2026-11-20T12:25:55Z Last attempt: 2026-11-20T12:25:55Z Notes and limitations: Extracted automatically from a single official source (section "Raise the time limit for background commands"). Related: https://latestn.com/tool/claude-code/settings/reenable-lsp-recommendations How do I turn code intelligence plugin recommendations back on in Claude Code? https://latestn.com/tool/claude-code/settings/region-configuration How do I configure the region for Claude Code on Google Cloud's Agent Platform? https://latestn.com/tool/claude-code/settings/reserved-marketplace-names What are the reserved marketplace names in Claude Code? https://latestn.com/tool/claude-code/settings/plugin-manifest-fields What fields can I set in a Claude Code plugin's plugin.json manifest? https://latestn.com/tool/claude-code/settings/plugin-marketplace-auto-update How do I turn auto-update on or off for a Claude Code plugin marketplace? https://latestn.com/tool/claude-code/settings/plugin-userconfig-schema How do I define userConfig options in a Claude Code plugin manifest? https://latestn.com/tool/ All entries in AI tools Change log: Time | Event | Change | Source 2026-11-16T12:13:08Z | changed | threshold value: — → 7200000 | [1] 2026-11-16T12:13:08Z | changed | max timeout threshold: 7200000 → — | [1] 2026-11-13T03:06:01Z | added | Entry created | — Changes for this entry as a feed: https://latestn.com/tool/claude-code/settings/raise-background-command-time-limit/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/settings/raise-background-command-time-limit POST: https://latestn.com/dispute/tool/claude-code/settings/raise-background-command-time-limit with claim, evidence_url, and optionally field and contact (form-encoded or JSON) GET: https://latestn.com/dispute/tool/claude-code/settings/raise-background-command-time-limit?claim={what is wrong}&evidence_url={link} How to cite: LatestN. (2026). How do I raise the time limit for background commands in Claude Code? Revision 2, last verified 2026-11-20T12:25:55Z. https://latestn.com/tool/claude-code/settings/raise-background-command-time-limit (accessed 2026-11-21T09:53:39Z). @misc{LatestN_tool_claude_code_settings_raise_background_command_time_limit_r2, title = {How do I raise the time limit for background commands in Claude Code?}, author = {{LatestN}}, year = {2026}, howpublished = {\url{https://latestn.com/tool/claude-code/settings/raise-background-command-time-limit}}, note = {Revision 2; digest sha256:3b2563f74f77b562; last verified 2026-11-20T12:25:55Z; accessed 2026-11-21T09:53:39Z} } 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/settings/raise-background-command-time-limit