charlie0129/batt
Control and limit battery charging on Apple Silicon MacBooks. observed · 2026-08-28
Health v2 · maintenance only
94/100
- Activity 97
- Release rhythm 94
- Longevity 89
How is this computed?
round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10) — computed 2026-09-02. Adoption (stars, forks) is never an input.
- gap_med: 12
- age_days: 1249
- days_rel: 43
- days_push: 19
- n_releases_24m: 22
Adoption not part of the score
1666 stars · 73 forks observed · 2026-08-28
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-08-28 · bd8b09f1b70c
Member repositories
| Repository | Role | Health v2 |
|---|---|---|
| charlie0129/batt | main | 94 |
For agents
markdown · JSON · MCP: product_card(name="charlie0129/batt")
Data as of 2026-08-30T08:39:29.467469+00:00 · Report a problem