Open-source Grok Bot alternative with a virtual machine that bots can use
TypeScript ai-agentsclaude-codecodexcomputer-usedockerelectrongrokgrok-botgrok-bot-alternativeself-hostedtypescript
// What the page is told about "Sign in with Boat" (configStatus `box.signIn`): never a token.
export type BoatSignInOutcome = "connected" | "cancelled" | "failed" | "refused" | "unreachable" | "not-saved";
export interface BoatSignInStatus {
/** False wherever sign-in is not offered (anything but the desktop app's own local server): paste a key only. */
available: boolean;
state: "none" | "connected" | "needs-sign-in";
/** The Boat account's name or email, when the person let the app read it. */
account?: string;
/** Scopes the app asks for that the person left unticked. */
missingScopes?: string[];
/** True while the sign-in, not the pasted key, is what the cloud computers use. */
used?: boolean;
/** A pasted API key is saved too. */
keySaved: boolean;
/** A sign-in was started and Boat has not answered yet. */
pending?: true;
/** How the last sign-in started here ended. */
last?: { outcome: BoatSignInOutcome };
}
/** The ports the desktop app's own server listens on (electron/desktop-ports.mjs): the only pages sign-in is offered on. */
export const BOAT_SIGN_IN_PORTS: readonly number[] = [8799, 18799, 28799];
/** Stands for the sign-in wherever a Boat credential is named by its token (`{ box: { token } }`). Not a key shape. */
export const BOAT_SIGN_IN_MARK = "boat-sign-in";