π OpenHands: AI-Driven Development
F10 β LLM profiles
An LLM profile is a named model configuration: provider and model (or a custom model and base URL), an API key or a ChatGPT subscription, an optional provider-connection link, and every advanced LLM option. Under Settings β LLM a user lists profiles (grouped by provider connection once any are linked), adds and edits them in an embedded form whose Save first runs a one-token validation call, renames, duplicates, deletes and sets one as Default, and bulk-adds models from a provider. The Default profile is the model new conversations run on. Provider connections themselves (add, edit, delete) are F11.
Source: src/routes/llm-settings.tsx, src/components/features/settings/llm-profiles/, src/components/shared/modals/settings/model-selector.tsx, src/components/features/settings/settings-input.tsx, src/components/features/settings/llm-settings/openai-subscription-auth-card.tsx, src/components/features/settings/sdk-settings/, src/constants/llm-provider-connection.ts, src/api/profiles-service/profiles-service.api.ts.
Sub-features
F10.list: the "Available Profiles" list shows each row's name, model, aDefaultbadge on the active profile and a...menu, sorted by name; reachable from the sidebar, the direct URL and the command menu.F10.list-empty: with no profiles the list readsNo profiles saved yet. Add a profile to save your LLM configurations.and both Add buttons stay available.F10.list-states: a spinner shows while profiles load; a load failure showsFailed to load profilesin the theme's error colour.F10.list-grouped: once any profile links to a provider connection, rows group under the connection's name, with unlinked rows last underNot linked; with no linked rows the list is flat again.F10.broken-link: a profile whose linked connection no longer exists shows a warningBroken linkbadge whose tooltip says to edit the profile to re-link it; its editor offers the orphaned id in the Provider connection selector so it can be cleared.F10.actions-menu: the row menu offers Edit, Rename, Duplicate, Set as default (disabled on the Default row) and Delete; it focuses Edit on open (mouse or Enter), arrows cycle over the enabled items (skipping a disabled Set as default), and Escape, Tab or an outside click close it.F10.set-default: Set as default toastsSwitched to profile "<name>", moves the badge, persists and becomes the agent's active LLM; thedefaultagent profile's LLM follows it.F10.duplicate: Duplicate saves<name>-copy, then<name>-copy-1, with the same model and stored key; the copy is not Default.F10.rename: the Rename modal is prefilled and focused; invalid names disable Rename; an unchanged name or Cancel just closes; Enter submits; success toasts and persists, and the Default badge follows a renamed default.F10.rename-conflict: renaming onto an existing name is refused with the server's message (Profile '<name>' already exists) and the modal stays open.F10.delete: Delete asksAre you sure you want to delete the profile "<name>"? This action cannot be undone.with Cancel focused; Cancel keeps the row, Delete removes it with a toast.F10.delete-default: deleting the Default profile promotes another remaining profile to Default; thedefaultagent profile is first moved onto that profile, so the delete is not refused.F10.create: Add LLM Profile β provider, model and API key β Save showsValidating...thenSaving..., toastsProfile "<name>" createdand returns to the list; the first profile on an empty list becomes Default.F10.create-prefill: a new editor prefills the backend default model with a blank key, base URL and connection; the other LLM options it shows come from the agent's current LLM settings, i.e. the last applied Default profile (the editor opens on the tab they need), and Save stores what the form shows.F10.api-key-help: under the API key field (Basic and Advanced),Don't know your API key? Click here for instructionsopens the OpenHands docs on getting an API key in a new tab.F10.name-autofill: the Profile Name is auto-filled from the chosen model and follows later model changes until the user types a name; clearing the field resumes it.F10.name-validation: a name that breaks the rule (letter or digit first; letters, digits,.,_,-; max 64) disables Save and turns the rule text red; a name that already exists marks the field invalid, shows a taken-name message about LLM profiles and disables Save (Edit accepts the profile's own name).F10.create-validation: a Save whose validation call fails toasts the provider error and keeps the editor open with nothing saved.F10.custom-model: the Advanced tab takes a free-text model and Base URL; an empty model is refused withModel is required.F10.model-picker: the Basic provider and model comboboxes group options as Verified Models and Other Models; providers sort by the name the picker shows, case-insensitively, with OpenHands first among the verified ones; focusing the provider field selects its label, so typing replaces it and filters the list; changing provider clears the model; the OpenHands provider shows account and key help.F10.provider-list-complete: the Basic provider combobox offers every provider the backend reports or has verified models for (over a hundred,xaiincluded); picking a late-sorting one fills the field and loads its models.F10.cloud-provider-pagination: on a Cloud organization backend the provider list is fetched fromproviders/searchpage by page, so providers past the first page (xai,openrouter) are offered too (blocked here).F10.edit: Edit loads the profile (Editing profile "<name>" - save to apply changes) with the stored key masked; Save stays disabled until something changes; a changed name renames before saving; the stored key is kept; a save the Agent Server refuses toasts the server's reason and keeps the editor open.F10.basic-save-keeps-base-url: re-saving a profile from the Basic view without changing its model keeps the Base URL that view hides.F10.edit-default-reapply: saving the Default profile re-applies it to the agent's LLM settings.F10.editor-discard: Back and Cancel return to the list without saving and without an unsaved-changes prompt.F10.schema-validation: bad values in schema fields (Temperature over 2, Top P over 1, invalid JSON) are refused with a toast naming the field.F10.connection-link: with connections present the editor shows a Provider connection selector; linking hides API key and Base URL, skips validation on Save and regroups the row; None restores the key field.F10.add-models: "Add from provider connections" (or a connection row's Bulk add) creates one linked or keyless profile per checked model; models that already have a profile of that name are hidden.F10.subscription: Authentication β ChatGPT subscription swaps the model fields for a subscription model list and a device-login card (code, sign-in link, poll, cancel); switching back restores the API-key model.F10.schema-unavailable: a backend without the settings-schema endpoints showsSDK settings schema unavailable.with an upgrade or session-key hint.F10.cloud-readonly: Cloud org members without edit rights see the list read-only (no Add buttons, no row menus, no Provider connections section).F10.phone: list, row menu and editor fit a 390 px viewport without horizontal overflow.F10.default-used: a conversation started after creating a profile in the UI runs on the Default profile's model.
How to get to it (user POV)
- Sidebar settings gear (
backend-selector-settings-link, opens/settings/agents), then LLM in the settings navigation (sidebar-settings-/settings/llm). - Direct URL
/settings/llm. - Command menu (
Control+korMeta+k, orcommand-menu-triggerin the sidebar): search "LLM", choose LLM profiles ("Manage models, providers, and API keys."). - On the list: Add LLM Profile (
add-llm-profile), Add from provider connections (add-models-from-provider), each row's...(profile-menu-trigger), and a provider connection row's...β Bulk add (provider-connection-add-models). - The create/edit editor has no URL of its own: it replaces the list in place at
/settings/llm; Back (back-to-profiles) and Cancel (cancel-profile-btn) return to the list.
Driving it with control-openhands
Preconditions:
Baseline state (launched, doctored,
onboard --skipdone). Do not runllm preset deepseekfirst: a fresh run has no profiles, which the empty state and "first profile becomes Default" need.A DeepSeek key for real saves, either in the environment as
DEEPSEEK_API_KEYor in a file. Pass it only withbrowser fill ... --value-env DEEPSEEK_API_KEYor--value-file <key file>; never on the command line.No profile or connection named
QA_*,deepseek-chatordeepseek-v3exists (control-openhands api GET /api/profiles,control-openhands api GET /api/llm/provider-connections).Select a row by exact name with the CSS form
'[data-testid=profile-row]:has([title="<name>"])';has-text=QA_proalso matchesQA_pro-copy.Read toasts with
control-openhands browser wait-text '<text>'(orbrowser toasts) right after the click; they disappear after a few seconds.Blocked here: completing
F10.subscriptionsign-in (needs a ChatGPT Plus/Pro account),F10.cloud-readonly(needs a Cloud org member account),F10.cloud-provider-pagination(needs a Cloud organization backend where the user can manage profiles), andF10.schema-unavailable(needs an agent server without the schema endpoints, for example an olderlaunch --sdk-ref). TheF10.list-stateserror is arranged by the Load error bullet (a linked profile plus this run's corrupted connections store).Empty list (
F10.list-empty). On a fresh run, navigate from the sidebar:control-openhands browser click 'testid=backend-selector-settings-link' --expect-url '/settings',control-openhands browser click 'testid=sidebar-settings-/settings/llm' --expect-url '/settings/llm', thencontrol-openhands browser text 'testid=profiles-empty'. The text isNo profiles saved yet. Add a profile to save your LLM configurations.andcontrol-openhands browser testids mainlistsadd-llm-profile,add-models-from-providerandprofiles-empty.Open the editor (
F10.create). Runcontrol-openhands browser click 'testid=add-llm-profile'.control-openhands browser text 'testid=profile-editor-title'isAdd LLM Profile,control-openhands browser text 'testid=profile-editor-description'isConfigure your LLM settings below, then click Save to create this profile., and the form opens on the Basic tab with providerOpenAIand modelgpt-5.6-sol(browser value 'testid=llm-provider-input',browser value 'testid=llm-model-input').API key help link (
F10.api-key-help). In that editor runcontrol-openhands browser click 'testid=sdk-section-basic-toggle'(a new editor opens on All once the agent's LLM settings carry a non-default option; seeF10.create-prefill), thencontrol-openhands browser text 'testid=llm-api-key-help-anchor'isDon't know your API key? Click here for instructions; its link hastarget_blank(browser eval "document.querySelector('[data-testid=llm-api-key-help-anchor] a, a[data-testid=llm-api-key-help-anchor]').target"). Runcontrol-openhands browser click 'testid=llm-api-key-help-anchor >> role=link', thencontrol-openhands browser tabs(rerun once if it still lists one page): page 1 ishttps://docs.openhands.dev/.../local-setup#getting-an-api-key. Return withcontrol-openhands browser close-tab 1andcontrol-openhands browser tab 0. The Advanced tab shows the same link astestid=llm-api-key-help-anchor-advanced.Provider and model lists (
F10.model-picker). Runcontrol-openhands browser click 'testid=llm-provider-input'andcontrol-openhands browser snapshot 'role=listbox': groupsVerified ModelsandOther Models.control-openhands browser eval "[...document.querySelectorAll('[role=listbox] [role=option]')].map(e=>e.innerText.trim().split('\n')[0]).join('|')"startsOpenHands|Anthropic|deepseek|digitalocean|Gemini|glm|minimax|Mistral AI|Moonshot|nvidia|OpenAI|OpenRouter|qwen(the verified ones, OpenHands first, then by shown name) and continuesa2a|a2a_agent|AI21|ai21_chat|β¦withAWS BedrockandAzureamong theas: Other is sorted by shown name too, ignoring case. Typing filters: runcontrol-openhands browser press Escape,control-openhands browser click 'testid=profile-editor-title',control-openhands browser click 'testid=llm-provider-input'(browser eval "(()=>{const i=document.querySelector('[data-testid=llm-provider-input]');return i.selectionStart+'-'+i.selectionEnd+' of '+i.value.length})()"is0-6 of 6: the labelOpenAIis selected), thencontrol-openhands browser press a,press n,press t,press h:browser value 'testid=llm-provider-input'isanthand the same eval listsAnthropic|anthropic_text(browser screenshot --feature F10.model-picker --name anth-filtered). Use key presses here:browser typeappends to the selected label (OpenAIanth). Close withcontrol-openhands browser press Escape. Pick DeepSeek withcontrol-openhands browser fill 'testid=llm-provider-input' deepseekandcontrol-openhands browser click 'testid=provider-item-deepseek';browser value 'testid=llm-model-input'is now empty.control-openhands browser click 'testid=llm-model-input'andbrowser snapshot 'role=listbox'listdeepseek-chat,deepseek-v4-pro, β¦ as Verified anddeepseek-coder,deepseek-flash, β¦ under Other. For the OpenHands provider (browser fill 'testid=llm-provider-input' openhands,browser click 'testid=provider-item-openhands'),control-openhands browser text 'testid=openhands-account-help'isNeed an OpenHands Account? Click here; aftercontrol-openhands browser click 'role=option[name="claude-sonnet-5"][exact]'in the model list,control-openhands browser text 'testid=openhands-api-key-help'startsYou can find your OpenHands Provider LLM Key in the OpenHands LLM Key section of OpenHands Cloud. Screenshot:browser screenshot --feature F10.model-picker --name openhands-provider.Every provider is offered (
F10.provider-list-complete). Runcontrol-openhands browser click 'testid=cancel-profile-btn'(the Provider and model lists bullet leaves its editor open; skip this when the list is showing),control-openhands browser click 'testid=add-llm-profile',control-openhands browser click 'testid=sdk-section-basic-toggle'andcontrol-openhands browser click 'testid=llm-provider-input'.control-openhands browser count 'role=listbox >> role=option'is the size of the union of the two backend lists the page merges: the names incontrol-openhands api GET /api/llm/providers --pick providers(undervalue;control-openhands api GET /api/llm/providers --pick providers | jq '.value | length'is165today) and the provider keys ofcontrol-openhands api GET /api/llm/models/verified --max-bytes 200000(itsbodyis{"models": {<provider>: [<model>, β¦]}};control-openhands api GET /api/llm/models/verified --max-bytes 200000 | jq '.body.models | keys | length'is13today, five of which,digitalocean,glm,nvidia,openhandsandqwen, are missing from the first list). The union isjq -s '([.[0].value[]] + (.[1].body.models | keys)) | unique | length' <(control-openhands api GET /api/llm/providers --pick providers) <(control-openhands api GET /api/llm/models/verified --max-bytes 200000)(bash process substitution):170today, and the listbox count is the same170, with every backend name present under its display label (openhandsasOpenHands,mistralasMistral AI,azure_aiasAzure AI Studio).control-openhands browser count 'role=option[name="xai"][exact]'is1(it sorts last but three, beforexiaomi_mimo,xinferenceandzai). Pick it withcontrol-openhands browser click 'role=option[name="xai"][exact]':control-openhands browser value 'testid=llm-provider-input'isxai,control-openhands browser value 'testid=llm-model-input'is empty, and aftercontrol-openhands browser click 'testid=llm-model-input'the listbox offersgrok-4.20,grok-4.20-0309, β¦ under Other Models (60 today;control-openhands browser screenshot --feature F10.provider-list-complete --name xai-picked). Close withcontrol-openhands browser press Escape(the open listbox would swallow the next click) andcontrol-openhands browser click 'testid=cancel-profile-btn'; the list is back.Cloud provider pagination (
F10.cloud-provider-pagination). Blocked: needs a Cloud organization backend where the user can manage profiles (local backends serve the whole list in oneGET /api/llm/providers). There, the Basic provider list comes fromproviders/searchone page at a time (control-openhands browser network --filter providers/searchlists one request per page, the later ones with apage_id), andxaiandopenrouter, which sort past the first page, are offered and pick like any other provider. Recordcontrol-openhands evidence add --feature F10.cloud-provider-pagination --result blocked ...naming the Cloud account.Create the first profile (
F10.create,F10.name-autofill). In a fresh editor pick deepseek as above, thencontrol-openhands browser click 'testid=llm-model-input'andcontrol-openhands browser click 'testid=model-item-deepseek-flash'.control-openhands browser value 'testid=profile-name-input'now follows the model:deepseek-flash(right after the provider pick, while the model is still empty, it still readsgpt-5.6-sol). Runcontrol-openhands browser fill 'testid=profile-name-input' QA_flash,control-openhands browser fill 'testid=llm-api-key-input' --value-file <key file>(or--value-env DEEPSEEK_API_KEY),control-openhands browser click 'testid=save-profile-btn' --observe 'testid=save-profile-btn' --observe-ms 4000andcontrol-openhands browser wait-text 'Profile "QA_flash" created' --timeout 60000. The observed button states areSave,Validating...,Saving..., then the editor closes. Aftercontrol-openhands browser reload,control-openhands browser text '[data-testid=profile-row]:has([title="QA_flash"])'readsQA_flash,deepseek/deepseek-flash,Default, andcontrol-openhands api GET /api/profileshasactive_profileQA_flash.A typed name sticks; a cleared one follows again (
F10.name-autofill). In a fresh editor (control-openhands browser click 'testid=add-llm-profile') runcontrol-openhands browser fill 'testid=profile-name-input' QA_typed, then pick deepseek as above,control-openhands browser click 'testid=llm-model-input'andcontrol-openhands browser click 'role=option[name="deepseek-v4-pro"][exact]';browser value 'testid=profile-name-input'staysQA_typed. Runcontrol-openhands browser fill 'testid=profile-name-input' '', thenbrowser click 'testid=llm-model-input'andbrowser click 'testid=model-item-deepseek-flash': the name isdeepseek-flash; pickrole=option[name="deepseek-v4-pro"][exact]again and it isdeepseek-v4-pro.Name rules (
F10.name-validation). In the editor runcontrol-openhands browser fill 'testid=profile-name-input' 'QA bad';control-openhands browser enabled 'testid=save-profile-btn'isfalseandcontrol-openhands browser attr 'testid=profile-name-input' aria-invalidistrue(the same for-QAand a 65-character name), and the rule text under the field turns to the theme's danger colour:control-openhands browser eval "(()=>{const i=document.querySelector('[data-testid=profile-name-input]');return getComputedStyle(document.getElementById(i.getAttribute('aria-describedby'))).color+' '+getComputedStyle(document.body).getPropertyValue('--oh-color-danger')})()"readsrgb(231, 106, 94) #e76a5eon OpenHands-Neutral andrgb(209, 52, 56) #D13438on Light+ (F16.color-theme) (#18199); a valid name turns it back to the muted grey. An existing name (QA_flash) also givesenabledfalseandaria-invalidtrue, with a role=alert message under the field in the danger colour while the rule text stays grey. The message readsAn LLM profile with this name already exists. Choose a different name, or edit the existing one.(browser eval "[...document.querySelectorAll('[role=alert]')].map(a=>a.innerText+' | '+getComputedStyle(a).color)"; screenshot--feature F10.name-validation --name duplicate-neutral).QA_flash2givestrueand no message.Validation failure (
F10.create-validation). In a fresh editor choose deepseek /model-item-deepseek-flash, fillprofile-name-inputwithQA_nokey, leave the API key empty and runcontrol-openhands browser click 'testid=save-profile-btn' --observe 'testid=save-profile-btn' --observe-ms 3000(statesSave,Validating...,Save).control-openhands browser wait-text 'Authentication Fails'finds the toastlitellm.AuthenticationError: AuthenticationError: DeepseekException - Authentication Fails (...);browser text 'testid=profile-editor-title'is stillAdd LLM Profileandcontrol-openhands api GET /api/profileshas noQA_nokey.Custom model (
F10.custom-model). In that editor runcontrol-openhands browser click 'testid=sdk-section-advanced-toggle'.browser value 'testid=llm-custom-model-input'carries the Basic choice (deepseek/deepseek-flash; placeholderopenai/gpt-5.6-sol), andbrowser attr 'testid=base-url-input' placeholderishttps://api.openai.com. Runcontrol-openhands browser fill 'testid=llm-custom-model-input' '',control-openhands browser fill 'testid=profile-name-input' QA_adv,control-openhands browser click 'testid=save-profile-btn'andcontrol-openhands browser wait-text 'Model is required'. Thencontrol-openhands browser fill 'testid=llm-custom-model-input' deepseek/deepseek-flash,control-openhands browser fill 'testid=base-url-input' https://api.deepseek.com, fill the key as in Create, Save, andcontrol-openhands browser wait-text 'Profile "QA_adv" created' --timeout 60000.api GET /api/profilesshowsQA_advwithbase_urlhttps://api.deepseek.com.Second profile from a verified model. Repeat Create choosing
control-openhands browser click 'role=option[name="deepseek-v4-pro"][exact]'(verified models have nomodel-item-*test ID) and the nameQA_pro. The toast readsProfile "QA_pro" created; the rowQA_pro deepseek/deepseek-v4-prohas no badge.Row menu (
F10.actions-menu). Runcontrol-openhands browser click '[data-testid=profile-row]:has([title="QA_flash"]) >> testid=profile-menu-trigger'andcontrol-openhands browser snapshot 'testid=profile-actions-menu': menuitems Edit, Rename, Duplicate,Set as default [disabled], Delete on the Default row (all enabled on other rows).control-openhands browser eval "document.activeElement.dataset.testid"isprofile-edit: focus moves into the menu on open. Runcontrol-openhands browser press ArrowDownand that eval four times:profile-rename,profile-duplicate,profile-delete(the disabled Set as default is skipped),profile-edit(wraps);control-openhands browser press ArrowUptwice givesprofile-delete,profile-duplicate.control-openhands browser press Tabcloses the menu (browser count 'testid=profile-actions-menu'is0) and moves focus on to the next row's trigger: the row-aware evalcontrol-openhands browser eval "(()=>{const a=document.activeElement;const r=a.closest('[data-testid=profile-row]');return a.dataset.testid+'@'+(r?r.querySelector('[title]').title:'-')})()"isprofile-menu-trigger@QA_pro. Reopen theQA_flashmenu andcontrol-openhands browser press Escape: count0, and the row-aware eval isprofile-menu-trigger@QA_flash(focus is back on its own trigger). Reopen it andcontrol-openhands browser click 'role=heading[name="Available Profiles"]'closes it too. Keyboard open:control-openhands browser focus '[data-testid=profile-row]:has([title="QA_pro"]) >> testid=profile-menu-trigger'andcontrol-openhands browser press Enterput focus onprofile-edit; on this non-default rowcontrol-openhands browser snapshot 'testid=profile-actions-menu'lists the same five menuitems with none[disabled], andcontrol-openhands browser screenshot --feature F10.actions-menu --name menu-nondefaultshows them with the focus ring on Edit. FiveArrowDowns walkprofile-rename,profile-duplicate,profile-set-active,profile-delete,profile-edit.control-openhands browser press Escapecloses it, and the row-aware eval isprofile-menu-trigger@QA_pro.Set as default (
F10.set-default). Runcontrol-openhands browser click '[data-testid=profile-row]:has([title="QA_pro"]) >> testid=profile-menu-trigger',control-openhands browser click 'testid=profile-actions-menu >> testid=profile-set-active'andcontrol-openhands browser wait-text 'Switched to profile "QA_pro"'. Aftercontrol-openhands browser reload,control-openhands browser count 'testid=profile-active-badge'is1andcontrol-openhands browser count '[data-testid=profile-row]:has([title="QA_pro"]) >> testid=profile-active-badge'is1;control-openhands api GET /api/profileshasactive_profileQA_proandcontrol-openhands llm showreportsactive.modeldeepseek/deepseek-v4-pro. A profile's Base URL follows it into the agent settings:QA_adv(Custom model above) carries one: Set as active on its row makescontrol-openhands llm showreportactive.base_urlhttps://api.deepseek.com, also underagent_settings.llm.base_urlincontrol-openhands api GET /api/settings. Thedefaultagent profile follows the Default:control-openhands api GET /api/agent-profiles/default --pick profile.llm_profile_refnames the profile just set (F13). With a key,control-openhands conversation start --prompt "Reply with only: adv-ok. Do not run any tools." --wait --timeout 240then shows the pillQA_advand the replyadv-ok(driven 2026-10-08;QA_prolikewise repliedpro-okondeepseek/deepseek-v4-pro). MakeQA_prothe Default again before Duplicate.Duplicate (
F10.duplicate). From theQA_prorow menu clicktestid=profile-actions-menu >> testid=profile-duplicateandcontrol-openhands browser wait-text 'Profile duplicated as "QA_pro-copy"'; repeat onQA_proforProfile duplicated as "QA_pro-copy-1", and onQA_pro-copyforProfile duplicated as "QA_pro-copy-copy". After a reloadcontrol-openhands browser text 'testid=profile-row >> has-text=QA_pro-copy-1'readsQA_pro-copy-1 deepseek/deepseek-v4-pro, the badge stays onQA_pro, andapi GET /api/profileshasapi_key_set: trueon every copy.Rename (
F10.rename). Open theQA_pro-copy-copyrow menu and clicktestid=profile-actions-menu >> testid=profile-rename.control-openhands browser value 'testid=rename-profile-input'isQA_pro-copy-copyandbrowser eval "document.activeElement.dataset.testid"isrename-profile-input.control-openhands browser fill 'testid=rename-profile-input' '-bad'makescontrol-openhands browser enabled 'role=dialog[name="Rename Profile"] >> role=button[name="Rename"]'falseandcontrol-openhands browser attr 'testid=rename-profile-rule' classcontainstext-danger(the theme danger colour, #18199). Filling the old name and clicking Rename closes the modal with no toast (browser count 'testid=rename-profile-modal'is0);control-openhands browser click 'role=dialog[name="Rename Profile"] >> role=button[name="Cancel"]'also closes it. To rename, reopen, fillQA_renamed,control-openhands browser press Enter,control-openhands browser wait-text 'Profile renamed to "QA_renamed"', reload, and the count of'[data-testid=profile-row]:has([title="QA_renamed"])'is1while the old name's is0. Renaming the Default row (QA_proβQA_pro2, submit withtestid=rename-profile-submit) keeps its badge (browser text '[data-testid=profile-row]:has([data-testid=profile-active-badge])'readsQA_pro2 β¦ Default) andactive_profilefollows.Rename onto an existing name (
F10.rename-conflict). The Rename step above already renamedQA_pro-copy-copyandQA_pro, so use the remaining fixtures: open theQA_pro-copyrow menu, clicktestid=profile-actions-menu >> testid=profile-rename, filltestid=rename-profile-inputwithQA_pro2and clicktestid=rename-profile-submit. The modal stays open (count 'testid=rename-profile-modal'is1),control-openhands browser toastshas the server's messageProfile 'QA_pro2' already exists(noHTTP request failedprefix, no JSON), andbrowser screenshot --feature F10.rename-conflict --name toastshows that toast above the open modal. Close it withcontrol-openhands browser click 'role=dialog[name="Rename Profile"] >> role=button[name="Cancel"]'.Edit (
F10.edit). Open theQA_renamedrow menu and clicktestid=profile-actions-menu >> testid=profile-edit.browser text 'testid=profile-editor-title'isEdit LLM Profile,browser text 'testid=profile-editor-description'isEditing profile "QA_renamed" - save to apply changes,browser attr 'testid=llm-api-key-input' placeholderis<hidden>,browser count 'testid=set-indicator'is1andbrowser enabled 'testid=save-profile-btn'isfalse(screenshot--feature F10.edit --name loaded). Filling another profile's name (QA_flash) setsaria-invalidtruewith the taken-name message ofF10.name-validationand keeps Save disabled; refillingQA_renamedclears it. Runcontrol-openhands browser click 'testid=llm-model-input',control-openhands browser click 'testid=model-item-deepseek-flash'(Save turnstrue),control-openhands browser fill 'testid=profile-name-input' QA_edited, Save, andcontrol-openhands browser wait-text 'Profile "QA_edited" updated' --timeout 60000. After a reloadbrowser text '[data-testid=profile-row]:has([title="QA_edited"])'readsQA_edited deepseek/deepseek-flashandQA_renamedis gone. The save passed validation without retyping the key, which proves the stored key was kept.Refused save shows the server's reason (
F10.edit). Arrange a disposable dummy-key loopback profile (QA_DUMMY=sk-qa-dummy control-openhands llm set --profile QA_LOOPBACK --model openai/gpt-4o --api-key-env QA_DUMMY --base-url http://127.0.0.1:1/v1 --no-activate --no-validate),browser goto /settings/llm, open its row menu and Edit,control-openhands browser click 'testid=sdk-section-all-toggle'andcontrol-openhands browser fill 'testid=sdk-settings-llm.max_input_tokens' 16000. Runbrowser network --clear, clicktestid=save-profile-btnand readbrowser toasts --history: one error toast with the server's reason,The configured model has a context window of 16,000 tokens, which is below the minimum of 16,384 tokens required for OpenHands to function properly. β¦;browser network --filter /api/showsPOST /api/profiles/QA_LOOPBACK/validateandPOST /api/profiles/QA_LOOPBACKeach answering500once (OpenHands/software-agent-sdk#6026 tracks the status code). The editor stays open (browser count 'testid=save-profile-btn'is1) at desktop and phone (--feature F10.edit --name server-reason-<viewport>), andapi GET /api/profiles/QA_LOOPBACKkeepsmax_input_tokensnull. DeleteQA_LOOPBACKthrough its row menu.Basic re-save keeps a hidden Base URL (
F10.basic-save-keeps-base-url).QA_advcarriesbase_urlhttps://api.deepseek.com(Custom model above). Open its row menu, clicktestid=profile-actions-menu >> testid=profile-edit, thencontrol-openhands browser click 'testid=sdk-section-advanced-toggle':control-openhands browser value 'testid=base-url-input'ishttps://api.deepseek.com. Runcontrol-openhands browser click 'testid=sdk-section-basic-toggle':control-openhands browser count 'testid=base-url-input'is0(the view hides it),control-openhands browser value 'testid=llm-model-input'isdeepseek-flashandcontrol-openhands browser enabled 'testid=save-profile-btn'isfalse(control-openhands browser screenshot --feature F10.basic-save-keeps-base-url --name basic-view). Without touching the model, runcontrol-openhands browser fill 'testid=llm-api-key-input' --value-env DEEPSEEK_API_KEY(Save turnstrue),control-openhands browser click 'testid=save-profile-btn' --observe 'testid=save-profile-btn' --observe-ms 4000(Save,Validating...,Saving...) andcontrol-openhands browser wait-text 'Profile "QA_adv" updated' --timeout 60000. Thencontrol-openhands api GET /api/profiles/QA_adv --pick config.base_urlis stillhttps://api.deepseek.comandcontrol-openhands api GET /api/profiles/QA_adv --pick config.modelisdeepseek/deepseek-flash; aftercontrol-openhands browser reloadthe same GETs agree. Without a key, arrangeQA_DUMMY_KEY=qa control-openhands llm set --profile QA_base --model deepseek/deepseek-chat --api-key-env QA_DUMMY_KEY --base-url https://api.deepseek.com --no-validate --no-activate(it printsactivatedfalseandcontrol-openhands api GET /api/profiles --pick active_profileis unchanged: the Default stays where it is and the editors below inherit it, as long as some profile is Default; on a run whereQA_baseis the only profile the page makes it Default at the next load, see Gotchas) andcontrol-openhands browser reload, then drive the same steps onQA_base's row with its own readbacks: its editor opens on Advanced (the Base URL is a non-default value) withcontrol-openhands browser value 'testid=base-url-input'https://api.deepseek.com, Basic hides it (count0),control-openhands browser value 'testid=llm-model-input'isdeepseek-chatandcontrol-openhands browser enabled 'testid=save-profile-btn'isfalse; fill the key withQA_DUMMY_KEY=qa-dummy-key control-openhands browser fill 'testid=llm-api-key-input' --value-env QA_DUMMY_KEY(Save turnstrue) and Save: the observed states areSave,Validating...([disabled] [busy]),Savewithin a second,control-openhands browser toastshas the provider's messagelitellm.BadRequestError: DeepseekException - {"error":{"message":"Authentication Fails, Your api key: ****-key is invalid β¦,browser text 'testid=profile-editor-title'is stillEdit LLM Profile,control-openhands api GET /api/profiles/QA_base --pick config.base_urlis stillhttps://api.deepseek.comand--pick config.modelisdeepseek/deepseek-chat; recordblockedwithDEEPSEEK_API_KEYas the prerequisite, leave withcontrol-openhands browser click 'testid=cancel-profile-btn'and remove the arranged profile withcontrol-openhands api DELETE /api/profiles/QA_base --write(arrange, not proof).Leave without saving (
F10.editor-discard). EditQA_adv,control-openhands browser click 'testid=sdk-section-all-toggle',control-openhands browser fill 'testid=sdk-settings-llm.top_p' 0.5(Save turns enabled), thencontrol-openhands browser click 'testid=back-to-profiles'. The list returns at once (browser count 'testid=add-llm-profile'is1) with no prompt (control-openhands browser events --kinds dialogis empty), and reopening Edit β All showstop_pempty.testid=cancel-profile-btnbehaves the same.Schema field validation and re-apply (
F10.schema-validation,F10.edit-default-reapply). Edit the Default profile and runcontrol-openhands browser click 'testid=sdk-section-all-toggle'.control-openhands browser fill 'testid=sdk-settings-llm.temperature' 5, Save, thencontrol-openhands browser wait-text 'must be at most 2'(toastTemperature must be at most 2). Clear it, filltestid=sdk-settings-llm.top_pwith3:Top P must be at most 1. Clear it, filltestid=sdk-settings-llm.extra_headerswith{bad:Invalid JSON for Extra Headers. Clear that, fill temperature0.3, Save, andwait-text 'Profile "<name>" updated'.control-openhands api GET /api/settingsthen hasagent_settings.llm.temperature0.3, and reopening Edit β All shows0.3.New profile prefill (
F10.create-prefill). With that Default (temperature0.3) runcontrol-openhands browser click 'testid=add-llm-profile'. The editor opens on All (browser eval "[...document.querySelectorAll('[role=tab]')].map(t=>t.innerText+':'+t.getAttribute('aria-selected')).join(',')"isBasic:false,Advanced:false,All:true),browser value 'testid=llm-custom-model-input'is the backend defaultopenai/gpt-5.6-sol, andcontrol-openhands assert --field value --equals 0.3 -- browser value 'testid=sdk-settings-llm.temperature'passes: the temperature is inherited from the Default. Runcontrol-openhands browser fill 'testid=llm-custom-model-input' deepseek/deepseek-flash,browser fill 'testid=profile-name-input' QA_inherit, fill the key as in Create,control-openhands browser scroll 'testid=sdk-settings-llm.temperature',control-openhands browser screenshot --feature F10.create-prefill --name inherited-before-save, Save andwait-text 'Profile "QA_inherit" created' --timeout 60000. The saved profile has the temperature the form showed:control-openhands api GET /api/profiles/QA_inherit --pick config.temperatureis0.3. Afterbrowser reload, openQA_inherit's row menu ('[data-testid=profile-row]:has([title="QA_inherit"]) >> testid=profile-menu-trigger'), clicktestid=profile-actions-menu >> testid=profile-editandtestid=sdk-section-all-toggle,control-openhands browser scroll 'testid=sdk-settings-llm.temperature'andcontrol-openhands assert --field value --equals 0.3 -- browser value 'testid=sdk-settings-llm.temperature'passes (screenshot--feature F10.create-prefill --name edit-after-create); leave withtestid=cancel-profile-btn. Repeat atbrowser viewport phoneaftercontrol-openhands api DELETE /api/profiles/QA_inherit --write(the desktop pass already took the name); the same holds.Link to a provider connection (
F10.connection-link,F10.list-grouped). Arrange a connection through the F11 form:control-openhands browser click 'testid=add-provider-connection',control-openhands browser fill 'testid=provider-connection-name-input' QA_ds_conn,control-openhands browser click 'testid=provider-connection-provider-input',control-openhands browser fill 'testid=provider-connection-provider-input' deepseek,control-openhands browser click 'testid=provider-item-deepseek',control-openhands browser fill 'testid=provider-connection-api-key-input' --value-file <key file>,control-openhands browser click 'testid=provider-connection-submit'andcontrol-openhands browser wait-text 'Connection "QA_ds_conn" created'. EditQA_adv, clicktestid=sdk-section-basic-toggle, runcontrol-openhands browser click 'testid=llm-provider-connection-input'(optionsNone,QA_ds_conn) andcontrol-openhands browser click 'role=option[name="QA_ds_conn"]';browser count 'testid=llm-api-key-input'is0, and on the Advanced tabbrowser count 'testid=base-url-input'is0. Pickingrole=option[name="None"]brings the key field back (1). Re-selectQA_ds_conn, thencontrol-openhands browser click 'testid=save-profile-btn' --observe 'testid=save-profile-btn' --observe-ms 3000: statesSave,Saving...(noValidating...), andwait-text 'Profile "QA_adv" updated'. After a reloadcontrol-openhands browser eval "[...document.querySelectorAll('[data-testid=profile-group-header]')].map(e=>e.innerText).join(' | ')"isQA_DS_CONN | NOT LINKED(CSS upper-case) andcontrol-openhands browser count 'div:has(> [data-testid=profile-group-header]:text-is("QA_ds_conn")) [data-testid=profile-row]:has([title="QA_adv"])'is1(screenshot--feature F10.list-grouped --name grouped).Add models from a provider (
F10.add-models). Runcontrol-openhands browser click 'testid=add-models-from-provider';browser enabled 'testid=add-models-submit'isfalse. Keyless:control-openhands browser select 'testid=add-models-provider' moonshotandcontrol-openhands browser wait 'testid=add-models-select-all';browser text 'testid=add-models-keyless-note'isNo connection β profiles will need a key added later(readable, at least 4.5:1, in every theme; Known failure (reproduced 2026-10-17, #18546): the muted note measures 2.58:1 in Solarized Light, 5.58:1 in Light+), rows start unchecked (Add 0 profiles), andcontrol-openhands browser check 'testid=add-models-select-all'makesbrowser text 'testid=add-models-submit'readAdd 12 profiles; uncheck it again. Linked:control-openhands browser select 'testid=add-models-provider' deepseek; the connection field (testid=add-models-connection-field, optionsNo connection (keyless)andQA_ds_conn) is pre-bound toQA_ds_conn. Runcontrol-openhands browser check 'testid=add-models-check-deepseek/deepseek-chat',control-openhands browser check 'testid=add-models-check-deepseek/deepseek-v3',control-openhands browser click 'testid=add-models-submit'andcontrol-openhands browser wait-text 'Added 2'(toastAdded 2 profiles). The modal closes; after a reloaddeepseek-chatanddeepseek-v3sit under theQA_DS_CONNheader andapi GET /api/profilesshows both with aprovider_connection_id. Preselect entry:control-openhands browser click 'testid=provider-connection-row >> has-text=QA_ds_conn >> testid=provider-connection-menu-trigger'(menu: Bulk add, Edit, Delete),control-openhands browser click 'testid=provider-connection-actions-menu >> testid=provider-connection-add-models'; providerdeepseekand the connection are preset, every remaining row is checked (Add 10 profiles), andbrowser count 'testid=add-models-row-deepseek/deepseek-chat'is0(already added). Close withcontrol-openhands browser click 'role=dialog[name="Add models as profiles"] >> role=button[name="Cancel"]'. In Light+ and Solarized Light the chooser stays readable: the provider select, labels, Select all and model names, and a partial save's per-row Saved and Failed outcomes all measure at least 4.5:1 against the modal (arrange a partial save by filling the profile list to 48 through the real profiles API, then add four keyless moonshot rows includingmoonshot-v1-8k, whose 8,192-token window the server refuses, andmoonshot-v1-auto, which hits the 50-profile limit; the toast readsAdded 2 profiles; 2 failedand the modal stays open).Broken link (
F10.broken-link). The local server refuses to delete a referenced connection (row menu βtestid=provider-connection-deleteβtestid=delete-provider-connection-confirmtoastsProvider connection cannot be deleted while it is referenced by LLM profile(s): ...), so arrange the state directly:control-openhands api POST /api/profiles/QA_broken --write --data '{"llm":{"model":"deepseek/deepseek-chat","provider_connection_id":"00000000000000000000000000000000"},"include_secrets":false}'. Thencontrol-openhands browser reloadandcontrol-openhands browser text '[data-testid=profile-row]:has([title="QA_broken"])'readsQA_broken deepseek/deepseek-chat Broken link;control-openhands browser attr '[data-testid=profile-row]:has([title="QA_broken"]) >> testid=profile-broken-connection-badge' titleisThe linked provider connection was deleted. Edit this profile to re-link it.(screenshot--feature F10.broken-link --name badge). Edit it:browser value 'testid=llm-provider-connection-input'is the orphaned id and the listbox offersNone,QA_ds_connand that id. The row's group header shows the raw id, not a name (see Gotchas).ChatGPT subscription, pre-auth (
F10.subscription). In a fresh editor runcontrol-openhands browser click 'testid=sdk-section-basic-toggle'first (after the schema step the Default profile has a temperature, so a new editor opens on All; seeF10.create-prefill), thencontrol-openhands browser click 'testid=llm-auth-type-input'(optionsAPI key,ChatGPT subscription) andcontrol-openhands browser click 'role=option[name="ChatGPT subscription"]'.browser text 'testid=subscription-status'isChatGPT subscription not connected,browser value 'testid=llm-subscription-model-input'isgpt-5.5(list: gpt-5.5, gpt-5.6-luna, gpt-5.6-sol, gpt-5.6-terra, gpt-6-astra), andllm-provider-inputandllm-api-key-inputare gone (count0). Known failure (reproduced 2026-10-13, #17135): runcontrol-openhands browser fill 'testid=profile-name-input' QA_sub,control-openhands browser network --clear,control-openhands browser click 'testid=save-profile-btn'andcontrol-openhands browser network --bodies --filter '/api/profiles'. Expected: Save validates and saves the showngpt-5.5. Actual: onePOST /api/profiles/QA_sub/validatewhose body has"model":"openai/gpt-5.6-sol", the API-key form's hidden default, although the dropdown showsgpt-5.5(it shows the first subscription model without writing it to the form);browser toasts --historyhasOpenAI subscription login is required, because no subscription is connected. Picking a model intestid=llm-subscription-model-input, evengpt-5.5again, makes the next Save sendPOST /api/profiles/QA_sub/validate, which answersOpenAI subscription login is requiredhere (browser toasts --history), because no subscription is connected.control-openhands browser click 'testid=subscription-connect'andcontrol-openhands browser wait 'testid=subscription-user-code': the card shows the code,Open sign-in page,I've finished signing in(subscription-poll) and Cancel, andcontrol-openhands browser tabslists a second page onauth.openai.com(it opens a second or two after the code appears; rerunbrowser tabsif it lists one page). The card polls on its own, soSign-in is not complete yet. ...can already show before you click poll. Close it withcontrol-openhands browser close-tab 1andcontrol-openhands browser tab 0.control-openhands browser click 'testid=subscription-poll'leavesSign-in is not complete yet. Finish the browser flow and try again.on the card, andcontrol-openhands browser click 'testid=subscription-cancel'removes the code (count 'testid=subscription-user-code'0). Switching back withrole=option[name="API key"]restores providerOpenAIand modelgpt-5.6-sol. Completing sign-in is blocked (needs a ChatGPT Plus/Pro account).Delete (
F10.delete,F10.delete-default). Runcontrol-openhands browser click '[data-testid=profile-row]:has([title="QA_pro-copy"]) >> testid=profile-menu-trigger'andcontrol-openhands browser click 'testid=profile-actions-menu >> testid=profile-delete'.control-openhands browser snapshot 'role=dialog'showsDelete ProfilewithAre you sure you want to delete the profile "QA_pro-copy"? This action cannot be undone., andbrowser eval "document.activeElement.innerText"isCancel.control-openhands browser click 'role=dialog[name="Delete Profile"] >> role=button[name="Cancel"]'keeps the row (count1). Repeat, thencontrol-openhands browser click 'testid=delete-profile-confirm',control-openhands browser wait-text 'Profile "QA_pro-copy" deleted', reload, and the count is0. Deleting the Default row the same way leaves exactly oneprofile-active-badgeon another profile (browser text '[data-testid=profile-row]:has([data-testid=profile-active-badge])'), andapi GET /api/profilesnames it inactive_profile. Runcontrol-openhands browser network --clearbefore that confirm andcontrol-openhands browser network --filter /api/after it:POST /api/agent-profiles/default(moving thedefaultagent profile onto the profile with a key that will become Default) comes beforeDELETE /api/profiles/<name>200andPOST /api/profiles/<next>/activate;control-openhands api GET /api/agent-profiles/default --pick profile.llm_profile_refis the new Default (browser screenshot --feature F10.delete-default --name promoted).Command menu and direct URL (
F10.list). Runcontrol-openhands browser goto /(the bullets above end on/settings/llm, where the URL wait would pass at once),control-openhands browser press Control+k,control-openhands browser type 'testid=command-menu >> role=combobox' LLMandcontrol-openhands browser snapshot 'testid=command-menu': two options,LLM profiles("Manage models, providers, and API keys.") andModel Router(F12; its keywords include "llm"). Hovering an option selects it, so which one Enter runs depends on where the mouse rests: click the option instead,control-openhands browser click 'testid=command-menu >> role=option[name="LLM profiles"]' --expect-url '/settings/llm(\?|$)'.browser count 'testid=add-llm-profile'is1on arrival.control-openhands browser goto /settings/llmshows the same list (browser count 'testid=profile-row', oneprofile-active-badge; screenshot--feature F10.list --name list).Phone layout (
F10.phone). Runcontrol-openhands browser viewport phone,control-openhands browser goto /settings/llm,control-openhands browser bbox 'testid=add-llm-profile',control-openhands browser bbox 'testid=profile-row >> nth=0'andcontrol-openhands browser screenshot --feature F10.phone --name list:insideViewporttrue,pageHorizontalOverflowfalse. Open a row menu:browser bbox 'testid=profile-actions-menu'is inside the viewport. Open Edit:browser bbox 'testid=profile-name-input'is 348 px wide inside the 390 px viewport andpageHorizontalOverflowisfalse(llm-settings-screenmay reportinsideViewportfalsewhen the edited profile's form is taller than the screen; only the overflow flag matters). Return withcontrol-openhands browser click 'testid=cancel-profile-btn'andcontrol-openhands browser viewport desktop.Default profile drives a conversation (
F10.default-used). Make a profile with a distinct model Default through the row menu (for exampleQA_pro-copy-1,deepseek/deepseek-v4-pro, thenwait-text 'Switched to profile "QA_pro-copy-1"'), and runcontrol-openhands conversation start --prompt "Reply with exactly the word: pong" --wait --timeout 180. The JSON has"status": "finished"and"model": "deepseek/deepseek-v4-pro". The browser is now on the conversation page:control-openhands browser goto /settings/llmbefore driving this family again.Persistence across a restart (
F10.list).control-openhands restart,control-openhands doctor,control-openhands browser goto /settings/llm: the same rows and the same Default badge are back.Load error (
F10.list-states). With any profile linked to a connection (hereQA_advβQA_ds_conn, from the Link bullet), make this run's connections store unreadable (shell arrange, this run only):F=$OH_VERIFY_RUN/private/provider-connections/provider_connections.json; cp $F $F.bak; printf '{not json' > $F.control-openhands api GET /api/profilesis now400(Provider connections file is unreadable: β¦). Runcontrol-openhands browser reload,control-openhands browser wait 'testid=profiles-load-error'andcontrol-openhands browser wait 'testid=provider-connections-load-error'(it can appear one retry after the profiles error): the first readsFailed to load profilesin the theme's error colour (browser eval "getComputedStyle(document.querySelector('[data-testid=profiles-load-error] p')).color"isrgb(231, 106, 94)on OpenHands-Neutral andrgb(192, 40, 45)on Light+, #18330), with both Add buttons still shown andprovider-connections-load-errorbelow it (F11.load-error); screenshot--feature F10.list-states --name load-error-neutral. Restore withcp $F.bak $F && rm $F.bakandbrowser reload. The backend-down route does not reach it:control-openhands service stop agent-serverandcontrol-openhands browser reloaddo not reachtestid=profiles-load-error: the whole app is replaced by the disconnected-backend screen (testid=agent-server-onboarding-screen, toastsAn error occurred(twice, one after the other) andCould not connect to the configured agent server. Make sure it is running and reachable, then reload the page.(#18051); the Manage backends row detail still readsHTTP request failed (502 Bad Gateway): "Bad Gateway: connect ECONNREFUSED 127.0.0.1:<agent-server port>"). The list error needs/api/profilesalone to fail. Bring the stack back withcontrol-openhands restart.Cleanup. Run
control-openhands browser goto /settings/llm(the Load error bullet left the disconnected-backend screen), then delete everyQA_*,deepseek-chatanddeepseek-v3profile through the row menu, linked ones first;control-openhands browser count 'testid=profile-group-header'drops to0once no linked row is left (F10.list-grouped). Then deleteQA_ds_conn(testid=provider-connection-row >> has-text=QA_ds_conn >> testid=provider-connection-menu-trigger,testid=provider-connection-actions-menu >> testid=provider-connection-delete,testid=delete-provider-connection-confirm; toastConnection "QA_ds_conn" deleted). With no profiles left,testid=profiles-emptyreturns andapi GET /api/profilesis{"profiles":[],"active_profile":null}.Embedded editor starts on Basic (
F10.create-prefill,F10.edit). Arrange an active disposableQA_LOOPBACKprofile through the real profiles API withllm.modelopenai/gpt-4o, a dummy key,llm.base_urlhttp://127.0.0.1:1/v1,num_retries0and temperature0.4(no completion). Runcontrol-openhands browser goto /settings/llm,control-openhands browser click 'testid=add-llm-profile'andcontrol-openhands browser snapshot 'role=tablist'. Expected by #17801: Basic selected each time the embedded form opens. Known failure, reproduced 2026-10-12: All is selected. Back, open the exactQA_LOOPBACKrow menu andtestid=profile-actions-menu >> testid=profile-edit; the tablist also selects All. Repeat Add/Edit once, then Back without saving. This exercises the non-default settings condition; it does not claim that a default-only profile opens on All.Off-catalog Basic model (
F10.model-picker). From the list open Add, clicktestid=sdk-section-basic-toggle, thencontrol-openhands browser choose 'testid=llm-provider-input' OpenRouter. Runcontrol-openhands browser fill 'testid=llm-model-input' 'thinkingmachines/inkling-small:free',control-openhands browser press Tabandcontrol-openhands browser value 'testid=llm-model-input'; repeat fill/Tab once. Expected: keep the model entered under the selected provider. Known failure, reproduced 2026-10-12: the value is empty on both attempts (#17577, concrete companion of #17233). Capturebrowser screenshot --feature F10.model-picker --name off-catalog-discardedand Back without saving. The Advanced provider-prefix/authenticated-save half needs a working OpenRouter route; this check proves the Basic entry dead end.Azure Base URL on Basic (
F10.model-picker). Open Add, explicitly select Basic andcontrol-openhands browser choose 'testid=llm-provider-input' Azure.control-openhands browser count 'testid=base-url-input'should be1for Azure's required endpoint. Known failure, reproduced 2026-10-12 (#16726): Basic count0, afterbrowser click 'testid=sdk-section-advanced-toggle'count1, and afterbrowser click 'testid=sdk-section-basic-toggle'count0again. Screenshot Basic and Back without saving. No Azure account is needed for this form omission; its reported authenticated conversation error is outside this observation.Slow invalid preflight (
F10.create-validation). Arrange the disposable dummy-keyQA_LOOPBACKprofile from the embedded-editor bullet (all model traffic tohttp://127.0.0.1:1/v1). Open Add, explicitly select All and filltestid=sdk-settings-llm.num_retrieswith5; select Advanced, fillllm-custom-model-inputwithopenai/gpt-4o,base-url-inputwith the refused loopback URL, the key via--value-file <dummy-key file>andprofile-name-inputwithQA_SLOW. Clearbrowser network --filter QA_SLOW --clear, click Save with--observe 'testid=save-profile-btn' --observe-ms 1000, then inspect toasts and network after the 30-second client deadline. Expected: refuse the unreachable endpoint and save nothing. Known failure, reproduced twice 2026-10-12 (#15778, slow branch of OpenHands/software-agent-sdk#5100):Validating...lasts until the browser aborts; 30 seconds after the validation POST, a profile POST succeeds with 201 and the profile appears in the list. The frontend deliberately returns no verdict for an abort, then saves. Repeating underQA_SLOW_2behaves the same; capture the list andbrowser network --filter QA_SLOW_2 --bodies. With retries1, the same refused endpoint instead failed in under a second, showedConnection errorand leftGET /api/profiles/QA_INVALIDat 404 on both saves. Delete the two saved QA_SLOW profiles via the real API as fixture cleanup. This does not verify OpenHands/software-agent-sdk#5100's separate exhausted-budget 429 branch, which needs an approved real route returning that provider verdict.Deleted title profile after failed cleanup (
F10.delete). Arrange a non-default dummy loopback profileQA_Titles3, select it on Application's Title generation model dropdown and Save there (this also hydrates the frontend settings cache). Navigate back viasidebar-settings-/settings/llm, open the exact profile row menu and Delete. On macOS arrange a selective real write failure by recordingsettings.json's original file flags, setting only$OH_VERIFY_RUN/private/settings.jsontostat.UF_IMMUTABLEwithos.chflags, and restoring its flags in afinallyblock immediately after the delete observation. Childprofiles/stays writable and settings stay readable; ordinary chmod is insufficient because SDK Save repairs directory permissions. Clear the network log, confirm Delete, read toasts, the exact row count andapi GET /api/profiles/QA_Titles3. Expected: remove the row despite the cleanup error. Known failure, reproduced twice 2026-10-12 (#17520): DELETE returns 200, the following title-cleanup PATCH returns 500 on three retries, the error surfaces, but the row remains (1) while the API returns 404. Repeat withQA_Titles4. Restore flags beforedoctor; clear the stale title preference through the real settings API. No provider validation or network interception is needed.Connection-linked provider dispatch (
F10.custom-model,F10.connection-link). From/settings/llmAdd > Advanced, saveQA_QWENwithllm-custom-model-inputqwenlinked throughllm-provider-connection-inputto an own OpenAI connection at refused loopback. Activate it and start two real Home chats; inspectconversation events <id> --kinds ConversationErrorEvent --last 2. Expected: the chosen OpenAI-compatible connection supplies the transport. Known failure, reproduced twice 2026-10-12 (#17261): Save succeeds, but each actual chat fails before HTTP withLLM Provider NOT providedformodel=qwen. The reported Windows installation, unlinked preflight and successful local inference are further branches. With a separate own connection whose provider iscustom_openai, repeat the UI Save/start forollama-local/qwen: the same failure reproduces twice for the namespace reported in #17195. Its exact exposed model suffix is absent from the report, soqwenis an owned diagnostic suffix; this is not a complete 9Router/Ollama inference check. Restore the neutral active profile and remove only the own profiles/connections.Bedrock named-profile import (
F10.default-used). In the run-owned launcher environment setAWS_EC2_METADATA_DISABLED=true, thenrestartanddoctor; verify that flag without printing other environment contents. Arrange an own profile withmodel: bedrock/anthropic.claude-3-haiku-20240307-v1:0,aws_profile_name: qa_nonexistent, regionus-east-1, retries0, and bothbase_urlandaws_bedrock_runtime_endpointhttp://127.0.0.1:1/v1. A dummy-only API-key presence marker is needed for Canvas's send gate; the SDK filters that non-Bedrock key on this IAM path. Activate and start a real Home chat; inspect the error privately. Expected: the dependency imports and the missing named profile is reported before any AWS/provider request. A connection error cannot prove successful Bedrock inference. Restore the launcher environment and active profile, then remove only the own fixture.Unavailable subscription upstream is handled (
F10.subscription). Expected: device-start failure reports 502/504 rather than a server crash. Known failure (reproduced twice 2026-10-16, OpenHands/software-agent-sdk#5880): real Connect returned 500 with the backend offline. The block uses an owned offline proxy; browser offline alone does not cut the backend request. The cached runtime must already exist:UV_OFFLINE=1prevents its dependency resolver from reaching the blocked network. The block changes only this run's environment, keeps model defaults on refused loopback, and restores/restarts it inEXIT. The offline restart also overrides the current command's proxy variables because the harness deliberately refreshes machine-scoped proxy settings from the caller when restarting; editing only the saved launcher environment does not make the backend offline. The poll branch remains blocked without a genuine pending device token.QA_SUB_ENV="$OH_VERIFY_RUN/private/qa-known-subscription-env.json" cp "$OH_VERIFY_RUN/private/launcher-env.json" "$QA_SUB_ENV" trap 'cp "$QA_SUB_ENV" "$OH_VERIFY_RUN/private/launcher-env.json"; rm -f "$QA_SUB_ENV"; control-openhands restart --timeout 120 >/dev/null; control-openhands browser goto /settings/llm >/dev/null' EXIT python3 - <<'PYENV' from pathlib import Path import os,json p=Path(os.environ['OH_VERIFY_RUN'])/'private/launcher-env.json' d=json.loads(p.read_text()) assert d.get('OPENAI_BASE_URL')=='http://127.0.0.1:1/v1' assert d.get('OPENAI_API_BASE')=='http://127.0.0.1:1/v1' d['UV_OFFLINE']='1' for key in ['HTTP_PROXY','HTTPS_PROXY','ALL_PROXY','http_proxy','https_proxy','all_proxy']: d[key]='http://127.0.0.1:1' d['NO_PROXY']=d['no_proxy']='127.0.0.1,localhost,::1' p.write_text(json.dumps(d)) PYENV env HTTP_PROXY=http://127.0.0.1:1 HTTPS_PROXY=http://127.0.0.1:1 ALL_PROXY=http://127.0.0.1:1 http_proxy=http://127.0.0.1:1 https_proxy=http://127.0.0.1:1 all_proxy=http://127.0.0.1:1 NO_PROXY=127.0.0.1,localhost,::1 no_proxy=127.0.0.1,localhost,::1 UV_OFFLINE=1 control-openhands restart --timeout 120 control-openhands doctor control-openhands browser viewport desktop control-openhands browser goto /settings/llm control-openhands browser click 'testid=add-llm-profile' control-openhands browser click 'testid=sdk-section-basic-toggle' control-openhands browser choose 'testid=llm-auth-type-input' 'ChatGPT subscription' control-openhands browser network --clear control-openhands browser click 'testid=subscription-connect' --observe 'role=status' --observe-ms 1000 control-openhands assert --field recent.0.status --matches '^(502|504)$' --bug 'recent.0.status eq 500 && recent.0.path eq "/api/llm/subscription/openai/device/start"' -- browser network --filter '/api/llm/subscription/openai/device/start' # bug
Regression check (F10.edit, server-save-reason). Precondition: an ordinary configured active profile (for example the skill's DeepSeek preset) already exists; do not activate the disposable QA_KNOWN_SAVE_REASON profile. On an empty registry, first-profile auto-activation would change the scenario and make cleanup incomplete. The real 500 is the refused-save fixture for this UI check, not the expected SDK error contract (see the separate SDK known failure below):
trap 'control-openhands browser reload >/dev/null; control-openhands api DELETE /api/profiles/QA_KNOWN_SAVE_REASON --write >/dev/null; control-openhands browser goto /settings/llm >/dev/null' EXIT
control-openhands api POST /api/profiles/QA_KNOWN_SAVE_REASON --write --data '{"llm":{"model":"openai/gpt-4o","api_key":"qa-not-real","base_url":"http://127.0.0.1:1/v1","num_retries":0,"timeout":2},"include_secrets":true}'
control-openhands browser viewport desktop
control-openhands browser goto /settings/llm
control-openhands browser wait '[data-testid=profile-row]:has([title="QA_KNOWN_SAVE_REASON"])'
control-openhands browser click '[data-testid=profile-row]:has([title="QA_KNOWN_SAVE_REASON"]) >> testid=profile-menu-trigger'
control-openhands browser click 'testid=profile-edit'
control-openhands browser click 'testid=sdk-section-all-toggle'
control-openhands browser fill 'testid=sdk-settings-llm.max_input_tokens' 16000
control-openhands browser toasts --history --clear
control-openhands browser network --clear
control-openhands browser click 'testid=save-profile-btn' --observe 'testid=save-profile-btn' --observe-ms 3000
control-openhands assert --field recent.0.status --equals 500 -- browser network --filter '/api/profiles/QA_KNOWN_SAVE_REASON'
control-openhands assert --field text --equals 'Edit LLM Profile' -- browser text 'testid=profile-editor-title'
control-openhands browser screenshot --feature F10.edit --name server-save-reason
control-openhands assert --field toasts.0.text --matches 'configured model.*16,000.*below the minimum of 16,384' -- browser toasts
Gotchas
- Save always runs a real completion against the provider (except for connection-linked profiles). A bad or missing key fails fast with the provider's message; budget one tiny call per Save.
- The editor's starting tab is inferred from the values it loads. Edit opens on whichever tab the profile's non-default values need (
QA_renamedandQA_advopened on Basic,QA_brokenon All). A new editor opens on Basic only while the agent's LLM settings are all defaults: once the Default profile has a temperature (the schema step) it opens on All, and this survives deleting every profile, because the agent settings keep the last applied values. Click the tab you need before touching its fields, orllm-provider-input/llm-custom-model-input/llm-api-key-help-anchorwill not exist. control-openhands service stop agent-servercannot show this page's error states: the whole app switches to the disconnected-backend screen.- In Edit,
llm-api-key-inputholds the stored encrypted key token (about 140 masked characters), not an empty field. Never runbrowser valueon it: it prints the token. Leave it untouched to keep the key. - An open provider or model listbox intercepts clicks on the editor's buttons (
cancel-profile-btn,save-profile-btntime out with "subtree intercepts pointer events"):browser press Escapefirst. - Provider and model options render in a portal outside the editor and modals: select
testid=provider-item-<name>unscoped. Only verified providers haveprovider-item-*IDs and only Other models havemodel-item-*IDs; userole=option[name="..."][exact]for the rest.browser testids --filter model-itemlists only items scrolled into view;browser countfinds the rest. - The auto-filled Profile Name never reuses an existing profile's name: picking a model whose name is already a profile's (for example
deepseek-flashafterllm preset deepseek) empties the field, which disables Save. Recipes fillprofile-name-inputwith aQA_*name anyway. - A duplicate profile name is flagged:
aria-invalidtrueand a taken-name alert. The alert has its own wording,An LLM profile with this name already exists. β¦. - The Rename modal does not check duplicates client-side (Rename stays enabled); the server's 409 comes back as the toast
Profile '<name>' already exists, andbrowser errors --app-onlycounts onehttp-errorand oneconsole.errorfor it. - Set as default (and deleting the Default) rewrites the agent's active LLM settings (
control-openhands llm show). Deleting every profile leaves the last applied model and key in agent settings. - The app never leaves profiles without a Default:
src/routes/root-layout.tsxrunsuseEnsureActiveProfile(src/hooks/use-ensure-active-profile.ts), which activates the first profile with a key (else the first profile) whenever profiles exist but none is Default, whether never activated or because the Default was deleted (this is what promotes a profile inF10.delete-default). Sollm set --no-activatekeeps the Default only while another profile is Default: on a run whose only profile is the arranged one,control-openhands api GET /api/profiles --pick active_profileflips fromnullto it at the next page load (browser reload) and the agent's LLM settings follow (llm show). - Profiles created by Add models are named from the model (
deepseek-chat, β¦), notQA_*. The chooser hides a model when a profile with that name exists, not when a profile uses that model. Clean them up before the connection: the server refuses to delete a connection while profiles reference it. - A profile linked to a missing connection is grouped under a header showing the raw connection id (
00000000β¦) instead of a name. - The All tab logs many
[i18n] Missing translation for key "SCHEMA$LLM$..."console warnings; they are not page errors. - The list follows the server's order, which sorts by profile file name:
QA_pro-copy-1lists beforeQA_pro-copy(-sorts before.json's.). Do not assert a strict alphabetical order on names that are prefixes of each other. - Toasts last only a few seconds. A
browser screenshottaken after a slow command can miss them, so assert withbrowser wait-textorbrowser toasts. - A new profile keeps the inherited LLM options the editor shows, such as temperature.
Subscription models are not loaded yet.uses the translatedSETTINGS$SUBSCRIPTION_MODELS_NOT_LOADEDcopy in settings and onboarding. It shows when a subscription profile is saved beforeGET /api/llm/subscription/openai/modelsanswers; checking that branch needs the real request to be pending or failed.- Known issue #17785: Saving DeepSeek-v4-flash on Windows Desktop can fail with missing cache_creation_tokens instead of saving. The reported path needs a Windows Desktop 1.24.0 environment with its SDK dependency resolution and an approved DeepSeek key; this macOS source run cannot establish that result. (
F10.create-validation). - Known issue #17391: ChatGPT Business subscription login can be refused or use a fallback model with a 404. Completing the entitlement and selected-model checks needs an approved ChatGPT Business workspace login and the reported Docker subscription runtime. (
F10.subscription). - Known issue OpenHands/software-agent-sdk#5181: The SDK can turn an advertised output limit into a requested default cap and silently drop an explicitly enabled reasoning_effort. The narrowed maintainer scope needs an authenticated OpenRouter/proxy route exposing lower-limit endpoints and capability metadata, or a real endpoint accepting the explicit override; a synthetic empty-metadata response would not establish production behavior. (
F10.schema-validation). - Known issue OpenHands/software-agent-sdk#4934: Switching to a MiniMax M3 profile can fail because the SDK sends unsupported reasoning_effort. The runtime switch needs approved working credentials for the starting model and MiniMax route; the reported provider rejection cannot be proved with a loopback connection error. (
F10.schema-validation,F10.default-used). - Known issue OpenHands/software-agent-sdk#4613: A namespaced model such as openai/openai/example-model can have its inner provider prefix stripped again in Responses API and reach the provider as example-model. Reproduction needs an approved OpenAI-compatible endpoint serving the namespaced model and its exact stored API-mode settings; a loopback connection refusal cannot prove the outbound identifier. (
F10.custom-model). - Known issue OpenHands/software-agent-sdk#4511: Disabling prompt caching can still emit cache_control on preexisting cache-marked tool messages. The report only supplies a Python serializer reproduction; a Canvas check needs the exact persisted/tool-message precondition and a provider request that exposes the cache markers, with approved model access. (
F10.schema-validation). - Known issue OpenHands/software-agent-sdk#4247: An LM Studio configuration can fail with LLM Provider NOT provided although its models endpoint works. Reproduction needs the reachable LM Studio service and the exact model ID/provider-qualified config, which the report does not supply as text; the reported CLI/Docker SDK 1.16.1 installation is not this source stack. (
F10.custom-model). - Known issue OpenHands/software-agent-sdk#5890: Switching the conversation LLM can lose the managed-key refresh-on401 hook. The fix (OpenHands/software-agent-sdk#5904) is in no agent-server release up to the pinned 1.57.0; re-drive once the pin includes it. Blocked: needs an approved managed-key refresh source and an allow-listed real model endpoint that returns 401 and accepts the refreshed key. Refused loopback cannot establish the refresh/retry outcome; do not supply a fake successful completion. (
F10.edit,F10.default-used). - Known issue OpenHands/software-agent-sdk#5862: DeepSeek invalid-key401 responses can be classified as bad-request errors. Blocked by this pass's loopback-only provider routing: a real invalid-key validation request to DeepSeek must be authorized to capture its actual 401 shape. No usable key or successful inference is needed, but a loopback connection error does not prove this classification. (
F10.create-validation). - Known issue OpenHands/software-agent-sdk#5838: A live LLM switch during a running tool step can be acknowledged before the new LLM is persisted for GET/restart. Blocked: needs a genuine model-issued bounded tool step (for example
sleep 20) and an approved starting model. Refused-loopback initialization never enters that step. (F10.default-used). - Known issue #17806: A model-only Save must preserve an untouched key. Current SDK 1.55 refused-loopback validation rejects Save before persistence; the stored key marker remains set. Completing Basic/Advanced preserved-key and runtime-switch proof needs an approved route that accepts preflight. Keep dummy traffic on refused loopback until an external route is authorized; a rejected Save does not establish either key loss or successful preservation through Save. (
F10.edit). - Known failure (reproduced 2026-10-17, OpenHands/software-agent-sdk#6026) (
F10.edit): validating or saving Max Input Tokens16000, below the 16,384 minimum, answers 500 instead of a client 4xx. Canvas displays the server's context-window reason and keeps the editor open; the separate Agent Server status-code defect remains.