7
This project is part of AgentOne's open-source initiative. We want to make it easier for people building AI agents to add feature like scheduling local tasks (e.g., "clean my system every week", "summarize my emails daily", etc.). Currently, the scheduling APIs in Rust are a mess: You have write manual code for each OS you want to support, and handling edge cases and bugs can get annoying when you just want to build an AI agent. Plus, most cron libraries rely on your app constantly being open in the background, which consumes memory and CPU.
This crate provides cross-platform OS-level cron scheduling for Rust applications. It integrates directly with the operating system's native scheduling mechanisms (launchd on macOS, systemd user timers on Linux, and Task Scheduler on Windows) without requiring a daemon, timers, or a resident process. Registration is immediate, and the OS handles job execution, allowing your program to exit while the scheduled task continues to run. You could think of it like `Bun.cron` for Rust.
If you have feature ideas, want to show off the agent you're building, or find a bug, let us know in the comments below (or on GitHub)!
Built with