Open-source Grok Bot alternative with a virtual machine that bots can use
TypeScript ai-agentsclaude-codecodexcomputer-usedockerelectrongrokgrok-botgrok-bot-alternativeself-hostedtypescript
import { Info } from "lucide-react";
import { useStoreDispatch } from "@/state/store-select";
import { t } from "@/lib/i18n";
/** A turn the trial credit could no longer pay for: a quiet note with the one way on, never an error in the chat. */
export function TrialCreditNotice({ kind }: { kind: "used_up" | "ended" }) {
const dispatch = useStoreDispatch();
return (
<div role="note" data-trial-credit-notice={kind} className="flex justify-start">
<div className="w-fit max-w-[min(var(--chat-bubble-max),var(--chat-bubble-pct))] rounded-xl border border-hairline/60 bg-raised/50 px-3.5 py-2.5 text-[14px] text-ink">
<div className="flex items-start gap-2">
<Info size={15} aria-hidden="true" className="mt-0.5 shrink-0 text-ink-secondary" />
<span className="min-w-0 break-words">{t(kind === "used_up" ? "engines.trialCreditUsedUp" : "engines.trialCreditEnded")}</span>
</div>
<button
type="button"
onClick={() => dispatch({ type: "toggleAppSettings", open: true, section: "engines" })}
className="ui-button ui-button-md mt-2 rounded-full"
>
{t("chat.error.connectOwnAi")}
</button>
</div>
</div>
);
}