All posts
·Rebind

RebindGPT: Luau Scripts from Plain English

Describe the behavior you want. RebindGPT drafts the script, and you review it before it runs.

rebind scriptrebind luauai scriptingrebindgpt

Writing Rebind scripts does not require knowing Luau. Describe the behavior you want. RebindGPT drafts the script, and you review it before it runs.

What you can ask for

RebindGPT covers the full scope of the SDK, so you can describe things at any level:

Simple remaps:

"Remap CapsLock to Escape"

Sequences:

"When I press F9, select all, copy, move to end of document, and paste"

Per-key transforms:

"Make my number row type symbols when I hold a function key"

Per-application:

"Make my mouse side buttons navigate browser tabs in Chrome and Firefox, and undo/redo in Photoshop"

Advanced:

"Create a complete IPC system using shared memory so a Python script can send commands to Rebind and trigger keyboard output"

How to use it

RebindGPT lives at rebind.gg, behind the AI link in the navigation. Describe the script you want and it will:

  1. Ask clarifying questions where it needs them (which key triggers it, which app it targets)
  2. Generate a complete Luau script with the modeline, UI schema, and hooks in place
  3. Explain what the script does and how to configure it

Copy the output, open the Scripts tab in the Rebind app, create a new script, paste, run.

What it knows

RebindGPT knows the SDK reference, the example scripts, the scripting guide, and the key reference. In practice that means:

  • Every hook (OnDown, OnUp, OnMove, OnScroll, OnTick, OnFocus, OnBlur, and more)
  • The full HID namespace, including combo syntax (HID.Press("LCtrl+LShift+T"))
  • The async model: Run(), Sleep(), Async(), After(), Bind()
  • UI.Schema and every widget type for generating settings panels
  • Net, File, Config, Clipboard, Audio, Screen, Window, Regex, Pipe, Macro, Timer, System
  • Modeline options (process=, window=, tick_rate=, z_index=, mouse_block=, and the rest)
  • All key names and aliases from the key reference

If a request needs a permission, Net calls or System.Exec for example, it adds the -- rebind: permission= line; you confirm it.

When to write it yourself

RebindGPT is fast for a first version. If you are building something genuinely custom, a precise timing pattern or a macro that needs iterative tuning, you will end up editing the output. The output is commented Luau. The getting started guide and the Documentation explain what the generated code is doing when you want to take it further.

All posts