Skip to content

Commit f678b33

Browse files
authored
The OpenBot Recorder and the OpenBot Browser: teach a Bot by doing it in your own browser (#858)
1 parent 3340642 commit f678b33

460 files changed

Lines changed: 190871 additions & 1474 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

‎.env.example‎

Lines changed: 26 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -167,6 +167,11 @@ COPILOTKIT_LICENSE_TOKEN=
167167
# CPK_INTELLIGENCE_SKILLS_REVISION=exact-revision-id
168168
# See docs/automatic-learning.md for managed/self-hosted setup and permissions.
169169

170+
# OpenBot accepts the OpenBot Recorder extension only from its own extension id. A fork, or a build
171+
# signed with another key, has another id: list it here, comma separated, each 32 letters from a to
172+
# p. Any other value stops the server at boot.
173+
# OPENBOT_RECORDER_EXTRA_EXTENSION_IDS=
174+
170175
# How long a Bot's stream may say nothing before this deployment gives up on the turn, in
171176
# milliseconds. A Bot is any AG-UI endpoint, which means it will be redeployed mid-answer, its own
172177
# upstream will time out, and it will sometimes accept a connection and then write nothing at all.
@@ -208,6 +213,14 @@ OPENAI_API_KEY=
208213
# BOT_MODEL=openai/gpt-5.5
209214
#
210215
# OPENAI_BASE_URL=
216+
# Behind an OPENAI_BASE_URL that is not OpenAI or Azure, built-in Bots call the endpoint's Chat
217+
# Completions API, which is what most compatible endpoints serve, unless their model takes tools only
218+
# through the Responses API (gpt-5.6 and later, the -pro models, gpt-5.3-codex, under a gateway's
219+
# `openai/` name too): those call `/responses`, which a gateway or proxy in front of OpenAI serves.
220+
# A gateway that serves the Responses API keeps Responses-only features, such as reasoning summaries,
221+
# for every model with `responses`. `chat` forces Chat Completions for every model; any other value is
222+
# an error when a built-in Bot runs.
223+
# COPILOTKIT_OPENAI_API=responses
211224

212225
# Optional dictation, independent of every agent/chat provider. Set provider, base URL,
213226
# and model together. The endpoint must implement POST /audio/transcriptions under this
@@ -368,6 +381,16 @@ COMPUTER_TOKEN=
368381
# Optional absolute app-owned data root; defaults to the platform's OpenBot user-data directory.
369382
# OPENBOT_LOCAL_COMPUTER_DIR=
370383

384+
# The OpenBot browser: each person's own browser, opened from OpenBot with the Recorder already in it
385+
# and connected. Unset, the supervisor below gives it a computer of its own (on a computer in the cloud
386+
# it reaches the open web, this OpenBot and the Intelligence gateway, nothing inside the deployment);
387+
# the one computer every Bot shares never runs it. Set, it runs on this
388+
# computer instead, as a window on the person's own desktop, while Bots' computers stay where they are:
389+
# OpenBot Desktop points it at its host-side local Chrome computer, called with COMPUTER_TOKEN. The
390+
# Recorder in it reaches OpenBot at OPENBOT_PUBLIC_URL (or BETTER_AUTH_URL), which must be https, or
391+
# http on 127.0.0.1 or [::1] with a port.
392+
# OPENBOT_BROWSER_URL=http://127.0.0.1:4101
393+
371394
# Which Bot this computer belongs to, and therefore which profile directory it uses.
372395
# COMPUTER_BOT_ID=shared
373396

@@ -427,7 +450,9 @@ MANAGED_AGENT_TOKEN=
427450

428451
# One computer per Bot. Unset, every Bot shares the computer at AGENT_COMPUTER_URL, suitable on a
429452
# laptop and explicit about being one shared machine. Set, the supervisor gives each Bot a container
430-
# of its own, with its own /workspace and its own browser profile.
453+
# of its own, with its own /workspace and its own browser profile. A person's own OpenBot browser
454+
# runs only on a computer of its own, so it needs this (or OPENBOT_BROWSER_URL above): on the shared
455+
# computer a Bot's shell could read the person's logins off the disk.
431456
COMPUTER_SUPERVISOR_URL=
432457
# Shared with the supervisor. Not the security boundary, its four verbs are, but it keeps anything
433458
# else that can reach the port from cycling a Bot's computer.

‎.github/workflows/ci.yml‎

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -140,7 +140,8 @@ jobs:
140140
- run: >-
141141
bun test tests/sign-in.test.ts tests/session-cookies.test.ts tests/follows-popup.test.ts
142142
tests/demonstration-live.test.ts tests/webrtc-proxy.test.ts tests/web-bot-auth-browser.test.ts
143-
tests/handoff-page-restore.test.ts tests/enter-text.test.ts
143+
tests/handoff-page-restore.test.ts tests/enter-text.test.ts tests/person-browser.test.ts tests/person-browser-computer.test.ts
144+
tests/screencast-keys-browser.test.ts
144145
working-directory: agent-computer
145146
env:
146147
OPENBOT_COMPUTER_BROWSER: '1'

‎.github/workflows/desktop.yml‎

Lines changed: 14 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,10 +9,10 @@ name: Desktop
99
# it at runtime with an `expect`, so a bad row panics the window rather than failing a type check.
1010
on:
1111
pull_request:
12-
paths: ["desktop/**", "shared/harnesses.json", "shared/marks/**", "package.json", ".github/workflows/desktop.yml"]
12+
paths: ["desktop/**", "shared/harnesses.json", "shared/marks/**", "shared/recorder-extension.json", "package.json", ".github/workflows/desktop.yml"]
1313
push:
1414
branches: [main]
15-
paths: ["desktop/**", "shared/harnesses.json", "shared/marks/**", "package.json", ".github/workflows/desktop.yml"]
15+
paths: ["desktop/**", "shared/harnesses.json", "shared/marks/**", "shared/recorder-extension.json", "package.json", ".github/workflows/desktop.yml"]
1616
workflow_call:
1717
secrets:
1818
OPENBOT_GOOGLE_MODEL_OAUTH_CLIENT_SECRET:
@@ -143,6 +143,18 @@ jobs:
143143
- name: Rust regression tests
144144
run: cargo test --locked --lib --bins
145145
working-directory: desktop/src-tauri
146+
# The binary run as the Recorder's browsers run it: the native messaging host Chrome starts, and
147+
# the install that writes its manifests. The host name and extension id come from
148+
# shared/recorder-extension.json, which the Rust reads at compile time.
149+
- name: Recorder native host tests
150+
run: cargo test --locked --test recorder_host
151+
working-directory: desktop/src-tauri
152+
# Only a release build is a GUI-subsystem executable on Windows, and only a release build proves
153+
# the debug-only test seam is absent.
154+
- name: Recorder native host tests (release)
155+
if: matrix.platform.name == 'windows'
156+
run: cargo test --locked --release --test recorder_host
157+
working-directory: desktop/src-tauri
146158
# Hosted Windows runners are administrators. Exercise setup again with an actual Users-only
147159
# account: DISM's feature reads worked as CI's administrator but refused ordinary app users.
148160
- name: Windows standard-user setup regression

‎.gitignore‎

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -53,3 +53,6 @@ venv/
5353
.pytest_cache/
5454
.ruff_cache/
5555
.mypy_cache/
56+
57+
# The Recorder extension's signing key never enters the repository (Decision 9).
58+
extension/**/*.pem

0 commit comments

Comments
 (0)