Connect a machine
Run agent sessions on your own hardware from vibedeckx.dev.
Agents run on machines you connect. The machine dials out to the Vibedeckx server, so it needs no open ports or public address.
In Settings → Remote Servers, add a server for the machine and open its connect token. The dialog shows two commands to copy and run on that machine.
Install and sign in to an agent
Install Claude Code, Codex or fx on the machine that runs your sessions, and sign in as the same user that runs the worker. Installing the worker service does not install an agent CLI. The service needs to find the agent command on its PATH; connect install reports missing commands without preventing installation.
fx (experimental)
fx is experimental. Its commands and protocol can change between releases. The native CLI supports macOS and Linux on x86_64 and arm64; it does not support Windows. The worker itself still supports Windows for other agents.
Install using the official installer, then sign in on the worker machine:
curl -fsSL https://fx.sh/setup.sh | bash
fx login vercelThe installer uses ~/.local/bin. fx login signs in to Vercel AI Gateway; fx also offers fx login codex, fx login grok and fx login vercel --api-key. Use fx status --json and fx doctor --json to inspect the selected provider and diagnose authentication failures. Vibedeckx does not open an interactive login window: after signing in on the worker machine, resend your message. Keep the original login and profile available to the worker user: Linux Gateway OAuth uses ~/.fx/auth.json, while other login methods may use different files or the macOS Keychain. ~/.fx/api-key is not the only credential location. In a container, keep the home volume so the .fx profile survives recreation.
Vibedeckx records the CLI version for troubleshooting and disables fx's background auto-upgrade for the processes it starts. You can upgrade fx yourself; versions are not restricted to a tested list.
Leaving the model at Default uses fx's own configuration. Suggested models and custom model names still require access through your selected provider; suggestions do not guarantee account access.
The current fx session integration differs from Claude Code and Codex:
- Permissions: sessions use fx's
full-accessmode, without interactive tool approval. fx has no read-only mode or sandbox of its own, so Plan mode is enforced by instructions only: while a session is in Plan mode, Vibedeckx tells fx not to change files or run commands with side effects (formatters, installs, git writes), but nothing blocks a write technically. This also applies when fx is the reviewer in a review. Switch to Edit as usual when changes should be made. - Conversation recovery: waking or restarting a session replays saved conversation context into a new fx session. This is not a lossless restore of an fx-native session.
- Tools: common file, shell and search tools use the existing cards; unfamiliar tools show their arguments and results. File edits show the supplied old/new text, not an fx-provided full-file diff.
- Questions: question cards send a normal follow-up message. fx's ACP interface does not wait for a blocking question response.
- Background commands: there is no fx background-task bar or individual task Stop button. Stopping a turn does not guarantee that an already-running shell command has exited.
See Loops for repeated sessions and prompt executors and schedules for one-shot tasks and their worker upgrade requirement.
Install as a service
This is the one to use for a machine that should stay connected. It works on Linux, macOS and Windows; on Windows, run it from Command Prompt or PowerShell (no administrator rights needed):
npx vibedeckx@latest connect install --connect-to https://vibedeckx.dev --token <token>It installs the worker as a service of your user: systemd on Linux, launchd on macOS, a Task Scheduler task on Windows. The worker then:
- starts when the machine boots (macOS and Windows: when you log in),
- restarts by itself if it crashes or is killed,
- keeps its own copy of Node and the worker, so later Node upgrades on the machine don't affect it.
The token is saved privately in the worker's data directory; the running worker never has it on its command line. To keep it out of your shell history as well, leave --token out and paste the token when prompted, or use --token-file <path>.
Running the same command again with a newer version upgrades the worker. The worker restarts only when something changed (a new version, token or server URL); otherwise the command reports that it is already up to date and leaves running sessions alone.
If the worker starts but cannot connect, for example because the token was revoked or belongs to another remote server, the command fails and prints the reason and how to fix it. The service stays installed and connects by itself once the token is fixed.
Linux: start at boot
systemd user services only start at boot when lingering is enabled for your user. connect install turns it on when it can; otherwise it prints the command, typically sudo loginctl enable-linger $USER.
macOS: after login
A launchd agent starts when you log in. For an unattended Mac, enable automatic login.
Windows: after sign-in
The task runs in the background, without a window, and starts when you sign in to Windows. For an unattended PC, enable automatic sign-in. If the worker crashes it is back within seconds; if its supervisor process is killed, the task brings both back within a minute. Requires Windows 10 version 1809 or later.
Managing the worker
connect install also creates a vibedeckx command in ~/.local/bin (vibedeckx.cmd in %USERPROFILE%\.local\bin on Windows) that runs the installed worker directly, without npx or a download. If that folder is not on your PATH, the installer tells you what to add.
| Command | What it does |
|---|---|
vibedeckx connect status | Shows whether the worker is running and connected, and how to fix it if not |
vibedeckx connect stop | Stops it until start or the next boot (macOS and Windows: the next login) |
vibedeckx connect start | Starts it again |
vibedeckx connect restart | Restarts it |
vibedeckx connect disable | Stops it and keeps it off across reboots |
vibedeckx connect enable | Turns auto-start back on and starts it |
vibedeckx connect uninstall | Removes the service and the vibedeckx command; your data and token are kept |
status only looks at this machine. Add --check-update to also check for a newer version; see Upgrading the worker if one is available.
On macOS and Windows, a disabled worker does not start at all, so start and restart refuse until you run enable.
On Windows the worker's logs are in %USERPROFILE%\.vibedeckx\logs: vibedeckx.log, plus supervise.log and worker-console.log from the supervisor.
Upgrading the worker
The worker does not upgrade itself. When vibedeckx connect status --check-update reports an update, run the install command again with the new version:
npx vibedeckx@latest connect installThe token and server URL saved by the first install are reused, so you don't need to pass them again. The new version is installed beside the old one and the worker restarts on it; if the command is interrupted, the previous version keeps running. The restart stops any agent that is running on this machine, so upgrade when it is idle. Afterwards, vibedeckx connect status --check-update should show up to date.
Changing the token
If you rotate the token in Settings → Remote Servers, save the new one on the machine:
vibedeckx connect setupIt asks for the new token (press Enter to keep the current one). A running worker picks it up without a restart. While the token is invalid, connect status shows auth-failed.
If the machine should start serving a different remote server, run connect setup --force with that server's token, then connect restart. Without --force the worker refuses a token that belongs to another server and shows blocked.
Run in Docker
For a machine without Node.js, or one where you'd rather keep the worker in a container, use the worker image ghcr.io/vibedeckx/worker. It contains Node, the worker, Claude Code and Codex. Only Docker is needed on the machine (Linux, x86-64).
For fx on an existing image, install it as the container user. The copy in the home volume survives image upgrades:
docker exec -it vibedeckx-worker sh -c 'curl -fsSL https://fx.sh/setup.sh | bash'
docker exec -it vibedeckx-worker fx login
docker restart vibedeckx-workerSave the token in a directory of its own. The worker runs as user 1000 inside the container, so make the file readable by that user:
mkdir -p ~/vibedeckx-worker/secrets
cd ~/vibedeckx-worker
(umask 077 && printf '%s' '<token>' > secrets/connect-token)
sudo chown 1000 secrets/connect-tokenThen start the worker:
docker run -d --name vibedeckx-worker --restart unless-stopped --init \
-v "$PWD/secrets:/run/vibedeckx-secrets:ro" \
-v vibedeckx-data:/data \
-v vibedeckx-home:/home/node \
-v vibedeckx-worktrees:/var/tmp/vibedeckx/worktrees \
-v vibedeckx-projects:/projects \
ghcr.io/vibedeckx/worker:latestDocker restarts the worker if it crashes and starts it again when the machine boots. Everything worth keeping lives in volumes: the worker's data and identity (/data), agent logins and settings (/home/node), the worktrees it creates, and project checkouts (/projects).
The image connects to https://vibedeckx.dev and reads the token from secrets/connect-token by default. For a self-hosted server, add -e VIBEDECKX_CONNECT_TO=<server URL>.
Mount the token's directory, not the file itself: to change the token, overwrite secrets/connect-token and the running worker picks it up without a restart. The file now belongs to user 1000, so unless that is you, overwrite it with sudo; tee keeps its owner and permissions:
printf '%s' '<new token>' | sudo tee secrets/connect-token > /dev/nullTo pass the token directly instead of mounting secrets, put --token <token> after the image name. It is then visible in docker inspect and ps, and changing it means recreating the container. -e VIBEDECKX_CONNECT_TOKEN does not work here: the image's default token file takes precedence over it.
If you prefer Compose, the repository has a ready-made docker-compose.yml with the same settings.
Keep projects in a host directory
To see and edit project checkouts from the host, mount a directory instead of the vibedeckx-projects volume. Create it first and give it to user 1000; a directory that Docker creates by itself belongs to root and the worker cannot write to it:
mkdir -p ~/vibedeckx-worker/projects
sudo chown 1000:1000 ~/vibedeckx-worker/projectsThen replace -v vibedeckx-projects:/projects with -v "$PWD/projects:/projects".
Let agents use the host's Docker
If your projects build or run containers, give the worker the host's Docker socket and CLI by adding these options to docker run:
-v /var/run/docker.sock:/var/run/docker.sock \
-v /usr/bin/docker:/usr/local/bin/docker:ro \
--group-add "$(stat -c %g /var/run/docker.sock)" \--group-add lets user 1000 in the container use the socket.
This gives agents root on the host
Whoever can use the Docker socket can start a container that mounts the host's whole filesystem. With these options, an agent session effectively has root access to the machine, not just to the container. Only add them on a machine you are prepared to hand over to agents.
Let agents on other machines inspect this host
You can run the container only so that agents on your other machines can reach this one through remote access, without running agents in it. Remote access works inside the container: by default an agent sees the container's files and processes, not the host's. Add what it should see:
| To let agents | Add |
|---|---|
| Read the host's files | -v /:/host:ro (the host's files appear under /host) |
| List the host's processes | --pid=host |
Reach services that listen only on the host's localhost, such as a local MCP server | --network=host |
Read files that only root can read, such as most of /var/log | --user root |
| Inspect the host's other containers (needs Command execution) | The three options from Let agents use the host's Docker |
For read-only diagnosis of the host, this is a good start, paired with the Diagnostic read level:
docker run -d --name vibedeckx-worker --restart unless-stopped --init \
--pid=host -v /:/host:ro \
-v "$PWD/secrets:/run/vibedeckx-secrets:ro" \
-v vibedeckx-data:/data \
ghcr.io/vibedeckx/worker:latestAgents don't know about /host on their own. Tell them, for example: "the host's files are under /host on that machine". In the process list, users show as numeric IDs, because the container doesn't have the host's user names.
Root in the container
--user root lets agents with access read every file on the host, including private keys and other users' files. The host's files stay read-only with :ro, but with Command execution an agent can still change whatever the container itself can reach. Don't use --user root if you also run agents in this container: Claude Code refuses to run unattended as root.
Sign in to the agents
A new container has no agent logins yet. Sign in once from the host; the login is kept in the vibedeckx-home volume:
docker exec -it vibedeckx-worker claude # then /login
docker exec -it vibedeckx-worker codex login --device-authManaging the worker
Manage the container from the host:
| Command | What it does |
|---|---|
docker exec vibedeckx-worker vibedeckx connect status | Shows whether the worker is running and connected |
docker stop vibedeckx-worker | Stops it; it stays stopped across reboots until you start it |
docker start vibedeckx-worker | Starts it again |
docker restart vibedeckx-worker | Restarts it |
docker logs -f vibedeckx-worker | Follows its output |
connect stop, restart, disable and the other service commands refuse to run inside the container and point you to these.
Upgrading
Each Vibedeckx release publishes an image tagged with its version, and latest. To upgrade, pull the new image and recreate the container with the same docker run command; the volumes keep the worker's identity, logins and worktrees:
docker pull ghcr.io/vibedeckx/worker:latest
docker rm -f vibedeckx-worker
docker run ... # the same command as aboveThe image includes the Claude Code and Codex versions current when it was built. To use a newer one before the next image, install it inside the container. It goes into the vibedeckx-home volume, so it survives upgrades and takes precedence over the built-in copy:
docker exec -it vibedeckx-worker sh -c 'curl -fsSL https://claude.ai/install.sh | bash'
docker exec -it vibedeckx-worker npm install -g @openai/codex@latest
docker restart vibedeckx-workerFrom then on, upgrading the image no longer changes that CLI: your copy keeps winning. Claude Code installed this way updates itself (or run claude update), but Codex stays at the version you installed until you run the npm install again. To go back to the versions that come with the image, remove your copies and restart:
docker exec vibedeckx-worker npm uninstall -g @openai/codex
docker exec vibedeckx-worker rm -f /home/node/.local/bin/claude
docker restart vibedeckx-workerYour projects will usually need more tools than the image has (language toolchains, build tools). Build your own image on top of it with FROM ghcr.io/vibedeckx/worker:latest and install them there.
Run in the terminal only
The dialog's second command runs the worker until you close the terminal. It also works on systems where connect install is not available yet:
npx vibedeckx@latest connect --connect-to https://vibedeckx.dev --token <token>