Open-source Grok Bot alternative with a virtual machine that bots can use
TypeScript ai-agentsclaude-codecodexcomputer-usedockerelectrongrokgrok-botgrok-bot-alternativeself-hostedtypescript
Merge #4228 at 0d4e3c5cb
milind-sonid662ae537816
diff --cc docs/team-cloud.mdindex 4dae1faa67,4e806e4426..d4aa83a15c--- a/docs/team-cloud.md+++ b/docs/team-cloud.md@@@ -10,9 -10,9 +10,12 @@@ keeps people apart on it. The bot box (- **Signing in.** Each person pairs from the app with a link the Admin signs for them; the machine shows the team's namewherever a server names itself. Owners and Admins get everything an admin session can do (Super admin and Admin in theapp); a Member (User) uses each bot as far as it is shared with them (below, "Who can use a bot"), uses rooms and- makes routines, and connects no app and makes no webhook. With Azure OpenAI chosen for Live calls, only an Owner or+ makes routines, and connects no app and makes no webhook. Owners and Admins also get **Invite someone** under People in+ the sidebar, in Simple too and when they are alone on the team: it opens the team's People page on the Cloud in their+ browser, where they sign in if that browser hasn't yet.++ With Azure OpenAI chosen for Live calls, only an Owner or+ Admin can start one: a Member is told so in plain words and never gets a call through another provider+ (`docs/verification/live-calls.md`).- **Conversations.** A bot's main chat is the team's: everyone who sees the bot reads and writes it. Teammates arein the @ list too, and whatever is addressed to one of them reaches their inbox (below, "One inbox per person"). "New conversation"is yours alone: no other Member and no Admin, the Super admin included, sees it, writes in it or learns of it, indiff --cc server/config.tsindex 02cdb0100f,01b3a19765..66ff1389b2--- a/server/config.ts+++ b/server/config.ts@@@ -508,10 -502,10 +503,10 @@@ export interface AppConfig extends Help/** A named host from the user's SSH config. Authentication stays with SSH. */vps?: { sshAlias?: string };opencodeGo?: { apiKey?: string; providerKeys?: Record<string, string> };- tts?: { key?: string; fishKey?: string; voice?: string; provider?: "elevenlabs" | "fish" | "system" | "chatterbox" | "xai"; baseUrl?: string; model?: string; fishModel?: FishTtsModel };+ tts?: { key?: string; fishKey?: string; geminiKey?: string; voice?: string; provider?: "elevenlabs" | "fish" | "system" | "chatterbox" | "xai" | "gemini"; baseUrl?: string; model?: string; fishModel?: FishTtsModel };decider?: DeciderConfig;imageGen?: ImageGenerationConfig;- live?: { key?: string; voice?: string; readTypedReplies?: boolean; idleMinutes?: number };+ live?: LiveConfig;profile?: { name?: string; email?: string; aboutMe?: string; avatarUrl?: string };rooms?: { turnTimeoutMinutes: number };mcp?: { callTimeoutMinutes?: number };diff --cc server/live-call-controller.tsindex 6460da5e1d,c128d83fe1..24a2547f9f--- a/server/live-call-controller.ts+++ b/server/live-call-controller.ts@@@ -6,8 -6,8 +6,8 @@@ import} from "../shared/live-approval.ts";import { clampAppend, commentaryChunks, LiveTranscript } from "../shared/live-call.ts";import { signInWaits } from "../shared/sign-in-request.ts";- import type { LiveCallRecord, LiveCallState, LiveClient, LiveEndReason } from "../shared/wire.ts";- import { LIVE_NEEDS_KEY, liveCallSummaryLine, LiveSessionError, liveVoice, spokenHangUp } from "./live-call.ts";+ import type { LiveCallRecord, LiveCallState, LiveClient, LiveEndReason, LiveProvider } from "../shared/wire.ts";-import { LIVE_NEEDS_KEY, liveAuthHeaders, liveCallSummaryLine, liveProviderName, LiveSessionError, liveVoice, type LiveEndpoint } from "./live-call.ts";++import { LIVE_NEEDS_KEY, liveAuthHeaders, liveCallSummaryLine, liveProviderName, LiveSessionError, liveVoice, spokenHangUp, type LiveEndpoint } from "./live-call.ts";import type { RequestAuth } from "./request-auth.ts";import type { Message, StoreChange } from "./store.ts";diff --cc server/live-call.test.tsindex 19ab703351,b8d5923fec..5d9971bed9--- a/server/live-call.test.ts+++ b/server/live-call.test.ts@@@ -13,7 -19,8 +19,9 @@@ importliveInstructions,liveSessionsUrl,MAX_SDP_BYTES,+ spokenHangUp,+ openAiLiveEndpoint,+ type LiveEndpoint,} from "./live-call.ts";import { CLOUD_HOME_PLACE } from "./system-prompt.ts";diff --cc shared/wire.tsindex b9d74aded2,0e702eb0e0..8677bae0f3--- a/shared/wire.ts+++ b/shared/wire.ts@@@ -32,10 -32,7 +32,10 @@@ import type { WebhookAttempt, WebhookTrimport type { PublishedPageCard } from "./published-page.ts";import type { InboxItem, InboxTask } from "./inbox.ts";import type { LiveCallRecord, LiveCallState } from "./live-call-wire.ts";+/** What a team bot's main chat is called, beside each person's own chats. */+export const SHARED_CHAT_TITLE = "Shared chat";+- export type { LiveCallRecord, LiveCallState, LiveCallStatus, LiveClient, LiveEndReason, LiveKeySource, LiveSettings } from "./live-call-wire.ts";+ export type { LiveCallRecord, LiveCallState, LiveCallStatus, LiveClient, LiveEndReason, LiveKeySource, LiveProvider, LiveSettings } from "./live-call-wire.ts";/** Reasoning-effort levels, ascending: a union of what any engine accepts;* each driver declares the subset its CLI will take. */diff --cc src/components/keys/KeysPage.tsxindex af84218da1,573671c768..fec1dbe66a--- a/src/components/keys/KeysPage.tsx+++ b/src/components/keys/KeysPage.tsx@@@ -5,7 -5,8 +5,8 @@@ import { cn } from "@/lib/cn"import { scrollParent, scrollWithin } from "@/lib/scroll-within";import { t } from "@/lib/i18n";import { BoatOfferPanel } from "../BoatOffer";+ import { LiveProviderSettings } from "../LiveProviderSettings";-import { LmStudioServer, OtherOpenAiCompatServers } from "../OpenAiCompatServers";+import { BuiltInReplyWait, LmStudioServer, OtherOpenAiCompatServers } from "../OpenAiCompatServers";import { KEY_CATALOG, KEY_SECTIONS, keyMatches, savedState, type KeyEntry, type KeyId, type KeySectionId } from "./key-catalog";import { finishKeyFocus, useKeyFocus, type KeyFocusRequest } from "./key-focus";import { AnthropicEveryClaudeBot, OpenAiCompatUrl, OpenCodeProviderKeys, VpsConnection } from "./KeyPanels";@@@ -22,8 -23,9 +23,9 @@@ const PANELS: Partial<Record<KeyId, ()const EXTRAS: Partial<Record<KeyId, () => ReactNode>> = {anthropic: () => <AnthropicEveryClaudeBot />,- openaiCompat: () => <><OpenAiCompatUrl /><OtherOpenAiCompatServers /></>,+ openaiCompat: () => <><OpenAiCompatUrl /><BuiltInReplyWait /><OtherOpenAiCompatServers /></>,box: () => <BoatOfferPanel />,+ liveKey: () => <LiveProviderSettings />,};function connected(entry: KeyEntry, config: ConfigStatus | null | undefined): boolean {