The companion app

[sudo]

The cross-platform companion app for your sudo macro pad. Approve, reject, and control AI agents with a physical button press.

macOS · Windows · Linux · all free

Get the app

macOS

Ventura 13.0+ · Apple Silicon

Download .dmg

Swift / SwiftUI menu bar app

Windows

Windows 10+ · x64

Download .exe

C# / .NET 8 system tray app

Linux

X11 / Wayland · GTK3

Install script

Python / GTK3 AppIndicator

Install from source

$ git clone https://github.com/ibrue/sudo-app

$ cd sudo-app

$ ./install.sh

Button modes

AI search mode

Automatically find and press buttons in AI apps using a 3-strategy pipeline.

  • · accessibility tree detection
  • · vision OCR fallback
  • · keyboard fallback
  • · custom button labels per app

Shortcuts & macros

Assign keyboard shortcuts, media keys, or macro sequences to each button.

  • · keyboard shortcuts & media keys
  • · macro sequences with delays
  • · per-app profiles with auto-switching
  • · auto-approve rules engine

Default button map

[sudo]

4 · black

yolo (allow all)

ctrl+shift+F16

3 · red

reject / no

ctrl+shift+F14

2 · yellow

make it better

ctrl+shift+F15

1 · green

approve / yes

ctrl+shift+F13

All buttons are fully configurable with quick presets in the app.

Quick presets

presetdescription
ai agentapprove / reject / make it better / yolo for AI permission prompts
plan modeplan-oriented actions for AI coding agents
claude codeoptimized for claude code terminal workflows
system shortcutsscreenshot, copy, paste, undo, save, lock screen
media controlsplay/pause, next, previous, volume
web browsingtab navigation, back, forward, refresh
discord soundboardtrigger soundboard clips

Developer tools

Local API

HTTP API on port 7483 for scripting and automation.

  • · simulate button presses
  • · read/write button config
  • · webhook notifications
  • · action history

MCP server

Gate AI tool use behind physical button approval.

  • · POST /mcp/request-approval
  • · blocks until button press
  • · works with any MCP client

Plugin system

Extend functionality with JSON plugin files.

  • · drop .json files in plugins dir
  • · custom actions & search terms
  • · automation rules

Detection stack

featuremacOSWindowsLinux
system trayMenuBarExtraNotifyIconAppIndicator3
hotkeysCGEvent tapRegisterHotKeypynput
button findingAXUIElementUI AutomationAT-SPI2
OCR fallbackApple VisionWindows.Media.OcrTesseract
executionAXPressInvokePatternAT-SPI / xdotool

Firmware (QMK / VIA / Vial)

The sudo macro pad runs QMK firmware on an RP2040 chip. Three keymap options:

keymapfeaturesreconfigure
defaultCtrl+Shift+F13–F16reflash required
VIAlive remapping via usevia.appno reflash needed
Vialauto-detection, no draft definitionno reflash needed

Supported apps

Native apps

Claude for Desktop

ChatGPT

Editors & terminals

Cursor · VS Code · Windsurf · VSCodium · VS Code Insiders

Terminal · iTerm2 · Warp · Ghostty · Kitty · Alacritty

Web apps

claude.ai · chatgpt.com · grok.com

Safari · Chrome · Firefox · Brave · Edge · Arc · Opera

[sudo] is open source hardware + softwareGitHub →