Open-source Grok Bot alternative with a virtual machine that bots can use
TypeScript ai-agentsclaude-codecodexcomputer-usedockerelectrongrokgrok-botgrok-bot-alternativeself-hostedtypescript
docs(vps): say the live-desktop tunnel does not share the SSH connection
Sebastian Bae38305cd9b2
diff --git a/docs/byo-vps.md b/docs/byo-vps.mdindex 0c1d3e9b08..6565a71c08 100644--- a/docs/byo-vps.md+++ b/docs/byo-vps.md@@ -40,6 +40,8 @@ supplies connection sharing and fail-fast timeouts itself: it runs each VPS comm`ssh_config` (under `~/.openmausbot/ssh/`) that includes your file first and fills in `ControlMaster`,`ControlPersist`, keepalives and a connect timeout wherever your alias leaves them unset. Anything youralias sets wins. Startup, previews, bot tools and their connection probes use the same settings.+The live desktop's tunnel is the exception: it opens its own connection (`ControlPath=none`), so+closing it never takes down a connection that docker commands share.For long data-directory paths, the app keeps its control socket in a private, user-owned directoryunder `/tmp` to stay within OpenSSH's socket-path limit; the config stays in the app data directory.Windows OpenSSH does not support connection sharing, so that platform keeps its normal SSH setup.@@ -58,8 +60,8 @@ Host my-vpsConnectTimeout 10```-- `ControlMaster`/`ControlPath`/`ControlPersist` — every action is a docker-over-SSH exec; multiplexing turns- per-command connects into milliseconds over one persistent connection.+- `ControlMaster`/`ControlPath`/`ControlPersist` — every bot action is a docker-over-SSH exec; multiplexing turns+ per-command connects into milliseconds over one persistent connection. The live-desktop tunnel does not share it.- `ServerAliveInterval`/`ServerAliveCountMax`/`ConnectTimeout` — a dropped VPS must fail fast (under aminute, and ten seconds to connect), not hang a turn waiting on a dead TCP session.diff --git a/server/vps-ssh.ts b/server/vps-ssh.tsindex a699fa29c1..4b9fc977e6 100644--- a/server/vps-ssh.ts+++ b/server/vps-ssh.ts@@ -1,4 +1,4 @@-// An ssh_config and an `ssh` shim that add connection sharing and fail-fast timeouts to every VPS command, whatever the user's alias sets.+// An ssh_config and an `ssh` shim that add connection sharing and fail-fast timeouts to every VPS command, whatever the user's alias sets; the live-desktop tunnel opts out of sharing.import { createHash } from "node:crypto";import { chmodSync, existsSync, lstatSync, mkdirSync, readFileSync, renameSync, statSync, writeFileSync } from "node:fs";import { homedir } from "node:os";@@ -81,7 +81,7 @@ export function prepareVpsSsh(dataDir: string, pathValue: string, platform: Nodeconst shim = ["#!/bin/sh","# Written by OpenMausBot. docker's SSH transport finds this ssh first, so",- "# every VPS command shares one connection whether or not the alias says so.",+ "# every docker command shares one connection whether or not the alias says so.",`exec ${shellQuote(realSsh)} -F ${shellQuote(configPath)} "$@"`,"",].join("\n");