Direct answer
You can check. macOS itself records uptime, restart history and sleep/wake history; set those against the timestamps in the agent's log and you can reconstruct what happened last night. This assumes the log has timestamps and has not been overwritten.
Basis
uptimegives the time since the system last started. If the figure is shorter than you expect, there was a restart along the way.last rebootlists recent restart times.pmset -g logcontains the sleep and wake history, and you can usegrepto filter for Sleep and Wake entries. The output format varies slightly between system versions.- The machine not restarting and not sleeping does not mean the agent did not stop. The process may have crashed and been restarted by launchd, leaving a gap in between. Only the agent's own log shows that: look for gaps in time and for repeated start-up messages.
- Task progress in the customer console keeps a record of the restart, reset and similar actions you submitted, which you can use to rule out having clicked restart yourself.
Boundaries: when the answer is different
These commands answer whether the machine and the process were there. They cannot answer whether the agent did the right thing. An agent that ran all night but sat in front of the same dialog looks perfectly normal in all of the records above. System logs have a retention period, and after too long they can no longer be found. If you discover that the machine restarted at a time when you did nothing, send the time to support to check the cause. We do not promise uninterrupted operation, but we can help you confirm whether it was maintenance, a fault or the system's own behaviour. This page is about checking after the fact; for alerts ahead of time, see the page on unattended monitoring.
How to do it
- Connect to the machine and run
uptimein Terminal; note the time since start. - Run
last rebootand check that every restart time is one you know about. - Run
pmset -g log | grep -e " Sleep " -e " Wake "and see whether there are sleep records during the night. - Open the agent's log and look for long gaps between timestamps and repeated start-up lines.
- Line up the times from all four places. Where they do not match is where to investigate.
Related questions
- Mac mini for 24/7 AI agents? Only worth it when the agent needs a desktop or macOS apps
- How do I know my unattended agent is still running properly?
- Can I shut down a rented Mac mini or put it to sleep?
- How to keep long tasks running on a remote Mac mini after you disconnect
- How can I check that I am the only one using my rented Mac mini?
Use case
This question belongs to the use case: Mac mini for 24/7 AI agents? Only worth it when the agent needs a desktop or macOS apps
Other questions in the same use case:
- My AI agent is stuck on a macOS system dialog. What should I do?
- My AI agent keeps getting logged out of websites after a few days. How do I fix it?
- Remote Mac mini disk almost full after weeks of running an AI agent: what now?
- Lock screen or login window on my remote Mac mini: is my AI agent still running?
Pricing and availability: see the plans page · Help center (中文) · Refund policy (中文) · Telegram Contact support