Open-source Grok Bot alternative with a virtual machine that bots can use
TypeScript ai-agentsclaude-codecodexcomputer-usedockerelectrongrokgrok-botgrok-bot-alternativeself-hostedtypescript
import fs from "node:fs";
// Chromium's GPU process crashed on NVIDIA/libGLES and left an invisible window intercepting input, so NVIDIA keeps
// software rendering. Elsewhere software rendering costs about a CPU core whenever the UI animates.
export function linuxDisablesGpu({ env = process.env, exists = fs.existsSync } = {}) {
if (env.OMB_LINUX_GPU === "off") return true;
if (env.OMB_LINUX_GPU === "on") return false;
return exists("/proc/driver/nvidia/version") || exists("/sys/module/nvidia");
}
// The main window's page is told so its glass pop-ups drop the backdrop blur, which is redrawn on the CPU here.
export const SOFTWARE_RENDERING_ARG = "--omb-software-rendering=1";
// Chromium in Electron 43 binds KWin's wp_color_manager_v1 and logs "Unable to set image transfer function" on Plasma 6 Wayland.
export function disableWaylandColorManager(commandLine) {
const disabled = commandLine.getSwitchValue("disable-features");
commandLine.appendSwitch("disable-features", [disabled, "WaylandWpColorManagerV1"].filter(Boolean).join(","));
}