AI Disruption

AI Disruption

Claude Code Quit at Midnight: Credentials Expire

Claude Code login credentials can expire silently, killing overnight automated tasks. Learn to check auth status, monitor expiry dates, and prevent 3 a.m. failures.

Meng Li's avatar
Meng Li
Nov 15, 2026
∙ Paid

A few days ago, an automated task that had been running all night suddenly stopped.

There was no familiar 429 in the terminal, and no network timeout either, just one short line:

Login expired · Please run /login

My first reaction was that the model service had flaked out again. But the logs showed dozens of rounds had run fine before it broke in the small hours. After more digging, I found Claude Code hadn’t crashed. The saved claude.ai login on that machine had simply expired.

This one is sneaky. When you’re sitting at your computer during the day, a reminder pops up as the login nears expiry, and you just type /login to renew it. But once Claude Code is running in a background session, Remote Control, a scheduled task or claude -p, nobody is there to confirm, and at some point it quietly loses the ability to work.

User's avatar

Continue reading this post for free, courtesy of Meng Li.

Or purchase a paid subscription.
© 2026 Meng Li · Privacy ∙ Terms ∙ Collection notice
Start your SubstackGet the app
Substack is the home for writing, podcasting, and media founders.