Open-source Grok Bot alternative with a virtual machine that bots can use
TypeScript ai-agentsclaude-codecodexcomputer-usedockerelectrongrokgrok-botgrok-bot-alternativeself-hostedtypescript
Merge #5154: Updatable model manifest: new models by editing one JSON file
milind-soni6bd3ec9faac5
diff --cc server/routes/instances.tsindex 5eb1bebd21,5b48764e62..782e2669f5--- a/server/routes/instances.ts+++ b/server/routes/instances.ts@@@ -108,15 -108,10 +109,17 @@@ export function createInstanceRoutes(de// Rescan PATH: Windows never pushes PATH changes into a live process, so a CLI installed since launch stays invisible.resetPathCache();if (url.searchParams.get("fresh") === "1") registry.forgetSnapshots();+ // Whatever this download brings shows on the next open; the answer does not wait for it.+ void modelManifest().refreshOnDemand().catch(() => {});return json(res, 200, { instances: await describeInstances() });}+ if (method === "GET" && path === "/api/instances/ollama") {+ if (hostedModels || !ownerOrAdmin(auth)) return json(res, 403, { error: "Only the owner of this server can look for Ollama." });+ const asked = url.searchParams.get("url")?.trim();+ const address = asked ? endpointBaseUrl(asked) : null;+ if (asked && !address) return json(res, 400, { error: "Enter an http or https address, such as http://127.0.0.1:11434." });+ return json(res, 200, { status: address ? await probeOllama(address) : await findOllama() });+ }const companyMutation = /^\/api\/instances\/(company\.[\w.-]+)(?:\/|$)/.exec(path);if (hostedModels && path.startsWith("/api/instances/") && method !== "GET") return json(res, 403, { error: HOSTED_PROVIDER_SETTINGS_ERROR });if (companyMutation && method !== "GET") return json(res, 403, { error: "Company accounts are read-only here. Manage this connection in desktop Settings." });diff --cc src/components/SimpleModelMenu.tsxindex 3e4a91839c,c74b999c88..98cf1b7ea0--- a/src/components/SimpleModelMenu.tsx+++ b/src/components/SimpleModelMenu.tsx@@@ -51,31 -50,10 +51,31 @@@ function RowLines({ label, children }:);}+/** Stays where it is when pressed: the row moves up the next time the menu opens, not under the pointer. */+export function FavoriteStar({ instanceId, model, name }: { instanceId: string; model: string; name: string }) {+ const favorite = useFavoriteModels().has(favoriteKey(instanceId, model));+ return (+ <button+ type="button"+ data-model-favorite+ tabIndex={-1}+ aria-pressed={favorite}+ aria-label={t(favorite ? "model.favorite.remove" : "model.favorite.add", { name })}+ title={t(favorite ? "model.favorite.remove" : "model.favorite.add", { name })}+ onClick={() => toggleFavoriteModel(instanceId, model)}+ className={cn("absolute end-1.5 top-1/2 flex size-6 -translate-y-1/2 items-center justify-center rounded-md text-ink-tertiary hover:text-ink",+ favorite ? "opacity-100" : "opacity-0 group-hover/model:opacity-100 touch:opacity-100")}+ >+ <Star size={13} aria-hidden="true" className={cn(favorite && "fill-current")} />+ </button>+ );+}+function MenuModel({ instance, row, onPick }: { instance: InstanceInfo; row: MenuModelRow; onPick: SimpleMenuActions["onPick"] }) {const { option } = row;- const reason = row.blocked ? t("model.orgBlocked") : undefined;+ const reason = row.blocked ? t(option.needsCliUpdate ? "chat.claudeUpdate.offer" : "model.orgBlocked") : undefined;return (+ <div className="group/model relative"><buttontype="button"data-menu-row