Skip to main content
Install Rebind, write a short Luau script, and press a key to see it work. Software mode needs no account and no hardware. This page installs Rebind and writes a script. The other ways to use it start on their own pages:

Install or update

Check the system requirements first. Run the same command again any time to update in place. Windows: open PowerShell as Administrator and paste:
macOS: open Terminal and paste:
On macOS, allow Accessibility for Rebind when macOS asks; Rebind restarts once it is granted. See macOS. Rebind then starts each time you sign in to your computer; to change that, see Start Rebind only when you open it.

Sign in when you need to

The app starts signed out. Local scripts need no account, and neither do free marketplace scripts without source protection; see Installing scripts. Sign in for your library, reviews, purchases, and hardware mode. Click Sign in in Settings, choose Open rebind.gg to get a code, sign in on the website, and paste the pairing code it gives you. The App Tour covers the rest of the window.

Your first script

This complete script remaps CapsLock to Escape. Open Scripts, click New File above the file list (or New script when no file is open), and paste it:
The Scripts view with untitled-1.lua open and marked Modified, showing a starter script with rb.ui.schema, rb.on down and up handlers, and a Run button

New File opens an unsaved untitled-1.lua with a starter script. Select all of it and paste the script above in its place.

The editor showing the CapsLock to Escape script in untitled-1.lua, marked Modified, with Save and Run buttons

The pasted script, not saved yet: the tab shows a dot and the toolbar shows Modified.

Click Save, then Run. Press CapsLock, and your computer receives Escape.
The Scripts view with a file tree, the CapsLock to Escape script running in untitled-1.lua, and Save, Stop, and Tools buttons

The Scripts view: files on the left, the editor on the right. This script is running, so the toolbar shows Stop where a stopped script shows Run.

The Logs tab beside Code shows what the script logs while it runs, starting with the lines Rebind writes when it loads the script.
The Logs tab of untitled-1.lua with level filters, a text filter, and two info lines, loaded with hooks and Script started

The Logs tab of the running script: Rebind loaded it and started it.

How it reads:
  • The --[[ rebind: ... ]] block at the top is the modeline, the script’s configuration. One rebind: line per setting reads best; a single-line -- rebind: key=value form works too.
  • min_sdk is required: the oldest Rebind version the script runs on. Rebind refuses a script without one, and one that asks for a newer version than you have. 3.9.0 is the first release with the rb names. A script inside a package takes min_sdk from its rebind.toml.
  • name= is the display name and version= the script’s own version. Rebind runs a script without them, but rebind check asks for both. Every other key is optional; see the modeline reference.
  • rb.bind.remap(from, to) sends to whenever you press from, for as long as the script runs.
To act on the key press yourself, register a down handler with rb.on. It runs on every key press with the key name; returning false blocks the original key:
rb.bind.remap is shorter for a one-to-one remap; a handler leaves room for conditions and logic. The Scripting Guide covers both.

Where scripts live

The Scripts view edits real .lua and .luau files in your scripts folder:
  • Windows: %APPDATA%\Rebind\scripts
  • macOS: ~/Library/Application Support/Rebind/scripts
Subfolders are fine, and edits from another editor are picked up while Rebind runs. See Editor setup to work in VS Code, and splitting across files for require. Uninstalling Rebind leaves this folder in place. A fresh install puts Circle Demo and Mouse Inverter (it needs Rebind Link) there. Every install also gets welcome-tour.luau, a guided tour of the SDK with hands-on steps. On a fresh install it starts each time Rebind starts until you finish it or stop it, and a later release may start it once more. Open it and press Run to see it again at any time. If you delete it, it stays deleted. To write scripts with AI in the app, see Use Assistant.

Kill switch

Press Left Ctrl + Left Alt + K (Left Control + Left Option + K on macOS) at any time to stop every script and release every held key and button. Only the left-hand modifiers trigger it. In hardware mode, press it on a keyboard you attached in Peripherals. If scripts do not stop within 3 seconds, Rebind restarts itself. Keep it in mind whenever a script blocks input.

Uninstall

On Windows, run Uninstall Rebind from the Start menu. On macOS, run sudo ~/.rebind/uninstall.sh. Your scripts folder stays, and on macOS so does QEMU if the installer added it through Homebrew.

Start Rebind only when you open it

Rebind starts when you sign in to your computer. To have it start when you open the app instead, choose on demand when you install or update. Windows: set REBIND_START before the install command. In the installer’s own window, pick Custom and the same choice is the Start Rebind manually box under Desktop app.
macOS: add --on-demand.
Then nothing from Rebind runs at sign-in. Open the app to start it, and choose Quit in its tray or menu bar menu to stop it; in either mode, quitting the app stops your scripts. Updates keep your choice. To switch back, run the same command with start-at-login in place of on-demand on Windows, or --start-at-login in place of --on-demand on macOS. On Windows, starting on demand needs the desktop app. An install without it keeps starting at sign-in.