🙌 OpenHands: AI-Driven Development
F01 — First run, onboarding and sign-in
What a user sees before the normal app shell. A browser that has never finished or skipped onboarding gets a full-screen onboarding modal on every route: choose an agent, set up the LLM (or ACP credentials), then say hello, which starts the first conversation. In public mode the flow starts with an "Add a backend" step that asks for the server's API key, and a browser with no stored key gets a full-screen API-key screen instead of the app. A one-time telemetry consent modal appears for each local backend. Unknown routes render an in-app "Page not found" page inside the app shell, and the tab title follows the open conversation.
Source: src/root.tsx, src/components/features/onboarding/, src/components/features/analytics/telemetry-consent-banner.tsx, src/components/features/backends/api-key-entry-screen.tsx, src/routes/root-layout.tsx, src/routes/not-found.tsx, src/hooks/use-app-title.ts.
Sub-features
F01.first-run-gate: with noopenhands-onboardedflag in localStorage, any URL (including/conversations) shows onlyfirst-run-onboarding-screenwith the onboarding modal. There is no sidebar. Finishing or skipping sets the flag, and the app stays revealed after a reload.F01.telemetry-consent: on a connected local backend whoseuser_consents_to_analyticsisnull, an elevated "Help improve OpenHands" modal names the backend and host. It has a checked-by-default "Send anonymous usage data" box and "Confirm preferences". Escape does not dismiss it. The choice is saved to backend settings, and the modal does not return after a reload.F01.onboarding-modal: a segmented progress bar (3 steps, or 4 with the backend step) over a sliding rail. Neither Escape nor a click on the backdrop dismisses it. "Skip for now" shows on every step except the last, and Back/Next move between steps.F01.onboarding-backend-step: when no reachable backend exists (public mode), step 0 "Add a backend" prefills the nameLocaland the page origin as host. Next stays disabled until an API key is typed. A wrong key shows "Could not connect to " / "Invalid API key" inline. The right key saves the backend, and the flow collapses to 3 steps on "Choose your agent" with no Back button. The first paint must not raise an error toast. On a local backend that is unreachable on first run, step 0 is "Check your backend" with a Disconnected alert instead.F01.onboarding-choose-agent: radio tiles for OpenHands (preselected), Claude Code, Codex and Gemini CLI, plus Pi and OpenCode on a local backend (#17758; a Cloud backend offers only the first four, and a hidden choice falls back to OpenHands). Next saves the agent kind with a "Settings saved" toast.F01.onboarding-setup-llm: on a first run the embedded LLM form is prefilled withopenai/gpt-5.6-sol. Typing a custom model and key then Next saves them. On a local backend Next saves the form as an LLM profile named after the model (deepseek/deepseek-flash→deepseek-flash) and activates it, without writing the raw LLM settings.F01.onboarding-repeat-endpoint: onboarding again (a new browser, the same backend) fills the form from the active LLM profile, or from the one thedefaultagent profile points at, model included. The All view prefills its Base URL and key even when the raw LLM settings hold another Base URL. Next without changes keeps that profile and saves no copy. Changing only the model creates a profile that keeps that Base URL and key, and the say-hello conversation reaches that endpoint.F01.onboarding-acp-secrets: choosing an ACP agent swaps the LLM step for "Add your API keys" with that provider's fields. When the host CLI is already logged in, a green "already signed in" banner makes them optional. OpenCode's fields (OPENCODE_AUTH_CONTENT,OPENCODE_API_KEY) are always optional; Pi's two fields (PI_AUTH_JSON,ANTHROPIC_API_KEY) are each labelled Optional, but without a host login at least one of them is needed: Next stays disabled under a warning, readable in light themes, until either is filled. Back returns to the agent step.F01.onboarding-say-hello: the last step has a prefilled message. An empty message disables send. Enter or the send button creates a conversation, navigates to/conversations/<id>and completes onboarding, and the agent replies. A recommended-automations list sits under an "Or" separator, and a "Skip Getting Started checklist" box sits below the modal.F01.onboarding-hello-close: the last step has Back and Close instead of "Skip for now". Close dismisses the modal without creating a conversation, sets theopenhands-onboardedflag and leaves the app shell on/.F01.onboarding-recommended-automation: picking a card under "Start from a proven workflow" on the last step completes onboarding too. A card with its own setup form (for example "Daily news digest") navigates to/automations/new/<id>and opens that form. Nothing is created until the form is submitted.F01.onboarding-skip-checklist: the "Skip Getting Started checklist" box under the last step hides the sidebar Getting started card (F02) once the app is revealed. It is the same per-browser setting as the Settings → Application switch, and it is saved as soon as you tick it, preview mode included.F01.onboarding-skip: "Skip for now" closes the modal and sets the flag. In public mode, skipping before a key is stored lands on the API-key screen; skipping after the backend step lands in the app.F01.onboarding-preview:?previewOnboardingStep=0..3on any route opens the modal (data-preview="true") on that phase, even after onboarding. Values outside 0-3 are ignored. Skip and Close do nothing, so leave by navigating to a URL without the parameter.F01.onboarding-phone: every onboarding step fits a 390 px viewport without horizontal overflow.F01.api-key-entry: in public mode with no usable key (onboarding skipped, the last backend removed, or a stored key the server now rejects), a full-screen "Add a backend" card appears. The host is read-only and set to the origin, and Connect stays disabled until the name and key are filled. A wrong key shows "Invalid API key. Please check the key and try again." The right key opens the app shell, which survives a reload, and the consent modal then names the new backend.F01.onboarding-cloud-login: the backend step's "OpenHands Cloud" column has "Connect to OpenHands" (device-flow login) and an "Advanced" toggle. The toggle reveals a Cloud Host field (placeholderhttps://app.all-hands.dev) for self-hosted Cloud deployments. The login itself is blocked: it needs an OpenHands Cloud account.F01.route-error-boundary: an unknown URL renders a "Page not found" page inside the app shell, with the sidebar and a Home link back to/, and logs no page errors.F01.document-title: the tab title isOpenHands. On a conversation it is<status emoji> <conversation title> | OpenHands.F01.bootstrap-loading: a centered spinner card shows while/server_infoloads (transient, not-run).F01.locked-cloud-first-run: on a canvas locked to an OpenHands Cloud host, first run shows only the Cloud login (an "OpenHands Cloud" card with Connect to OpenHands) without a progress bar or close button. After the device-flow login the app opens on Home with no onboarding modal: a locked canvas never opens the agent/LLM onboarding flow, because the Cloud app owns that setup.F01.cookie-auth-redirect: OHE cookie-auth deployments probe the main-app session behind a spinner and redirect to its/loginwhen it is missing (blocked).
How to get to it (user POV)
- First run: open any URL of the app in a browser profile that has never onboarded. Every
control-openhands launch --newstarts with a fresh browser profile, andcontrol-openhands browser resetgives the same run a fresh one again. Backend-side state (consent answer, LLM profile, agent kind) stays. - Public mode:
control-openhands launch --new --publicserves the UI without the injected key, so step 0 is "Add a backend". The API-key screen appears after skipping onboarding, after removing the last backend under backend selector → Manage backends (see F25), or when the server's key changes under a stored one. - Telemetry consent: appears by itself over onboarding or the app. It is changed later in Settings → Application (see F16).
- Onboarding preview: direct URL with
?previewOnboardingStep=N, for example/?previewOnboardingStep=3or/settings/app?previewOnboardingStep=3. - Last onboarding step: Close, a recommended-automation card, or the "Skip Getting Started checklist" box below the modal.
- Not-found page: any unknown direct URL, such as
/this-route-does-not-exist. Its Home button returns to/. - There is no command-menu entry or keyboard shortcut for onboarding.
Driving it with control-openhands
Preconditions:
- A fresh run you launched yourself:
control-openhands launch --new(local) orcontrol-openhands launch --new --public, thenexport OH_VERIFY_RUN=<run from the launch JSON>andcontrol-openhands doctor. Do not runcontrol-openhands onboard --skip: it consumes the first-run state this family tests. - The model-backed say-hello check needs a DeepSeek key in
DEEPSEEK_API_KEY. It is typed into the onboarding form with--value-env, which replacesllm preset deepseekhere. - Each fresh browser profile walks first run once;
control-openhands browser resetstarts another first run on the same stack. Local and public mode still need separate runs (launch --newandlaunch --new --public): the local walk, public run A (backend step walked) and public run B (onboarding skipped). Stop each one withcontrol-openhands stopwhen done. - Desktop viewport unless stated.
Local run (launch --new):
- First-run gate (
F01.first-run-gate). Runcontrol-openhands browser goto /conversationsandcontrol-openhands browser testids. The list includesfirst-run-onboarding-screen,onboarding-modalandtelemetry-consent-form(the portaled consent form and its Confirm button are listed right afterfirst-run-onboarding-screen, beforeonboarding-modal);root-layoutis absent. Runcontrol-openhands browser screenshot --feature F01.first-run-gate --name fresh. The screenshot shows the consent modal over "Choose your agent". - Consent (
F01.telemetry-consent). Runcontrol-openhands browser snapshot 'testid=telemetry-consent-form'. It readsThis preference is saved for the local backend “Local” at http://127.0.0.1:<port>.and the checkbox is[checked]. Runcontrol-openhands browser press Escapeandcontrol-openhands browser count 'testid=telemetry-consent-form'; the count stays1. Runcontrol-openhands browser uncheck 'testid=telemetry-consent-form >> role=checkbox',control-openhands browser click 'testid=confirm-telemetry-preferences',control-openhands browser wait 'testid=telemetry-consent-form' --state detached, thencontrol-openhands api GET /api/settings --pick misc_settings.app_preferences.user_consents_to_analyticsisfalse. Runcontrol-openhands browser reloadandcontrol-openhands browser count 'testid=telemetry-consent-form'; the count is0. The dialog's description text reads at least 4.5:1 in every theme. Known failure (reproduced 2026-10-16, #18539): in Light+ and Solarized Light it stays a fixed#a3a3a3, measuring 2.27:1 and 2.06:1 on the modal surface. - Backend down on first run (
F01.onboarding-backend-step). Runcontrol-openhands browser reset,control-openhands service stop agent-server,control-openhands browser goto /andcontrol-openhands browser wait 'testid=onboarding-backend-disconnected' --timeout 20000. The modal shows four progress steps; step 0 "Check your backend" has the alertDisconnected/Update the connection details below and save to retry.above the prefilled Local form. The alert text reads at least 4.5:1 in all five themes (arrange each theme withcontrol-openhands browser eval "localStorage.setItem('openhands-color-theme','<id>')"andbrowser reload). A backend marked down is not re-probed: aftercontrol-openhands restartthe alert stays until Next re-tests the connection and moves on to Choose your agent. Restore withlocalStorage.removeItem('openhands-color-theme'); a lateronboard --skipcloses the modal. - Modal shell (
F01.onboarding-modal). Runcontrol-openhands browser press Escape,control-openhands browser count 'testid=onboarding-modal'(1) andcontrol-openhands browser attr 'testid=onboarding-modal' data-current-step(0). Runcontrol-openhands browser mouse-click 40 40on the bare backdrop; the count stays1and the step is unchanged.onboarding-progress-step-0..2exist and-3does not, because the backend is healthy. - Choose agent (
F01.onboarding-choose-agent). Runcontrol-openhands browser attr 'testid=onboarding-agent-option-openhands' aria-checked(true) andcontrol-openhands browser count 'testid=onboarding-agent-back'(0). Then runcontrol-openhands browser click 'testid=onboarding-agent-option-codex'andcontrol-openhands browser attr 'testid=onboarding-agent-option-codex' aria-checked(true), and switch back withcontrol-openhands browser click 'testid=onboarding-agent-option-openhands'.control-openhands browser snapshot 'testid=onboarding-step-choose-agent'lists six radios: OpenHands, Claude Code, Codex, Gemini CLI,Pi The open source Pi coding agent.andOpenCode The open source OpenCode coding agent.(onboarding-agent-option-pi,-opencode). Runcontrol-openhands browser click 'testid=onboarding-agent-next'andcontrol-openhands browser wait-text 'Settings saved';data-current-stepbecomes1. Runcontrol-openhands browser click 'testid=onboarding-llm-back';data-current-stepis0. Clicktestid=onboarding-agent-nextagain. - LLM step (
F01.onboarding-setup-llm). Runcontrol-openhands browser snapshot 'testid=onboarding-step-setup-llm'. It showsSet up your LLMand Basic tab comboboxesOpenAI/gpt-5.6-sol. Runcontrol-openhands browser click 'testid=onboarding-step-setup-llm >> testid=sdk-section-advanced-toggle'andcontrol-openhands browser value 'testid=onboarding-step-setup-llm >> testid=llm-custom-model-input'(openai/gpt-5.6-sol). Then runcontrol-openhands browser fill 'testid=onboarding-step-setup-llm >> testid=llm-custom-model-input' deepseek/deepseek-flash,control-openhands browser fill 'testid=onboarding-step-setup-llm >> testid=llm-api-key-input' --value-env DEEPSEEK_API_KEYandcontrol-openhands browser click 'testid=onboarding-llm-next'. Wait withcontrol-openhands browser wait '[data-testid=onboarding-modal][data-current-step="2"]'. Second view:control-openhands llm showlists profiledeepseek-flash(deepseek/deepseek-flash,api_key_set: true) asactive_profile. - Say hello (
F01.onboarding-say-hello). Runcontrol-openhands browser count 'testid=onboarding-skip'(0on the last step),control-openhands browser fill 'testid=onboarding-hello-input' ''andcontrol-openhands browser enabled 'testid=onboarding-hello-input-form >> testid=submit-button'(false). Then runcontrol-openhands browser fill 'testid=onboarding-hello-input' 'Reply with only the word hello. Do not run any tools.'(enabledturnstrue),control-openhands browser press Enter --selector 'testid=onboarding-hello-input'andcontrol-openhands browser wait-url '/conversations/[0-9a-f-]+'. Take<id>fromcontrol-openhands browser url. Runcontrol-openhands conversation wait <id> --timeout 180andcontrol-openhands conversation events <id> --kinds MessageEvent. The agent message ishello, andcontrol-openhands browser count 'testid=onboarding-modal'is0.control-openhands browser eval "localStorage.getItem('openhands-onboarded')"returns"1". Aftercontrol-openhands browser reloadandcontrol-openhands browser goto /,testid=first-run-onboarding-screenandtestid=onboarding-modalboth count0. - Tab title (
F01.document-title). On/runcontrol-openhands browser url;titleisOpenHands. On/conversations/<id>(after a reload, once the title is generated) the title is<emoji> <conversation title> | OpenHands, for example✅ … | OpenHandsfor a finished conversation. - Preview (
F01.onboarding-preview). Runcontrol-openhands browser goto '/?previewOnboardingStep=3', thencontrol-openhands browser attr 'testid=onboarding-modal' data-preview(true) andcontrol-openhands browser count 'testid=onboarding-step-say-hello'(1). Step2shows the LLM slide. Steps0and1both show "Choose your agent" when the backend is healthy./?previewOnboardingStep=9renders no modal.control-openhands browser goto '/settings/app?previewOnboardingStep=3'works too. Runcontrol-openhands browser goto '/?previewOnboardingStep=1'andcontrol-openhands browser click 'testid=onboarding-skip'; the modal stays (count1).control-openhands browser goto /shows no modal. - Skip checklist box (
F01.onboarding-skip-checklist). Runcontrol-openhands browser goto /conversationsandcontrol-openhands browser count 'testid=sidebar-onboarding-checklist'(1). Runcontrol-openhands browser goto '/?previewOnboardingStep=3', thencontrol-openhands browser click 'text=Skip Getting Started checklist'.control-openhands browser eval "document.querySelector('[data-testid=onboarding-skip-getting-started-checklist]').checked"istrue. Runcontrol-openhands browser goto /conversationsandcontrol-openhands browser reload; the checklist count is0. On/settings/app,control-openhands browser eval "document.querySelector('[data-testid=show-getting-started-checklist-switch]').checked"isfalse. Restore it: go back to/?previewOnboardingStep=3, where the box now readstrue, click the same text again, and the checklist count on/conversationsis1. - Phone (
F01.onboarding-phone). Runcontrol-openhands browser viewport phone. Then for N in 1, 2 and 3 runcontrol-openhands browser goto '/?previewOnboardingStep=N',control-openhands browser bbox 'testid=onboarding-modal'andcontrol-openhands browser screenshot --feature F01.onboarding-phone --name step-N. The modal is 351 px wide withinsideViewporttrueandpageHorizontalOverflowfalse, and Back/Next or Back/Close are visible. Return withcontrol-openhands browser viewport desktop. - Error page (
F01.route-error-boundary). Runcontrol-openhands browser errors --clear,control-openhands browser goto /this-route-does-not-existandcontrol-openhands browser snapshot 'testid=not-found-screen'. It showsheading "Page not found", the paragraphThis address does not match any page. Check the URL, or go back to the home page.andlink "Home"(/url: /).control-openhands browser count 'aside[data-collapsed]'is1: the sidebar stays.control-openhands browser screenshot --feature F01.route-error-boundary --name not-foundshows the message and the Home button centered beside the sidebar.control-openhands browser errors --app-onlyreportspageErrors0andappErrors0. Runcontrol-openhands browser click 'testid=not-found-home-link' --expect-url '/$';control-openhands browser count 'testid=home-screen'is1. - Onboarding again with the saved endpoint (
F01.onboarding-repeat-endpoint). Two more first runs on this stack, both through the All view, which shows the Base URL field. Pass 1 saves a custom endpoint:control-openhands browser reset,control-openhands browser goto /,control-openhands browser click 'testid=onboarding-agent-next',control-openhands browser wait '[data-testid=onboarding-modal][data-current-step="1"]',control-openhands browser click 'testid=onboarding-step-setup-llm >> testid=sdk-section-all-toggle'andcontrol-openhands browser value 'testid=onboarding-step-setup-llm >> testid=base-url-input'(empty). Runcontrol-openhands browser fill 'testid=onboarding-step-setup-llm >> testid=llm-custom-model-input' openai/deepseek-chat,control-openhands browser fill 'testid=onboarding-step-setup-llm >> testid=base-url-input' https://api.deepseek.com/v1,control-openhands browser fill 'testid=onboarding-step-setup-llm >> testid=llm-api-key-input' --value-env DEEPSEEK_API_KEY,control-openhands browser click 'testid=onboarding-llm-next'andcontrol-openhands browser wait '[data-testid=onboarding-modal][data-current-step="2"]'.control-openhands llm showlistsdeepseek-chat(openai/deepseek-chat,base_urlhttps://api.deepseek.com/v1) asactive_profile. Say hello as above (browser fill 'testid=onboarding-hello-input' 'Reply with only the word hello. Do not run any tools.',browser press Enter --selector 'testid=onboarding-hello-input',browser wait-url '/conversations/[0-9a-f-]+'), thencontrol-openhands conversation wait <id> --timeout 180isfinishedand the agentMessageEventishello. Pass 2 types the same endpoint again: repeat the steps up to the All view.browser value 'testid=onboarding-step-setup-llm >> testid=base-url-input'is nowhttps://api.deepseek.com/v1, the saved value. Fill the modelopenai/deepseek-v4-flash(a DeepSeek alias, so the new profile gets its own name), the same Base URL and the key, then Next and wait for step 2 (control-openhands browser screenshot 'testid=onboarding-step-setup-llm' --feature F01.onboarding-repeat-endpoint --name second-pass-formbefore Next). Expected:control-openhands llm showlistsdeepseek-v4-flashwithbase_urlhttps://api.deepseek.com/v1, and the say-hello conversation finishes withhello. Raw LLM settings that disagree with the active profile do not reach the form. To check it, arrange them before pass 2 withcontrol-openhands api PATCH /api/settings --write --data '{"agent_settings_diff":{"llm":{"base_url":"http://127.0.0.1:9/stale-raw-settings"}}}'.browser value 'testid=onboarding-step-setup-llm >> testid=base-url-input'still readshttps://api.deepseek.com/v1. Fill only the model, runbrowser network --clearbefore Next andbrowser network --filter '/api/(settings|profiles)'after it: the rows are the profilePOSTand its/activate, with noPATCH /api/settings.deepseek-v4-flashkeeps the DeepSeek Base URL, and the say-hello conversation finishes withhello(verified 2026-10-09). Known failure (reproduced 2026-10-12 and 2026-10-13, #18302): Next replaces a profile that already has the model-derived name. Arrange one before pass 2 withcontrol-openhands llm set --profile deepseek-v4-flash --model openai/deepseek-v4-flash --base-url http://127.0.0.1:9/other-endpoint --api-key-env DEEPSEEK_API_KEY --no-activate --no-validate. After pass 2's Next,browser network --filter '/api/profiles'showsPOST /api/profiles/deepseek-v4-flash, andcontrol-openhands llm showlistsdeepseek-v4-flashwithbase_urlhttps://api.deepseek.com/v1: its own Base URL is gone, and nothing warned. Expected: the existing profile is kept, under a name that does not collide or after a confirmation. Restore: runcontrol-openhands llm preset deepseek. It also points thedefaultagent profile back atdeepseek-flash: its output hasrepointedfromdeepseek-v4-flashtodeepseek-flash. Thencontrol-openhands api DELETE /api/profiles/deepseek-v4-flash --writeand.../deepseek-chat --writeanswer200. Delete the two say-hello conversations with Clean up's steps. - Clean up. Delete the hello conversation from its header menu:
control-openhands browser goto /conversations/<id>(the hello conversation's<id>from Say hello; the Error page bullet left/),control-openhands browser click 'testid=chat-pane-header >> testid=ellipsis-button',control-openhands browser click 'testid=conversation-name-context-menu >> testid=delete-button',control-openhands browser click 'role=button[name="Confirm Delete"]'.control-openhands conversation listthen showscount0.
Public run A (launch --new --public), backend step walked:
- Backend step (
F01.onboarding-backend-step). Runcontrol-openhands browser goto /,sleep 12(gives a late toast time to appear),control-openhands browser toasts --history,control-openhands browser screenshot --feature F01.onboarding-backend-step --name freshandcontrol-openhands browser snapshot 'testid=onboarding-step-check-backend'. The toast history is[], and the screenshot shows no toast. The snapshot showsAdd a backend, nameLocal, hosthttp://127.0.0.1:<port>, TypeLocalchecked,button "Next" [disabled], and an "OpenHands Cloud" column with "Connect to OpenHands". Runcontrol-openhands browser fill 'testid=onboarding-backend-api-key' qa-wrong-key,control-openhands browser click 'testid=onboarding-backend-next'andcontrol-openhands browser text 'testid=onboarding-backend-error'. It readsCould not connect to http://127.0.0.1:<port>/Invalid API key, anddata-current-stepstays0. Runcontrol-openhands browser fill 'testid=onboarding-backend-api-key' --value-file "$OH_VERIFY_RUN/private/session-key",control-openhands browser click 'testid=onboarding-backend-next'andcontrol-openhands browser wait 'testid=telemetry-consent-form'. The modal is on "Choose your agent" withdata-current-step0,testid=onboarding-progress-step-3andtestid=onboarding-agent-backboth count0, and the consent form names“Local”. Answer it withcontrol-openhands browser click 'testid=confirm-telemetry-preferences'. - ACP credentials (
F01.onboarding-acp-secrets). Runcontrol-openhands browser click 'testid=onboarding-agent-option-claude-code',control-openhands browser click 'testid=onboarding-agent-next'andcontrol-openhands browser wait-text 'Settings saved'. Then runcontrol-openhands browser snapshot 'testid=onboarding-step-setup-acp-secrets'. It showsAdd your API keyswithCLAUDE_CODE_OAUTH_TOKEN,ANTHROPIC_API_KEYandANTHROPIC_BASE_URL, andcontrol-openhands api GET /api/settingsshows"agent_kind": "acp". Runcontrol-openhands browser click 'testid=onboarding-acp-secrets-back',control-openhands browser click 'testid=onboarding-agent-option-openhands'andcontrol-openhands browser click 'testid=onboarding-agent-next'.testid=onboarding-step-setup-llmis shown andagent_kindis back toopenhands. - Pi and OpenCode credentials (
F01.onboarding-acp-secrets). The previous bullet ends on the LLM step: runcontrol-openhands browser click 'testid=onboarding-llm-back'to return to the agent step, thencontrol-openhands browser click 'testid=onboarding-agent-option-opencode',control-openhands browser click 'testid=onboarding-agent-next',browser wait-text 'Settings saved'andbrowser snapshot 'testid=onboarding-step-setup-acp-secrets':OPENCODE_AUTH_CONTENT OptionalandOPENCODE_API_KEY Optional, andcontrol-openhands browser enabled 'testid=onboarding-acp-secrets-next'istrue. Back, then the same withonboarding-agent-option-pi:This backend has no host login, so credentials are required to run Pi.,PI_AUTH_JSON OptionalandANTHROPIC_API_KEY Optional(either one is enough), Nextfalsewhile both are empty, andbrowser text 'testid=onboarding-acp-secrets-blocked'readsAdd the credentials above to continue, or sign in on the backend.Its colour,browser eval "getComputedStyle(document.querySelector('[data-testid=onboarding-acp-secrets-blocked]')).color", isrgb(201, 185, 116)in OpenHands-Neutral andrgb(125, 93, 8)in Light+ (arrange withbrowser eval "localStorage.setItem('openhands-color-theme','light-plus')"andbrowser reload, which returns to the agent step with OpenHands selected again, so clickonboarding-agent-option-piandonboarding-agent-nextonce more before reading the colour; #18333). Restore the theme withlocalStorage.removeItem, go Back, choose OpenHands and Next (agent_kindback toopenhands). - Skip into the app (
F01.onboarding-skip). Runcontrol-openhands browser click 'testid=onboarding-skip',control-openhands browser wait 'testid=root-layout',control-openhands browser reload,control-openhands browser count 'testid=onboarding-modal'(0) andcontrol-openhands browser count 'testid=api-key-entry-screen'(0). - Last backend removed (
F01.api-key-entry). Runcontrol-openhands browser click 'testid=backend-selector',control-openhands browser click 'testid=manage-backends-menu-item',control-openhands browser click 'testid=manage-backends-remove-Local'andcontrol-openhands browser click 'testid=confirmation-modal >> testid=confirm-button'.control-openhands browser wait 'testid=api-key-entry-screen'succeeds. Restore with the Connect recipe below.
Public run B (launch --new --public), onboarding skipped:
- Skip to API-key screen (
F01.onboarding-skip,F01.api-key-entry). Runcontrol-openhands browser goto /,control-openhands browser click 'testid=onboarding-skip'andcontrol-openhands browser wait 'testid=api-key-entry-screen'. Aftersleep 12,control-openhands browser toasts --historyis[]: the screen raises no error toast. Runcontrol-openhands browser reload,control-openhands browser wait 'testid=api-key-entry-screen',sleep 12andcontrol-openhands browser toasts --historyagain: still[]when the API-key screen is the first paint (the toast these checks guard against readsNo backend is configured.;control-openhands browser count 'text=No backend is configured'is0). Runcontrol-openhands browser value 'testid=api-key-entry-host'(the origin; the field is disabled) andcontrol-openhands browser enabled 'testid=api-key-entry-submit'(false). Fill only the key withcontrol-openhands browser fill 'testid=api-key-entry-api-key' qa-wrong-key;enabledis stillfalsebecause Host Name is required. Runcontrol-openhands browser fill 'testid=api-key-entry-name' 'QA Public'(enabledturnstrue),control-openhands browser click 'testid=api-key-entry-submit'andcontrol-openhands browser text 'testid=api-key-entry-status'. It readsInvalid API key. Please check the key and try again., the screen stays, andcontrol-openhands browser screenshot --feature F01.api-key-entry --name wrong-keyshows the red line above Connect. While the screen is still up, runcontrol-openhands browser viewport phoneandcontrol-openhands browser bbox 'testid=api-key-entry-form'. It givesinsideViewporttrueandpageHorizontalOverflowfalse. Return withcontrol-openhands browser viewport desktop. - Connect (
F01.api-key-entry). Runcontrol-openhands browser fill 'testid=api-key-entry-name' 'QA Public',control-openhands browser fill 'testid=api-key-entry-api-key' --value-file "$OH_VERIFY_RUN/private/session-key",control-openhands browser click 'testid=api-key-entry-submit'andcontrol-openhands browser wait 'testid=api-key-entry-screen' --state detached.testid=root-layoutis shown, the consent form names“QA Public”, andcontrol-openhands browser snapshot 'testid=backend-selector'showscombobox "QA Public". Aftercontrol-openhands browser reload,testid=api-key-entry-screencounts0andtestid=root-layoutcounts1. - Stale key re-prompt (
F01.api-key-entry). Answer consent if it is open (control-openhands browser click 'testid=confirm-telemetry-preferences'). Runcontrol-openhands restart --rotate-key(rotatedKeytrue), thencontrol-openhands browser reloadandcontrol-openhands browser wait 'testid=api-key-entry-screen';testid=root-layoutcounts0. Connect again as above with the new$OH_VERIFY_RUN/private/session-key. After a reload,testid=root-layoutcounts1, andcontrol-openhands browser eval "JSON.parse(localStorage.getItem('openhands-backends')).length"is1, so no duplicate backend is added. - Close on the last step (
F01.onboarding-hello-close). Runcontrol-openhands browser resetandcontrol-openhands browser goto /. Walk to the last step:control-openhands browser fill 'testid=onboarding-backend-api-key' --value-file "$OH_VERIFY_RUN/private/session-key",control-openhands browser click 'testid=onboarding-backend-next',control-openhands browser wait 'testid=onboarding-step-choose-agent'(consent does not return: the backend already has an answer),control-openhands browser click 'testid=onboarding-agent-next'andcontrol-openhands browser wait '[data-testid=onboarding-modal][data-current-step="1"]'. Then fill the key withcontrol-openhands browser fill 'testid=onboarding-step-setup-llm >> testid=llm-api-key-input' --value-env DEEPSEEK_API_KEY, opentestid=sdk-section-advanced-toggleand fillllm-custom-model-inputwithdeepseek/deepseek-flashas in the LLM step. Runcontrol-openhands browser click 'testid=onboarding-llm-next'andcontrol-openhands browser wait '[data-testid=onboarding-modal][data-current-step="2"]'. Checkcontrol-openhands conversation list(count0), then runcontrol-openhands browser click 'testid=onboarding-hello-close'andcontrol-openhands browser wait 'testid=onboarding-modal' --state detached.testid=root-layoutcounts1, the URL is/andlocalStorage.getItem('openhands-onboarded')is"1".conversation liststill showscount0, and afterbrowser reloadthe modal count is0. - Recommended automation (
F01.onboarding-recommended-automation). Runcontrol-openhands browser reset,control-openhands browser goto /, and walk to the last step as above (the LLM step's Next works without retyping the key once the profile is saved). Runcontrol-openhands browser click 'testid=recommended-automation-card-news-digest' --expect-url '/automations/new/news-digest(\?|$)'.testid=onboarding-modalcounts0,openhands-onboardedis"1", and the "Daily news digest" setup form (testid=setup-dialog) is open. Leave without creating anything:control-openhands browser click 'testid=setup-dialog-close'andcontrol-openhands browser wait 'testid=setup-dialog' --state detached(the URL becomes/).control-openhands api GET /api/automation/v1shows"total": 0. - Cloud login column (
F01.onboarding-cloud-login). Runcontrol-openhands browser reset,control-openhands browser goto /andcontrol-openhands browser click 'testid=onboarding-backend-advanced-toggle'.browser attr 'testid=onboarding-backend-advanced-toggle' aria-expandedistrue, andbrowser attr 'testid=onboarding-backend-cloud-host' placeholderishttps://app.all-hands.dev.browser text 'testid=onboarding-backend-advanced-panel'mentions self-hosted Cloud deployments. Do not clicktestid=onboarding-backend-login-button: the device-flow login is blocked without an OpenHands Cloud account.
Not reachable locally:
- Locked Cloud first run (
F01.locked-cloud-first-run). Needs an OpenHands Cloud account (the F25 Cloud precondition; without it, blocked) and a locked frontend, whichlaunchcannot start: serve this checkout's build by hand on a free port,Q=$OH_VERIFY_RUN/private/f01-locked; mkdir -p $Q; nohup node scripts/static-server.mjs --dir build --port 18990 --host 127.0.0.1 --lock-to-cloud https://app.all-hands.dev > $Q/static.log 2>&1 & echo $! > $Q/pid(curl -s http://127.0.0.1:18990/ | grep -o '__AGENT_CANVAS_LOCK_TO_CLOUD__[^;]*'prints the host). Runcontrol-openhands browser goto http://127.0.0.1:18990/ --allow-externalandcontrol-openhands browser wait 'testid=add-backend-login-button': the page (browser text body) holds onlyOpenHands Cloud,Connect instantly to OpenHands Cloud to use Agent Canvasand Connect to OpenHands, with no progress bar or close button (the card is the portaledtestid=onboarding-modal;first-run-onboarding-screenitself is empty) (browser screenshot --feature F01.locked-cloud-first-run --name first-run). Approve as in F25's Cloud backend bullet (browser click 'testid=add-backend-login-button',browser wait-tab 'oauth/device/verify',browser tab 1,browser click 'role=button[name="Authorize Device"]',browser tab 0);browser wait 'testid=root-layout' --timeout 60000passes on/, and a few seconds laterbrowser count 'testid=onboarding-modal'andbrowser count 'testid=first-run-onboarding-screen'are both0. The same page drives F02's locked-Cloud checklist check andF25.locked-cloud. Clean up:kill -TERM $(cat $Q/pid)and delete this login'sDevice Link Access Key (<code>)on the Cloud API keys page as F25 describes. - Cookie-auth redirect (
F01.cookie-auth-redirect). Blocked: needs an OHE cookie-auth deployment. - Bootstrap spinner (
F01.bootstrap-loading). Blocked on the 2026-10-09 run: the agent attempted a fresh first paint, but the spinner lasted under a second on the healthy stack; slowing/server_infowould require request interception rather than the real service response.
Gotchas
- Use a fresh run or
browser resetfor every first-run check, and neveronboard --skipfirst. The browser profile lives in<run>/private/browser-profile.browser resetclears only the browser, so the server keeps the consent answer (the consent modal does not return), the LLM profile and the agent kind. control-openhands loginpasses both key prompts: the onboarding backend step, and the API-key screen, where it names the backendLocalwhen Host Name is empty (after Skip and afterrestart --rotate-key, with no duplicate backend). Use it when the screen is only in the way. To check the screen itself (the disabled Connect, the wrong-key line, a chosen name), use the explicit fills above.- Inactive onboarding slides stay mounted and are translated off-screen. Plain
browser testidslists only the active slide, butcountandwaitstill find handles on the others. Assert the active step withdata-current-step, for examplebrowser wait '[data-testid=onboarding-modal][data-current-step="2"]'. Thetestid=selector cannot carry attribute filters. - Slide indices renumber. After the public backend step succeeds, "Choose your agent" becomes index
0and has no Back.previewOnboardingStepcounts phases with the backend step included, so0and1look identical on a healthy backend. - The consent modal (z-70) sits over the onboarding modal, and clicks at the screen center land on agent tiles once it closes. A forced click on
first-run-onboarding-screenselected Codex. Check backdrop non-dismissal withbrowser mouse-click 40 40, a corner outside the modal. - The say-hello default message ("Create a basic webpage…") makes the agent work for a while. Replace it with a tiny prompt to keep model cost down.
- On a local backend, Next on the LLM step also points the
defaultagent profile at the profile it just created. Activating another LLM profile does not move that pointer, and while it stays, deleting the onboarding profile answers409LLM profile is referenced by 1 agent profile(s): default.control-openhands llm preset deepseekmoves it todeepseek-flashand reportsrepointed;llm setdoes not. In the UI, editdefaultin Settings → Agents and pick the profile intestid=agent-profile-llm-selector. - On a local backend the LLM step edits an LLM profile and never reads or writes the raw LLM settings (#18218). It takes the active profile, else the one the
defaultagent profile points at (the Agent Server's backfill of an older install's raw settings), else a fresh one with the default model. It reads the profile only once the backend's health check reports it connected, so a step mounted while the Agent Server was down fills in after it comes back (verified 2026-10-12 withcontrol-openhands service stop agent-server, thenrestart). If the profiles cannot be read it showsFailed to load existing profile. Please try again.(testid=onboarding-llm-load-error) with Retry (testid=onboarding-llm-load-retry) and Next disabled. Next without changes only sendsPOST /api/profiles/<name>/activate. - The tab title prefixes a status emoji to the stored title. A generated title that already starts with an emoji therefore shows twice (
✅ ✅ Reply hello without tools | OpenHands). Right after launch the title isConversation <id prefix>until a reload picks up the generated one. - Right after Next, the ACP step reads "Checking for an existing Claude Code login…" with Next disabled. Wait for
testid=onboarding-acp-auth-detectedbefore reading the banner. The "already signed in" banner depends on the host's CLI login. On a clean CI machine the fields become required, and Next is blocked until they are filled. - Choosing an ACP agent saves
agent_kind: acpimmediately. Re-choose OpenHands before leaving, or later conversations in the run use the ACP agent. - In preview mode, Skip and Close are inert. The LLM slide shows
gpt-5.6-soleven when another model is saved, so do not read it as data loss. browser toasts --historylists every status or alert text (toasts and alert banners) seen since the page loaded, including success toasts and progress lines such asChecking your backend connection…. Read it on a page that has just loaded (or reloaded) to check that no error toast appeared. A page with a standing banner never reads[]: the app shell of a backend with no LLM lists theYour LLM isn't set up yetalert.- Known issue #16601 (
F01.telemetry-consent): Analytics consent reappears sporadically. Live prerequisite: The multi-day trigger and backend consent response when the modal returns; opted-in localStorage alone does not reproduce it. - Known issue #16526 (
F01.onboarding-choose-agent): 403 error when selecting an agent in the onboarding agent selection modal. Live prerequisite: An authenticated hosted Cloud account with the reported organization-membership mismatch during onboarding.