Run the server
The server is the Remote Control package, a Luau script you can read in the editor. It needs Rebind 3.15.0 or later and does not need a Rebind Link.- Install it from the marketplace listing, or run
rebind install @rebind/remote-control --allow. - Open the installed package’s
main.luauin Rebind and select the Options tab. - Set a strong, unique Auth token. Your program sends it before any other command.
- Start the script. It listens on
ws://127.0.0.1:19561. - Connect from code, or connect an AI agent.
If you ran
remote_access.lua or remote.luau, stop it first: it uses the
same port. Remote Control answers the same command names; set its token again
in Auth token.Options

The Options tab of the installed main.luau, every option at its default.
Allow shell commands, Allow file access, Allow registry changes,
and Allow custom Luau each give a connected program full control of this
computer, including every other option here: custom Luau can change any
setting, file access can rewrite the script, and shell commands can do
anything you can. Turn one on only for a program you trust completely.
With those four off, a connected program can still send input and, where the
platform supports it, capture the screen, read and change the clipboard, and
control windows. Which commands work on each operating system follows
Platforms.
Connect from code
Anything that can open a WebSocket and send JSON can drive the server; the whole protocol is on one page: Protocol. To give an AI agent a keyboard and mouse instead, see Use with an AI agent. Typed clients wrap the protocol for TypeScript, Python, and Rust. Each sends the token when you give one and turns error replies into exceptions orErr
values that carry the server’s error code. Commands without a typed method go
through call. Each client also streams live mouse and window events, and the
TypeScript and Python clients stream input events too; the package READMEs
show how.
TypeScript
@rebind.gg/client-ts runs on Node 22+, Bun, Deno, and browsers, and
reconnects with backoff.
Python
rebind needs Python 3.9+. RebindRemote blocks; AsyncRebindRemote has
the same methods, with the reads as coroutines. Both reconnect with backoff.
Rust
rebind-client runs on tokio. It does not reconnect: when the connection
drops, connect again.
Stop
Stop the script from the editor toolbar when you are not using it. Stopping it closes the server, its timers, and any audio it is playing. Changing the token does not disconnect programs already connected; restart the script to cut them off. PressLeft Ctrl + Left Alt + K (Left Control + Left Option + K on macOS)
to stop every script and release every held key and button. In hardware mode,
press it on a keyboard you attached in Peripherals. See the
kill switch.