Claude Code usage

Claude Session Keeper

claude-session-keeper sends a simple "Hi" message to Claude Code every 5 hours, allowing your rolling clock to reset as early as possible. This can allow you to code a lot more, as if a session starts at 6 am instead of 9 am for example, you can have the same usage in the first session equivalent to 5 hours in just 2.

Install

Install
npm install -g @anthropic-ai/claude-code

Found in the project README. Check it for setup steps after installing.

From source
git clone https://github.com/nomadictuba2005/claude-session-keeper.git

From the README

Claude Session Keeper

🤖 Automatically optimize your Claude Code session timing with intelligent scheduling and daily resets.

What It Does

Claude Code uses fixed 5-hour session windows that start with your first message. This script gives you complete control over when those windows begin:

- ✅ 5-Hour Session Optimization - Control exactly when your Claude Code sessions start
- ✅ Daily Reset Feature - Fresh sessions every day at your preferred time
- ✅ Smart Scheduling - Never waste sessions on random timing
- ✅ Minimal Resource Usage - 1 message per window vs 10-800 limit
- ✅ 24/7 Operation - Perfect for Raspberry Pi or always-on systems
- ✅ Automatic Timezone Detection - Works anywhere in the world

How Claude Code Sessions Work

Claude Code limits work with fixed 5-hour windows:
1. Window starts with your first message
2. Once you hit your limit (10-800 messages), you're locked out
3. Window expires exactly 5 hours after the first message
4. This script controls when that first message happens 🎯

Without this script: Random session timing based on when you happen to use Claude
With this script: Predictable, optimized sessions that align with your schedule

🚀 Features

⏰ Precise Timing Control
- Unix timestamp scheduling - Start at exact moments
- Resume functionality - Pick up where you left off after restarts
- Smart conflict resolution - Daily resets override 5-hour schedules

🌅 Daily Reset Feature
- Fresh sessions every day at your chosen time (e.g., 8:00 AM)
- Automatic schedule adjustment - 5-hour cycles restart from daily reset
- Work-day optimization - Clean slate every morning

🔍 Comprehensive Monitoring
- Real-time logging - See exactly what Claude Code is doing
- Daily schedule display - Know today's planned check times
- Countdown timers - Track…
Read the full README on GitHub

Details

Language
Python
Last updated
25 November 2025

FAQ

What is Claude Session Keeper?

claude-session-keeper sends a simple "Hi" message to Claude Code every 5 hours, allowing your rolling clock to reset as early as possible. This can allow you to code a lot more, as if a session starts at 6 am instead of 9 am for example, you can have the same usage in the first session equivalent to 5 hours in just 2. It is a usage for Claude Code, from nomadictuba2005/claude-session-keeper on GitHub.

How do I install Claude Session Keeper?

Run npm install -g @anthropic-ai/claude-code, then follow the setup in the README.

Is Claude Session Keeper popular?

nomadictuba2005/claude-session-keeper has 33 GitHub stars and 6 forks. It was last updated on 25 November 2025.

More usage & cost trackers

Browse the most popular Claude Code mods, all usage & cost trackers, or the skills and MCP server directories.