Open-source Grok Bot alternative with a virtual machine that bots can use
Departments and shared instructions
A department (the sidebar's bot group; section in the data and API) is a named membership group. It can be empty, and it
never limits which bots work together: every bot reaches every other bot, and a department only decides which Chief is in
charge (Chief authority). Group chats are
conversations, and Templates is the catalog that creates new teams and bots.
The sidebar and Team map use the same persisted team list. Existing bot and
group-chat labels migrate automatically; clearing a team's shared instructions
or moving its last bot does not remove the team.
Run the isolated lifecycle checks:
pnpm exec vitest run server/team-lifecycle.e2e.test.ts server/section-context.test.ts server/store.test.ts src/lib/team-map.test.ts --maxWorkers=2
OMB_UI_E2E=1 pnpm exec vitest run scripts/testing/team-lifecycle-ui.e2e.test.ts scripts/testing/team-template-ui.e2e.test.ts --maxWorkers=1
OMB_UI_E2E=1 pnpm exec vitest run scripts/testing/team-canvas-ui.e2e.test.ts --maxWorkers=1
OMB_UI_E2E=1 pnpm exec vitest run scripts/testing/team-computers-ui.e2e.test.ts --maxWorkers=1
pnpm exec vitest run scripts/testing/team-computers-fixture.test.ts
pnpm exec vitest run server/index.test.ts -t "creates team computers|shares one team computer" --maxWorkers=1
The server test uses launchVerificationServer, sends a sample conversation,
creates an empty team, moves two existing bots, saves shared instructions,
renames the populated team, adds and removes members, then empties and renames
it again. It imports a legacy template with a colliding name and restarts the
exact disposable server. It checks retained instructions and conversation
messages, archived bots moving to General when their team is deleted, and
explicit empty-team deletion. API requests and control-omb wait/messages
results are kept beside the fixture log in *.team-lifecycle.json.
A second real process restart uses legacy bot and group records needing migration beside a deliberately malformed team registry. Startup keeps both conversations readable and persists their task migrations, logs a diagnostic, and leaves the malformed file byte-for-byte unchanged. Later team and shared instruction writes still fail closed until that file is repaired.
The renderer test uses control-omb ui launch, opens Create department, and checks
that renaming preserves the sidebar's collapsed state and ordering. It moves
two bots through Team map, edits membership, and creates a bot directly in the
team. Dismissing that pending creation must retain unsaved membership edits and
select the created bot when its response arrives. It edits shared instructions
and reloads. A second fixture client moves the bots out; live updates retain the
empty team. Rename preserves instructions; delete confirms that the team's
instructions will be removed. A delayed, failed deletion cannot be submitted
twice and remains retryable; confirmation focus stays contained and returns to
its trigger when dismissed. It captures
.omb-scratch/verify-evidence/team-lifecycle.png before deletion.
New lifecycle labels use the existing string catalog; untranslated packs fall
back to the English labels without changing or regenerating other translations.
The canvas renderer check uses that same isolated full-app launcher. It seeds two Chiefs, two specialists with different model defaults, an empty team, and a real conversation with the fake engine. Opening a bot's settings or model section keeps Team map mounted. A multi-bot move preserves bot identities, threads, model defaults, messages, and shared instructions; selecting a Chief and another bot for a conflicting move leaves both memberships unchanged. Team controls are grouped under each team's Manage menu. The General-team move is also completed with keyboard input through the native menu and bot picker, with focus returning to the menu summary afterward. Cross-team drag/drop explains that the bot's home team and shared instructions will change, and requires Move bot confirmation before writing through the real API. Cancelling preserves membership and conversations. Same-team pointer reordering and Alt + Up/Down change only personal card order; arranging a team likewise stores its canvas position without changing membership. Both orders and positions survive reload. Panning, zoom controls, and fitting teams to view are checked against the rendered layout. Leaving a pending gesture permits the next bot click, and Escape during arrangement restores the original position. Idle cards omit the redundant Ready label. A computer shortcut appears only on the selected bot and opens that bot's access settings while Team map remains mounted. The Add → Boat computer entry explains provider charges and cannot create a machine while this credential-free fixture is disconnected. Opening and cancelling it leaves the server's computer inventory unchanged.
The focused server/index.test.ts cases run the real server against a local
HTTP Boat stand-in, with a disposable fake token and no paid account or container
engine. They verify explicit cost acknowledgement, invalid/foreign-origin
request denial, read-only inventory, durable failed-create records, same-id
retry without a second machine, concurrent provisioning rejection, and busy-team
assignment rejection. Assignment consent and the resulting registry file are
checked; this is not a full server-restart assertion. Opening a shared desktop
requires taking human control first.
A second case confirms that Auto bots' direct and room turns receive the same Boat ID, while an explicit Off bot receives no computer. The real shared-resource lock rejects overlapping work and lifecycle changes; human control is shared across the team's bots, while a bot's control capability cannot impersonate another bot and is revoked after its turn. Removing the simulated provider machine causes a clear failure, never an automatic paid replacement. These checks prove server routing and ownership, not actual Boat provisioning or remote desktop operation.
The separate team-computers-ui test uses a real OMB server and renderer with
an owned loopback HTTP Boat provider. It creates a named machine through Add →
Boat computer, verifies opening the shelf never provisions a machine, cancels
and confirms a pointer drop, explicitly unassigns before moving to another team,
and preserves bot settings and the computer registry across a browser reload.
It also checks an Auto bot's Computer panel names the shared team machine
without offering a second private computer, then takes/releases human control,
sleeps the machine, and retries a simulated rate-limit error using the same
durable resource ID. No provider deletion is made. Evidence and a screenshot
are retained beside the fixture log as *.team-computers.json and
*.team-computers.png. Accessible clicks and confirmation keys are real browser
input; pointer events and native-select change events are injected in this test.
For a separately driven computer-use preview, run:
node --experimental-strip-types scripts/testing/team-computers-preview.ts
The printed previewUrl is disposable. boatFixtureApi exposes a fixture-only
GET /__fixture receipt of provider calls; POST /__fixture with
{"refuseCreate":true} enables the simulated 429 response, and false clears it.
The launch hook accepts only a literal http://127.0.0.1:PORT and installs a
fixed fake token. It cannot inherit a real Boat token or use a remote provider.
Ctrl-C stops the owned renderer/server and local provider. Guest bootstrap
commands are acknowledged by the stand-in but never execute.
On 2026-09-13, a separate native computer-use pass against this preview created a named computer, used its desktop hold/release controls, and dragged its shelf handle onto General. The real pointer drag opened the correct assignment confirmation with Cancel focused; this verified the shelf's native pointer capture after replacing HTML drag-and-drop. The confirmation clearly explains shared files/accounts and that only one bot can use the desktop at a time. This native pass does not prove physical touch input, a paid provider's provisioning behavior, or a live remote desktop stream.
The test retains its before/after receipts and dark/light screenshots beside
the fixture log as *.team-canvas.json and *.team-canvas-*.png. Its injected
pointer events exercise renderer gesture handlers against the isolated API;
they do not prove native pointer capture or physical mouse/touch behavior.
Native input and narrow-window appearance need separate fixture browser or
Electron verification. Never use the running desktop app for those checks.
The owner API keeps the existing /api/sidebar-sections name for older clients:
GETreturns{ sections: string[] }.POST { name, botIds?: string[] }creates a named team or moves the supplied bots into it. Omitted/emptybotIdscreates an empty team. An empty name with selected bots moves them into General. Chief conflicts change no memberships.PUT ?section=NAME { addBotIds: string[], removeBotIds: string[] }updates membership in an existing team. Removed bots move to General. Invalid or stale membership changes are rejected without partially applying the move.PATCH ?section=NAME { name }renames a team, including its bots, archived bots, group chats, shared instructions, management grants and assigned team computer. It cannot merge into an existing team or rename during active work.DELETE ?section=NAMEremoves the team and its shared instructions while retaining bots, archived bots, group chats and their conversations in General. Finish active work and unassign any team computer first. Chief conflicts reject the deletion rather than changing leadership.
The registry shares the atomic section-context file so rename/delete cannot split a team's name from its instructions. Team labels are remembered before a bot write; a storage failure may leave an empty team, but cannot partially move the selected bots. This does not change bot communication permissions.
Both fixtures own their fake engine, temporary home and data directory. Cleanup stops only their own child processes. Never run these requests against the live app or copy live data into a fixture.