Open-source Grok Bot alternative with a virtual machine that bots can use
TypeScript ai-agentsclaude-codecodexcomputer-usedockerelectrongrokgrok-botgrok-bot-alternativeself-hostedtypescript
// The names the desktop proxy (`/api/desktop-viewer/<target>`) serves: one rule for the server and the renderer.
/** A Local VM is `local/shared`, `local/bot-<sha256>` or `local/pool-<seat>`; a bot's VPS is `vps/<botId>`. */
export const DESKTOP_VIEWER_TARGET = /^(local\/(?:shared|bot-[a-f0-9]{64}|pool-\d+)|vps\/[\w-]+)$/;
/** A Local VM's proxy name, from its target key (`shared`, `bot:<sha256>` or `pool:<seat>`). */
export const viewerTargetId = (target: { key: string }) => `local/${target.key.replace(":", "-")}`;