Automic VaultAutomic Vault

brew

batt mit Homebrew installieren

Prüfe Installationswege, Executables, Metadaten und Sicherheitshinweise für batt in AI-Agent-Workflows.

Installation

Weitere Installationsbefehle

macOS

Homebrewverifiziert · 100%
brew install batt

local Homebrew formula metadata

Überblick

Paketzusammenfassung

Control and limit battery charging on Apple Silicon MacBooks

Befehle und Aliase

  • batt

Verlauf

Projektgeschichte und Nutzung

batt is a macOS utility for controlling and limiting battery charging on Apple Silicon MacBooks, available as a command-line daemon/client and a native menu-bar app.

Projektgeschichte

The README states the maintainer created batt because existing tools were unsatisfactory. It focuses on predictable charge limiting, with the common use case of stopping charge around a configured maximum such as 80 percent.

batt's design is intentionally daemon-based: the README compares it to docker, with a client sending requirements to a background daemon that performs the charging control.

By 2026, the README notes a changed platform landscape: macOS 26.4 and later supports native charge limiting from 80 to 100 percent, while batt remains useful on older macOS versions or when users want limits below 80 percent.

Adoptionsgeschichte

batt is Homebrew-packaged and its README documents `brew install batt` followed by running it as a brew service. It also offers an installation script and release binaries.

The repository page showed about 1.6k stars at enrichment time, reflecting a niche but visible Apple Silicon power-user audience.

Wie es verwendet wird

Typical CLI usage is to install the daemon, check status with `sudo batt status`, set an upper charge limit with commands such as `sudo batt limit 80`, disable the limit with `batt disable` or `batt limit 100`, and optionally control adapter power.

Advanced usage includes lower and upper charge bands, MagSafe LED control, idle/sleep handling, automatic calibration, scheduled calibration, and logs under `/tmp/batt.log`.

Warum Paket-Nerds sich dafür interessieren

batt is interesting because it is a package-manager-distributed hardware-control tool that depends on private-feeling macOS power behavior and firmware compatibility rather than a stable cross-platform Unix API.

It also captures a packaging moment: before native macOS charge limits became broader, power users installed a daemon through Homebrew to get ThinkPad-style charge thresholds on Apple Silicon MacBooks.

Zeitleiste

  • 2025: v0.4.1 release highlights an experimental GUI and macOS Tahoe compatibility work.
  • 2026: README update says macOS 26.4 adds native charge limiting, reducing batt's necessity for some users.
  • 2026: v0.7.x releases include auto-calibration and scheduling work.

Related projects

  • The README links third-party GUI projects BattGUI and batt-helper.
  • macOS Optimized Battery Charging and macOS 26.4 native charge limiting are the platform features batt complements or replaces depending on OS version.

Sicherheitslage

Risikostufe: orange

formula declares a Homebrew service.

Risikoklassifikator

orange Risiko · mittel Konfidenz · infrastructure

Warum

  • formula declares a Homebrew service

Signale

  • metadata:service

Installationsverhalten

  • In den Formelmetadaten ist kein Homebrew-Post-install-Hook erfasst.
  • Formelmetadaten deklarieren einen Service- oder Daemon-Block.
  • Homebrew-Bottle-Metadaten sind für 3 Plattformziele verfügbar.
  • Build-Metadaten listen 1 Build-Abhängigkeiten.

Empfohlene Prüfung

Prüfe vor unbeaufsichtigter Agent-Nutzung, ob das Tool Klartext-Credentials liest, Remote-Zustand schreibt, Artefakte veröffentlicht oder Plugins ausführt.

local files

Configuration and credential file locations

These source-backed paths show where this package keeps local settings or durable credentials. Automic Vault can use them as review targets for secret scanning, migration, and command approval.

Configuration files

Config paths the tool may read or write during local use.

macOS
/opt/homebrew/etc/batt.json/etc/batt*

Executables

Installierte Executables

BefehlArtSichtbarkeitHinweis
battcliglobales Executable

Aktualität

Version und Aktualität

Diese Signale trennen das Alter der Seitengenerierung, Aktivität des Paketmanagers und Upstream-Release-Vergleich. Versionsrückstand wird nur gemeldet, wenn eine Evidenz-URL und vergleichbare Versionen vorhanden sind.

Seite generiert2026-07-26
Manager-Version0.8.0
Manager aktualisiert2026-07-21
lokale DatenOK
Upstreamnot checked
neueste erkannte Versionnicht erkannt

https://github.com/charlie0129/batt

Installationsmetadaten

Paketmetadaten

Paketschlüsselbrew:batt
Version0.8.0
PaketmanagerHomebrew
Paketmanager-Seitehttps://formulae.brew.sh/formula/batt
Homepagehttps://github.com/charlie0129/batt
Repositoryhttps://github.com/charlie0129/batt
Upstream-Dokumentationhttps://github.com/charlie0129/batt#readme
LizenzGPL-2.0-only
Quellarchivhttps://github.com/charlie0129/batt.git
Zuletzt aktualisiert2026-07-21T07:10:34Z
Pulseupdated
Build-Abhängigkeitengo
Bottleverfügbar (auf arm64_sequoia, arm64_sonoma, arm64_tahoe)
Homebrew post-installnicht definiert
Dienstdeclared
EinschränkungenThe batt service must be running as root before most of batt's commands will work.

Registry-Fakten

Details aus der Quelldatenbank

Source DatabaseHomebrew formula API
Taphomebrew/core
Full Namebatt
Version Scheme0
Revision0
Head VersionHEAD
Requirements
  • arch
  • macos
Bottle Stable Root URLhttps://ghcr.io/v2/homebrew/core
Deprecatedno
Disabledno
Keg Onlyno
URL Keys
  • head
  • stable

Quellspur

Aus Repository-Daten generiert

Diese Seite wird von av-web aus dem privaten Paket-SQLite-Artefakt bereitgestellt, das scripts/generate-pkg-sqlite.py erstellt.

Verwendete Quellen

  • Geiger risk classifier
  • Nucleus package database
  • av.db category and tag curation
  • cross-ecosystem install command graph
  • curated configuration and credential file locations
  • curated package history
  • package relationship graph
  • package version freshness
  • package-page enrichment