BCLM
macOS command-line utility to limit max battery charge
...The purpose of limiting the battery's maximum charge is to prolong battery health and to prevent damage to the battery. Various sources show that the optimal charge range for the operation of lithium-ion batteries is between 40% and 80%, commonly referred to as the 40-80 rule [1][2][3]. This project is especially helpful to people who leave their Macs on the charger all day, every day.