LaunchAtLogin
Add “Launch at Login” functionality to your macOS app in seconds
If your app targets macOS 13 or later, check out this modern version instead. It's usually quite a convoluted and error-prone process to add this (on macOS 12 and older). This package works with both sandboxed and non-sandboxed apps and it's App Store compatible and used in apps like Plash, Dato, Lungo, and Battery Indicator. This package uses the new SMAppService on macOS 13+ and SMLoginItemSetEnabled on older macOS versions.