charlie0129/batt
Control and limit battery charging on Apple Silicon MacBooks. observed · 2026-10-10
Health v2 · maintenance only
92/100
- Activity 97
- Release rhythm 87
- Longevity 92
How is this computed?
round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10) — computed 2026-10-21. Adoption (stars, forks) is never an input.
- gap_med: 19.0
- age_days: 1297
- days_rel: 91
- days_push: 20
- n_releases_24m: 19
Adoption not part of the score
1741 stars · 81 forks observed · 2026-10-10
What it is AI-extracted, prompt v1, taxonomy v1, 2026-08-30, confidence not recorded
batt is a Go-based tool that controls and limits battery charging on Apple Silicon MacBooks by setting maximum charge levels via SMC keys. It runs as a daemon to keep the battery at a configurable limit (e.g., 80%) to prolong battery lifespan, with advanced features like MagSafe LED control and power adapter cutoff.
Use cases
- limit macbook battery charging to 80 percent
- prevent battery swelling on apple silicon mac
- extend battery lifespan by keeping charge low
- control magsafe led charging indicator
- cut wall power and run macbook on battery while plugged in
- automatically calibrate macbook battery
- set custom charge limit below 80 percent on macos
When to choose
- you have an Apple Silicon MacBook and want to cap charging below the native macOS limit
- you need a charge limit under 80% or are on a macOS version without native charge limiting
- you want power-user features like MagSafe LED control or adapter power cutoff
When to avoid
- you are on macOS 26.4+ and the built-in 80-100% charge limit range meets your needs
- you have an Intel Mac, since it targets Apple Silicon firmware
- you need cross-platform battery management beyond macOS
Facets
cli-tool · maturity active
cli configuration-management developer-tools hardware apple-ecosystem developer-tools cli battery-health charge-limiting apple-silicon macbook smc daemon command-line macos
1 source
- readme: https://github.com/charlie0129/batt · fetched 2026-10-10 · bd8b09f1b70c
Member repositories
| Repository | Role | Health v2 |
|---|---|---|
| charlie0129/batt | main | 92 |
For agents
markdown · JSON · MCP: product_card(name="charlie0129/batt")
Data as of 2026-10-19T08:05:51.212177+00:00 · Report a problem