A native macOS menu bar application that implements intelligent battery charging algorithms to maximize battery lifespan while ensuring device availability.
- Download: Get
BatterySmartCharge-1.0.4.pkgfrom the Releases page. - Install: Double-click the
.pkgfile and follow the installer prompts. (If MacOS blocks the installation, press "Done" then go to System Settings > Privacy & Security and click "Open Anyway".) - Authorize: Enter your password when prompted (required for power monitoring helper).
- Run: The app will be installed to
/Applications/. Launch it from there.
The installer automatically sets up the privileged helper needed for real-time power monitoring.
- Clone:
git clone https://github.com/calebyhan/smart-charge.git - Open: Open
BatterySmartCharge.xcodeprojin Xcode - Build: Press Cmd+R to build and run
To create a distributable installer:
# Build Release version
xcodebuild -project BatterySmartCharge.xcodeproj -scheme BatterySmartCharge -configuration Release clean build
# Create installer
./create_installer.shThe installer will be created at dist/BatterySmartCharge-1.0.4.pkg
Note: The installer automatically bundles the battery CLI tool. If building the installer yourself, ensure battery is installed on your system (brew install battery) so it can be bundled.
The installer includes:
- PowerMetrics Helper: Monitors CPU/GPU power consumption (bundled)
- battery CLI: Controls charging behavior via SMC (actuallymentor/battery) (bundled)
Both are automatically installed by the .pkg installer with proper permissions.
Comprehensive documentation is available in the docs/ directory:
- User Guide: Learn about charging modes, time rules, and the dashboard.
- Architecture: High-level system design, data flows, and data models.
- Development: Setup, building, testing, and contributing.
MIT License. See LICENSE for details.