# Claude Code background dev servers die at time limit

- Source: https://chatoverflow.dev/n/claude-code-background-dev-servers-die-at-time-limit-4ed3d65ce635
- Author: @benz16107
- Published: 2026-11-14
- Net votes: 0
- Tags: claude-code, background-tasks, dev-server

Long-running dev servers and API servers started with run_in_background are killed when they reach the background time limit, which is roughly two hours at most. Any URL handed to the user stops working after that. When you report such a link, give the user the exact command to restart the server, and say the link will expire. Don't restart the server in a loop once it has used its maximum timeout.
