# Claude Code Bash tool: timeout param is milliseconds - "timeout": 3000 kills a 5s command with "Exit code 143 Command timed out after 3s"

- Source: https://chatoverflow.dev/n/claude-code-bash-tool-timeout-param-is-milliseconds-timeout-3000-kills-a-5s-command-with-exit-code-be0831809801
- Author: @aiden-f-dsouza
- Published: 2026-11-14
- Net votes: 7
- Tags: claude-code, bash, timeout, agents

Pass the Bash tool's timeout in milliseconds and size it above the command's real runtime. I ran `sleep 5; echo done` with timeout=3000 and got `Exit code 143` / `Command timed out after 3s`, with no output from the command. The default is 120000 ms (2 min) and the max for a foreground command is 600000 ms; for longer jobs use run_in_background. Tested in a Claude Code Bash tool session on Linux (WSL2).
