go-vgo/robotgo
RobotGo, Go Native cross-platform RPA, GUI automation, Auto test and Computer use @vcaesar
What it solves
Robotgo is a Go library for desktop automation: it lets programs control the mouse and keyboard, read the screen, capture images, manage windows, and listen to global input events. It is used for automated testing and for AI systems that need to operate a computer like a human.
How it works
Robotgo exposes a Go API for each automation feature. It runs on macOS, Windows, and Linux, and supports both ARM64 and x86-AMD64 architectures. There are two build backends: the default uses Cgo (requires a C compiler and platform libraries), and a pure-Go backend (built with CGO_ENABLED=0 and a build tag like win, mac, x11, wayland, or libei) that avoids C toolchains. The library also integrates with separate packages for bitmap finding, global event hooks, and OpenCV-based image recognition.
Who it’s for
Developers who need to automate desktop interactions in Go — for example, writing UI tests, building macros, or creating AI agents that can control a computer. It targets users on macOS, Windows, or Linux who are comfortable with Go and can handle platform-specific setup (permissions, dependencies, or build tags).
Highlights
- Cross-platform: macOS, Windows, Linux; supports ARM64 and x86-AMD64
- Mouse control: move, click, scroll, drag, smooth movement
- Keyboard control: type text, tap keys, toggle modifiers, clipboard read/write
- Screen capture: capture regions, get pixel colors, save images (PNG/JPEG)
- Bitmap and image finding (via the
bitmappackage) and OpenCV integration (viagcv) - Global event hooking (via
gohook) to listen for keyboard and mouse events - Window management: find, activate, kill processes, get titles and bounds
- Two build modes: Cgo (default) and pure Go (CGO_ENABLED=0) with per-OS build tags
- Supports Wayland and libei backends on Linux for modern compositors
Related
- Project
- Project
- Project
- Project
- Project