Claude Resume Timer

Set a timer and get the exact terminal command to keep Claude Code running while you step away.

  • Free
  • No account
  • Runs in your browser
  • Nothing uploaded
Claude Resume TimerNothing uploaded
How long should Claude run?
:
What should happen when time is up?
Which session?

Set a time and pick a mode to get the exact command for keeping Claude Code running.

Runs entirely in your browser — your input is never uploaded, logged, or stored.Privacy policy

What is Claude Resume Timer?

Claude Code sessions end when you close your terminal or disconnect from SSH. If you want Claude to keep working overnight or while you are away, you need a command that keeps the session alive and resumes it automatically.

This tool generates that command. Pick how long you want Claude to run, whether you are on a local machine or a remote server, and whether you want it to resume a specific session or the last one. The tool gives you the exact command to paste into your terminal.

Three modes cover every use case. Simple mode runs Claude with a timeout — it stops after your chosen duration. Background mode uses tmux or screen to keep the session alive even if your SSH connection drops or your laptop sleeps. Loop mode restarts Claude automatically if it exits, so it keeps going until you tell it to stop.

All commands use standard Unix tools (timeout, tmux, screen) that are pre-installed on macOS and Linux. No extra software needed.

Command generation logic:

1. Simple mode: timeout <seconds> claude --continue — runs Claude for exactly N seconds then exits. 2. Background mode: tmux new-session -d -s claude "claude --continue" — runs in a detached tmux session that survives SSH disconnects. 3. Loop mode: while true; do claude --continue; sleep 5; done — restarts Claude every 5 seconds if it exits. 4. Background + loop: combines both for maximum resilience.

Session options: • --continue — resumes the most recent session (default) • --resume <name> — resumes a specific named session • No flags — starts a fresh session

Duration is converted to seconds for the timeout command. The tool shows both the human-readable duration and the exact seconds.

Worked examples

  • 4 hours, background mode, tmux → tmux new-session -d -s claude "timeout 14400 claude --continue" — runs Claude for 4 hours in a detached tmux session.
  • 8 hours, loop mode → while true; do claude --continue; sleep 5; done — keeps restarting Claude until you stop it with Ctrl+C.
  • 2 hours, background + loop, named session → tmux new-session -d -s claude "while true; do timeout 7200 claude --resume my-project; sleep 5; done" — runs a loop that restarts Claude every 2 hours, in a detached tmux session.
  • 1 hour, simple mode → timeout 3600 claude --continue — runs Claude for exactly 1 hour then exits.

How to use Claude Resume Timer

  1. Choose how long you want Claude to run (1 hour, 4 hours, 8 hours, or custom).
  2. Pick a mode: Simple (stops after duration), Background (survives disconnect), or Loop (auto-restarts).
  3. Optionally enter a session name to resume a specific session.
  4. Copy the generated command.
  5. Paste it into your terminal and press Enter.
  6. Come back later — Claude will have been working the whole time.

Common errors

  • Command not found: timeout — on macOS, install GNU coreutils: brew install coreutils. Or use gtimeout instead of timeout.
  • Command not found: tmux — install tmux: brew install tmux (macOS) or apt install tmux (Linux).
  • Session not resuming — make sure you are in the same directory where the session was created.
  • Claude exits immediately — check if you have an active API key configured (claude config).

FAQ

Will this keep Claude Code running if my laptop sleeps?

Only the Background mode (tmux/screen) helps with this — but only if Claude is running on a remote server. If Claude is running locally on your laptop, sleeping the laptop suspends all processes. Use Background mode on a server accessed via SSH.

What is the difference between --continue and --resume?

--continue resumes the most recent session in the current directory. --resume with a name or ID lets you pick a specific session. Use --continue for the simple case.

How do I stop a running command?

Press Ctrl+C for Simple and Loop modes. For Background mode, attach to the tmux session with tmux attach -t claude, then press Ctrl+C, or kill the session with tmux kill-session -t claude.

Does this cost extra API tokens?

No. This tool generates terminal commands — it does not interact with any API. Claude Code uses your existing API key and billing.

Can I use this on Windows?

The commands use Unix tools (timeout, tmux). On Windows, use WSL2 (Windows Subsystem for Linux) to run these commands. Native PowerShell does not support them.

G

Prefer AllUtil on Google

One click adds AllUtil to your Google preferences. You'll see our tools highlighted with a Preferred badge in Search and AI answers.

2× more likely to clickWorks in AI Overviews