explaingit

cscb/vibe-mouse

Analysis updated 2026-05-18

133PythonAudience · vibe coderComplexity · 3/5LicenseSetup · moderate

TLDR

A Python tool that maps mouse, keyboard, gamepad, Bluetooth, and other device inputs to shortcuts for controlling AI coding assistants like Cursor and Copilot.

Mindmap

A visual breakdown will appear here once this repo is fully enriched.

Code map

Detail Auto

An interactive map of this repo's files and how they connect — its source is parsed live in your browser. Click Visualize to build it.

filefunction / class

What do people build with it?

USE CASE 1

Bind a mouse side button to accept an AI code suggestion instead of reaching for a keyboard shortcut.

USE CASE 2

Use an Xbox or PlayStation controller to accept, reject, or toggle chat in tools like Cursor or Windsurf.

USE CASE 3

Trigger AI coding actions from a Stream Deck, Bluetooth remote, or network-connected smart button.

USE CASE 4

Configure device-to-shortcut mappings visually in a browser without running a backend server.

What is it built with?

PythonpynputpygamebleakMQTT

How does it compare?

cscb/vibe-mousesuz-tsinghua/smpviitor-ai/viitor-voice-nar
Stars133133133
LanguagePythonPythonPython
Setup difficultymoderatehardmoderate
Complexity3/55/54/5
Audiencevibe coderresearcherdeveloper

Figures from each repo's GitHub metadata at analysis time.

How do you get it running?

Difficulty · moderate Time to first run · 30min

Requires pip install of core dependencies plus optional per-device packages (pygame, bleak, pyserial, etc.) depending on which input devices you want to use.

Open-source, with a stated requirement that derivative works also remain open-source under the project's license terms.

In plain English

vibe-mouse is a Python project that turns a regular mouse, keyboard, gamepad, or several other kinds of devices into shortcuts for controlling AI coding assistants like Cursor, Windsurf, GitHub Copilot, and others. Instead of reaching for the keyboard every time you want to accept a code suggestion, open a chat panel, or trigger inline code generation, you can map those actions to buttons, such as a mouse's side buttons or a gamepad's face buttons. The program runs quietly in your system tray and automatically figures out whether you are on a Mac or on Windows or Linux, so it uses the right modifier key without you needing to edit settings by hand. It supports many kinds of input beyond a standard mouse: keyboards, gamepads (Xbox, PlayStation, Switch), Bluetooth devices, infrared remotes, generic HID devices like a Stream Deck or barcode scanner, network or IoT buttons over MQTT or WebSocket, and even voice commands through wake words. Each device type is handled by its own adapter, and all of them funnel into one unified system that matches a button press or command to the coding tool you're currently using and sends the right keyboard shortcut. You can configure everything either through a visual, browser-based tool that needs no separate backend, or by editing a JSON configuration file directly. The project ships with a one-click build script to package it into a Windows .exe or a Mac .app. Optional hardware feedback, like a sound, on-screen overlay, tray notification, LED, or vibration, can confirm when an action has fired. Beyond the mouse software itself, the repository is described as one part of a larger open-source system that also includes a robot actuator and a mobile monitoring setup, though those are separate, independently usable modules within the same repo. Because those two parts are not fully documented within the portion of the README available here, this explanation focuses on the vibe-mouse interaction tool. Setup requires installing Python dependencies, plus optional extra packages depending on which devices you want to use.

Copy-paste prompts

Prompt 1
Help me install vibe-mouse and map my mouse's side buttons to Cursor's inline edit and accept diff shortcuts.
Prompt 2
Walk me through using the config-tool.html visual configurator instead of editing config.json by hand.
Prompt 3
Show me how to add gamepad support so my Xbox controller can accept or reject AI code suggestions.
Prompt 4
Explain how the adapter architecture routes different device events to the same executor.
Prompt 5
Help me package vibe-mouse into a standalone .exe using build.py.

Frequently asked questions

What is vibe-mouse?

A Python tool that maps mouse, keyboard, gamepad, Bluetooth, and other device inputs to shortcuts for controlling AI coding assistants like Cursor and Copilot.

What language is vibe-mouse written in?

Mainly Python. The stack also includes Python, pynput, pygame.

What license does vibe-mouse use?

Open-source, with a stated requirement that derivative works also remain open-source under the project's license terms.

How hard is vibe-mouse to set up?

Setup difficulty is rated moderate, with roughly 30min to a first successful run.

Who is vibe-mouse for?

Mainly vibe coder.

Open on GitHub → Explain another repo

This repo across BitVibe Labs

Verify against the repo before relying on details.