Battery
brew install --cask battery
v1.4.0
Limit Apple Silicon Mac battery charging to 80% to extend battery lifespan when constantly plugged in.
Why you might care
Free and open-source tool specifically for Apple Silicon Macs that prevents overcharging damage by keeping your battery at an optimal health level. If you leave your laptop plugged in most of the time, this can significantly prolong battery longevity based on lithium battery science. Includes both a GUI app and CLI for flexibility.
461
30-day installs · #507
1.6k
90-day · #455
11.8k
365-day · #275
7.0k
★ GitHub stars · updated 3mo ago
Links
- https://github.com/actuallymentor/battery/
- GitHub: actuallymentor/battery
- Brew formula source: Casks/b/battery.rb
Blurb generated by claude-haiku-4-5 on today.
Raw metadata
{
"alternatives": [
"Al Dente",
"Aldente"
],
"artifacts": [
{
"uninstall": [
{
"delete": "/usr/local/bin/smc"
}
]
},
{
"app": [
"battery.app"
],
"target": "/Applications/battery.app"
},
{
"zap": [
{
"trash": [
"~/.battery",
"~/Library/Application Support/battery",
"~/Library/Application Support/com.apple.sharedfilelist/com.apple.LSSharedFileList.ApplicationRecentDocuments/co.palokaj.battery.sfl*",
"~/Library/Caches/co.palokaj.battery",
"~/Library/Caches/co.palokaj.battery.ShipIt",
"~/Library/HTTPStorages/co.palokaj.battery",
"~/Library/LaunchAgents/battery.plist",
"~/Library/Preferences/co.palokaj.battery.plist",
"~/Library/Preferences/org.mentor.Battery.plist",
"~/Library/Saved Application State/co.palokaj.battery.savedState"
]
}
]
}
],
"auto_updates": 1,
"categories": [
"system-utility",
"menubar"
],
"deprecated": 0,
"deprecation_reason": null,
"desc": "App for managing battery charging. (Also installs a CLI on first use.)",
"disable_reason": null,
"disabled": 0,
"display_name": "Battery",
"enrichment_fetched_at": "2026-06-20T22:40:54+00:00",
"first_seen": "2026-06-20T00:47:34+00:00",
"full_token": "battery",
"github_default_branch": "main",
"github_last_commit_at": "2026-02-25T11:20:24Z",
"github_readme_excerpt": "# Battery charge limiter for Apple Silicon Macbook devices\n\n\u003cimg width=\"300px\" align=\"right\" src=\"./screenshots/tray.png\"/\u003eThis tool makes it possible to keep a chronically plugged in Apple Silicon Macbook at `80%` battery, since that will prolong the longevity of the battery. It is free and open-source and will remain that way.\n\n\u003e Want to know if this tool does anything or is just a placebo? Read [this excellent article](https://batteryuniversity.com/article/bu-808-how-to-prolong-lithium-based-batteries). TL;DR: keep your battery cool, keep it at 80% when plugged in, and discharge it as shallowly as feasible.\n\n### Requirements\n\nThis is an app for Apple Silicon Macs. It will not work on Intel macs. Do you have an older Mac? Consider the free version of the [Al Dente](https://apphousekitchen.com/) software package. It is a good alternative and has a premium version with many more features.\n\n### Installation\n\n- Option 1: install the app through brew with `brew install battery`\n- Option 2: [download the app dmg version here](https://github.com/actuallymentor/battery/releases/)\n- Option 3: install ONLY the command line interface (see section below)\n\nWhen installing via brew or dmg, opening the macOS app is required to complete the installation.\n\nThe first time you open the app, it will ask for your administator password so it can install the needed components. Please note that the app:\n\n- Discharges your battery until it reaches 80%, **even when plugged in**\n- Disables charging when your battery is above 80% charged\n- Enables charging when your battery is under 80% charged\n- Keeps the limit engaged even after rebooting\n- Keeps the limit engaged even after closing the tray app\n- Also automatically installs the `battery` command line tool. If you want a custom charging percentage, the CLI is the only way to do that.\n\nDo you have questions, comments, or feature requests? [Open an issue here](https://github.com/actuallymentor/battery/issues) or [Tweet at me](https://twitter",
"github_repo": "actuallymentor/battery",
"github_stars": 7043,
"github_topics": [],
"homepage": "https://github.com/actuallymentor/battery/",
"homepage_og_description": null,
"homepage_og_image": null,
"homepage_title": null,
"installs_30d": 461,
"installs_365d": 11793,
"installs_90d": 1605,
"last_seen": "2026-06-20T00:47:34+00:00",
"llm_generated_at": "2026-06-20T23:04:29+00:00",
"llm_model": "claude-haiku-4-5",
"names": [
"Battery"
],
"one_liner": "Limit Apple Silicon Mac battery charging to 80% to extend battery lifespan when constantly plugged in.",
"rank_30d": 507,
"rank_365d": 275,
"rank_90d": 455,
"raw_hash": "50e920b413b8c8c8",
"ruby_source_path": "Casks/b/battery.rb",
"tap": "homebrew/cask",
"token": "battery",
"version": "1.4.0",
"why_use_this": "Free and open-source tool specifically for Apple Silicon Macs that prevents overcharging damage by keeping your battery at an optimal health level. If you leave your laptop plugged in most of the time, this can significantly prolong battery longevity based on lithium battery science. Includes both a GUI app and CLI for flexibility."
}