Open-source Grok Bot alternative with a virtual machine that bots can use
TypeScript ai-agentsclaude-codecodexcomputer-usedockerelectrongrokgrok-botgrok-bot-alternativeself-hostedtypescript
import { Plus } from "lucide-react";
import { t } from "@/lib/i18n";
import { cn } from "@/lib/cn";
import { useStoreDispatch } from "@/state/store-select";
import { useAdvancedMode } from "@/lib/interface-mode";
import { useBotHasThreads, useThreadTabsShown } from "./HeaderThreadTabs";
export function NewThreadHeaderButton({ botId }: { botId: string }) {
const dispatch = useStoreDispatch();
const tabs = useThreadTabsShown();
const simplePill = !useAdvancedMode() && window.ogb?.remoteClient?.active !== true;
const pillHasIt = useBotHasThreads(botId) && simplePill;
if (pillHasIt) return null;
return (
<button
type="button"
data-new-thread
onClick={() => dispatch({ type: "newTask", botId })}
aria-label={t("task.newShort")}
aria-keyshortcuts="Meta+T Control+T"
title={t("task.newShort")}
className={cn(tabs && "md:hidden", "flex size-9 shrink-0 items-center justify-center rounded-full text-ink-secondary transition-colors duration-[120ms] hover:bg-ink/[0.06] hover:text-ink active:bg-ink/[0.08] motion-reduce:transition-none")}
>
<Plus size={16} aria-hidden="true" />
</button>
);
}