Skip to main content
Version: 0.5.x

VibeKeys Max Remote Control Mode

In remote control mode, VibeKeys Max connects to your computer through an MQTT broker and lets you drive Claude Code or OpenAI Codex with voice input and physical controls — from wherever you happen to be. No port on your PC needs to be exposed: both ends are just MQTT clients of the same broker.

What You'll Need​

Prerequisites
  • VibeKeys Max with firmware v0.4.2 or newer. Remote mode doesn't work with 0.3.x firmware; if your keypad is still on 0.3.x, switch to the 0.3.x docs with the version dropdown at the top of this page.
  • A computer running macOS, Linux, or Windows 10 (1809+) / Windows 11
  • vibeup installed. It installs vibetty (0.4.2 or newer is needed; run vibeup update vibetty if yours is older) and configures both sides.
  • Claude Code 2.1.0 or newer, or OpenAI Codex
  • An MQTT broker: vibetty's built-in broker (zero setup), reached on your WiFi or over Tailscale, or a hosted MQTT service. See Choose a Connection.

How it fits together​

vibetty is the bridge between VibeKeys Max and your coding agent. It runs the agent in a terminal on your computer and shares the session over MQTT.

VibeKeys and vibetty never talk to each other directly. Both connect to the same MQTT broker — a message relay — and everything (screen updates, keystrokes) flows through it:

VibeKeys (keypad)  ──>  MQTT broker  <──  vibetty (your computer)

Because both sides only make outward connections to the broker, there is no port forwarding or firewall configuration on your computer.

Step 1: Set up vibetty and the keypad with the wizard​

The wizard installs vibetty and writes the same broker settings to vibetty and the keypad, so the two can't drift apart.

  1. Turn on VibeKeys Max and select Keyboard from the boot menu. The keypad can only be configured in Keyboard mode.

  2. Run:

    vibeup wizard
  3. Go through the questions. For remote mode, these matter:

    • WiFi: required. The keypad reaches the broker over WiFi and only connects to 2.4GHz networks. Add every network you use (office, café, home).
    • Voice input: choose Whisper-compatible API if you want the MIC key in remote mode. If you skip it here, the wizard offers the same form again on its last screen. See Voice Input.
    • vibekeys CLI and agent plugins: only for keyboard mode. Skip them if you don't need them.
    • vibetty: answer Yes — install vibetty if it isn't installed yet.
  4. Choose where you'll use remote mode. The wizard sets up the broker to match:

    The remote mode step of vibeup wizard, asking whether you will use remote mode outside the LAN

    Your answerBrokerWhere the keypad works
    No — LAN onlyvibetty's built-in broker on your computerOn the same WiFi as your computer
    Yes — outside LAN, with Tailscalevibetty's built-in broker, reached over your tailnetAnywhere, as long as your computer is on Tailscale. Needs keypad firmware v0.4.3 or newer.
    Yes — outside LAN, with EMQX Cloud or your own brokerThe cloud broker URL you enterAnywhere with WiFi

Not sure which one to pick, or want to set the broker up by hand? See Choose a Connection.

The summary screen lists what was written to the keypad and to ~/.vibetty/config.toml. The keypad stores its settings and reconnects automatically after power cycles.

Already using vibetty?

The wizard replaces the broker in ~/.vibetty/config.toml with the one you choose here. If you already use a cloud broker, pick I have my own broker and enter the same URL. See Setup Wizard for each question in detail.

Step 2: Start a shared session​

A session shows up on the keypad once vibetty shares it. There are three ways to start one:

WayBest for
From the vibeup panelThe easiest start. No commands to remember.
From the command lineChoosing the folder and the agent yourself.
From HerdrHerdr users who want to share panes from inside Herdr.

From the vibeup panel (Recommended)​

