Open-source Grok Bot alternative with a virtual machine that bots can use
TypeScript ai-agentsclaude-codecodexcomputer-usedockerelectrongrokgrok-botgrok-bot-alternativeself-hostedtypescript
import { launcherOf } from "./cloud-connections.ts";
/** A package runner fetches its program the first time it starts, and later starts are quick: its check waits for that. */
const PACKAGE_RUNNERS: ReadonlySet<string> = new Set(["uvx", "npx", "bunx", "pipx", "pnpm", "uv"]);
const PACKAGE_START_MS = 120_000;
/** How long a command server that starts through a package runner gets to start, or undefined for any other command. */
export const startCheckTimeout = (command: string): number | undefined => (PACKAGE_RUNNERS.has(launcherOf(command)) ? PACKAGE_START_MS : undefined);