I'm running llamacpp locally on the mac and I just hit a keyboard shortcut to get the menu, its quite handy.
Requires a python script to call the api, or you could make one using bash. If anyone wants the shortcut or the script let me know.
https://streamable.com/aou6rb?src=player-page-share