gpuswitch-cli

๐ŸŽ›๏ธ 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:

gpuswitch
GPU 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 quit

The picker starts on whatever mode is currently active, so you can see at a glance where you are before changing anything.

โŒจ๏ธ Keys

KeyAction
โ†‘ / โ†“Move the selection (wraps around)
enterApply the highlighted mode
qQuit without changing anything
escQuit 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.

On this page