Run vibeup and open the Share tab (press 2, or Tab until it's selected). What you see depends on your computer:

  • macOS or Linux with Herdr: a list of every agent pane running in Herdr, with the shared ones marked. Select a pane and press Enter to share it (press again to stop). Press a to share every pane automatically, including new ones, and start vibetty's broker. This needs the vibetty Herdr plugin.
  • Without Herdr, or on Windows: press Enter. vibeup opens a new terminal window running vibetty. It starts your shell rather than an agent, so type claude or codex in that window. On Windows this needs Windows Terminal.

The Share tab in the vibeup panel, listing a Claude Code pane running in Herdr

The panel can't choose a folder or an agent, so if you need either, use the command line. See Share tab for all of its keys.

From the command line​

In your project folder, pass your coding agent after -- — claude for Claude Code or codex for OpenAI Codex:

cd path/to/workspace/
vibetty -- claude # Claude Code
vibetty -- codex # OpenAI Codex

On Windows, use the .exe from PowerShell or Command Prompt:

cd path\to\workspace\
vibetty.exe -- claude

You can append any claude parameter that you like:

# YOLO
vibetty -- claude --dangerously-skip-permissions

# Resume from last session in this workspace
vibetty -- claude -c --dangerously-skip-permissions

To keep a session running in the background without occupying a terminal:

tmux new-session -d -s vibetty -c "$HOME/workspace" 'vibetty -- claude'

Press ctrl+o to open the vibetty menu. The MQTT entry shows which MQTT parts vibetty has started:

ShowsMeaning
MQTT onBuilt-in broker and MQTT client both running (the LAN and Tailscale setups)
MQTT connMQTT client running against an external broker (the cloud setup), or another vibetty already runs the built-in broker
MQTT brkrBuilt-in broker running, but the client was stopped
MQTT offMQTT isn't running

This shows what vibetty started, not whether the broker accepted the connection. The real test is the keypad: when both sides reach the broker, your session appears in its session list.

Let your agent start sessions for you

vibetty skill install --claude --codex installs a run-vibetty skill into Claude Code / Codex, so your agent knows how to start a shareable background session on its own.

From Herdr​

On macOS and Linux, vibetty runs as a Herdr plugin, so you can share agent panes you already have open. The vibeup install script adds the plugin when it finds Herdr. To add it yourself:

herdr plugin install second-state/vibetty

Then share panes in any of these ways:

  • One pane: trigger the share action from the Herdr command palette (or bind it to a hotkey). The vibetty status bar under the pane shows the MQTT connection. See the vibetty README.
  • Every pane, automatically: run vibeup autoshare -d. It shares every Herdr agent pane, including new ones as they appear, and starts vibetty's broker. Stop it with vibeup autoshare stop.

Step 3: Start vibe coding​

  1. Turn on the keypad and choose Remote from the boot menu. It connects to the broker and opens the session list, showing every vibetty session you're sharing.

  2. Pick a session: NEXT moves the focus, ACCEPT opens it, ESC closes the list. Turning the knob does nothing in the list. Sessions waiting for you are listed first. On firmware v0.5, ● marks a session that's working and ◆ one that's stopped or waiting for you; on v0.4.2 and v0.4.3, the label is white for working and orange for stopped or waiting.

  3. Drive the session: the keypad screen shows its terminal.

    KeyAction
    Turn the knobScroll the terminal output
    ACCEPTSend Enter
    ESCSend ESC
    NEXTSend ↓
    BACKSPACESend Backspace
    CUSTOMType /compact
    YOLOShift + Tab (allow all edits)
    Press the knobReopen the session list to switch sessions
    MICVoice input — see Voice Input

    NEXT, CUSTOM, and YOLO follow your key mappings, so if you've remapped them, remote mode sends your mapping instead. ACCEPT, ESC, and BACKSPACE always work as shown.

  4. Switch sessions any time: press the knob, move to another session with NEXT, and press ACCEPT. No reconnecting.

Not the same list as keyboard mode

Keyboard mode has its own session list, filled by the vibekeys plugin over Bluetooth and used to watch status. The remote mode list shows vibetty sessions over MQTT, and picking one lets you control it.

Try it without hardware​

vibetty's repo includes resources/mqtt_ws.html, a browser-based MQTT viewer with a terminal view, keyboard input, and session list. It connects to the built-in broker's WebSocket port, which is off by default (builtin_ws_port = 0). Turn it on in ~/.vibetty/config.toml and restart vibetty:

[mqtt]
broker = "mqtt://127.0.0.1:1883"
builtin_ws_port = 9001

Then serve the page from vibetty's resources folder. Bind the server to your own machine so the folder isn't shared with the whole network:

python3 -m http.server 8000 --bind 127.0.0.1

Open http://127.0.0.1:8000/mqtt_ws.html and connect to ws://localhost:9001/mqtt to test your broker setup before the device is set up. See the vibetty README.

Build from source​

If you want to build vibetty from scratch, check out the vibetty GitHub repo and follow its build instructions.