# charlie0129/batt

Control and limit battery charging on Apple Silicon MacBooks.

Repository: https://github.com/charlie0129/batt
Canonical: https://ross.abutalabs.com/products/batt
Language: Go
License: GPL-2.0
License Family: copyleft
Topics: apple, battery, longevity, mac, macbook, macos, smc, bclm
Last push: 2026-08-14T09:34:53+00:00

## Health v2 (maintenance only)
Score: 94/100 (v2, computed 2026-09-02T17:46:02.011165+00:00)
- activity 97, release rhythm 94, longevity 89
- inputs: {"age_days": 1249, "days_push": 19, "days_rel": 43, "gap_med": 12, "n_releases_24m": 22}
- flags: none
- formula: round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10)

## Adoption (not part of the score)
Stars 1666, forks 73 (observed 2026-08-28T04:05:19.115922+00:00)

## What it is
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
- artifact type: cli-tool
- maturity: active
- function: cli, configuration-management, developer-tools
- domain: hardware, apple-ecosystem, developer-tools
- platform: cli
- tags: battery-health, charge-limiting, apple-silicon, macbook, smc, daemon, command-line, macos

## Member repositories
- charlie0129/batt (main) score 94

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:05:19.115922+00:00.
- Health v2: computed from the inputs above; adoption is never an input.
- Inferred fields (summary, facets, guidance): AI-extracted, prompt v1, taxonomy v1, on 2026-08-30T03:42:58.080643+00:00, confidence not recorded.
  - readme: https://github.com/charlie0129/batt (fetched 2026-08-28T04:05:19.115922+00:00, sha bd8b09f1b70c)
- Data as of 2026-08-30T08:39:29.467469+00:00.
