๐๏ธ Interactive TUI
Run gpuswitch with no arguments for an arrow-key picker that shows your current mode and applies a new one on enter.
Run gpuswitch with no arguments to open the interactive terminal UI, built
with Ink and React:
gpuswitchGPU Mode
current: auto
โฏ integrated integrated GPU only โ best battery life
discrete discrete GPU only โ full performance
auto let macOS decide automatically
โโ navigate ยท enter apply ยท q quitThe picker starts on whatever mode is currently active, so you can see at a glance where you are before changing anything.
โจ๏ธ Keys
| Key | Action |
|---|---|
โ / โ | Move the selection (wraps around) |
enter | Apply the highlighted mode |
q | Quit without changing anything |
esc | Quit without changing anything |
When you press enter, the TUI exits and the selected mode is applied with
sudo pmset โ you'll be prompted for your password in the terminal. Pressing
q or esc leaves your current mode untouched.
For non-interactive use โ shell scripts, aliases, automations โ reach for the headless subcommands instead.