🙌 OpenHands: AI-Driven Development
F11 — Provider connections
A provider connection is a named, shared credential (provider, API key, optional base URL) that many LLM profiles link to instead of carrying their own key. Under Settings → LLM, below Available Profiles, a user lists connections with their linked-model count, adds them, edits them (rename, provider, base URL, key rotation with a blank key meaning "keep"), bulk-adds linked profiles from a row's menu, and deletes them; the server refuses to delete a connection that a profile or the active settings still reference.
Source: src/components/features/settings/llm-profiles/provider-connections-manager.tsx, src/components/features/settings/llm-profiles/provider-connection-row.tsx, src/components/features/settings/llm-profiles/provider-connection-actions-menu.tsx, src/components/features/settings/llm-profiles/provider-connection-modal.tsx, src/components/features/settings/llm-profiles/delete-provider-connection-modal.tsx, src/components/features/settings/llm-profiles/llm-profiles-manager.tsx, src/api/provider-connections-service/.
Sub-features
F11.list-empty: with no connections the section shows the headingProvider connections, the sublineShare one API key across multiple models., Add connection andNo provider connections yet. Add one to share an API key across models.F11.list: each row shows the name, the provider,<n> model(s)(profiles linked to it), a green key-set icon and a...menu labelledProvider connection menu; the section is reachable from the settings nav, the command menu and the URL.F11.create-validation: in Add provider connection focus starts on Name; Save stays disabled until Name, a picked Provider and API Key are non-blank (whitespace does not count); a provider typed but not picked is cleared; Enter does not submit.F11.provider-picker: the Provider combobox listsVerified Models(OpenHands, Anthropic, OpenAI, …, deepseek, …) andOther Modelsgroups and filters as you type.F11.create: Save creates the connection (toastConnection "<name>" created); the row persists after a reload and a backend restart; the key is stored but never shown.F11.create-cancel: Cancel, Escape and a backdrop click close the modal without creating anything; reopening starts empty.F11.create-error: a server rejection (for example a name over 128 characters) keeps the modal open and toasts a readable message.F11.row-menu: the...menu offers Bulk add, Edit, Delete; Escape, a click outside or a second trigger click close it; ArrowUp/ArrowDown move and wrap; Tab closes it.F11.row-menu-focus: opening the menu moves focus to its first item (Bulk add).F11.edit: Edit opensEdit provider connectionprefilled (key blank with placeholder<hidden>and hintLeave blank to keep the current key.); rename, provider and base URL changes persist (toastConnection "<name>" updated), a cleared base URL is stored as none, a blank name disables Save, and a rename shows in the linked profiles' group header.F11.add-models: Bulk add opensAdd models as profileswith the row's provider and connection preselected; the profiles it adds are linked and the row's count goes up.F11.agent-uses-connection: a conversation on a profile linked to the connection runs with the connection's key; an Edit with the key left blank keeps it working.F11.rotate: typing a new key rotates it for new conversations: an invalid key makes the next conversation fail with the provider's authentication error and no reply; rotating back restores replies.F11.delete: Delete asksAre you sure you want to delete the connection "<name>"?(focus on Cancel); Cancel and Escape keep it; Delete removes it (toastConnection "<name>" deleted).F11.delete-referenced: deleting a connection that profiles or the active settings reference is refused with the server's message naming them; the dialog stays open and the row stays.F11.delete-stale-reference: once its last linked profile is deleted (row shows0 model(s)) the connection can be deleted, or the UI says how to clear the remaining reference.F11.phone: at 390 px the rows, the row menu and the modals fit without horizontal overflow.F11.load-error: if listing connections fails (for example an unreadable connections store,GET /api/llm/provider-connections400), the section showsFailed to load provider connections.(provider-connections-load-error) in red while the profiles list and Add connection still render.F11.long-name: a name at the 128-character limit is accepted; the row truncates the name and provider with an ellipsis, shows the full name as a hover tooltip (title) and keeps the...trigger in view at desktop and phone width.F11.edit-unlisted-provider: a connection whose provider is not in the provider catalog (created through the API) opens in Edit with that provider preselected and listed underOther Models, and saving keeps it.F11.cloud: on Cloud the section appears only with an organization bound and for members allowed to manage profiles; local users always see it.
How to get to it (user POV)
- Sidebar settings gear (
backend-selector-settings-link), then LLM in the settings navigation (sidebar-settings-/settings/llm); the section sits below Available Profiles. - Direct URL
/settings/llm. - Command menu (
Control+k/Meta+k, orcommand-menu-trigger): searchLLM, choose LLM profiles. Searchingprovider connectionfinds nothing. - Add connection (
add-provider-connection) opens the create modal; each row's...(provider-connection-menu-trigger) opens Bulk add / Edit / Delete. - Elsewhere (other families): Model Router's editor has its own Add connection (
meta-profile-add-provider-connection, see F12); the LLM profile editor links a profile to a connection and Add from provider connections bulk-adds without a preselected connection (see F10).
Driving it with control-openhands
Preconditions:
A fresh
control-openhands launch --new, doctored,onboard --skipdone, desktop viewport. Do not runllm preset deepseekbefore this family: the recipes need no LLM profile and no connection (control-openhands api GET /api/profileslists none,control-openhands api GET /api/llm/provider-connectionsis[]), so the profile added in Bulk add becomes the active one.A DeepSeek key in a file (
<key file>). Pass it only withbrowser fill ... --value-file <key file>; never on the command line.F11.agent-uses-connectionandF11.rotatestart three tiny conversations ondeepseek/deepseek-flash.F11.load-erroris arranged by making the run's own connections store unreadable (a shell arrange step that writes only$OH_VERIFY_RUN/private/provider-connections/provider_connections.json, restored afterwards);service stop agent-serverdoes not work because it replaces the whole page withagent-server-onboarding-screen.Blocked here:
F11.cloud(needs a Cloud account with and without an organization, as owner and as member).Empty state (
F11.list-empty). Runcontrol-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=provider-connections-empty'andcontrol-openhands browser snapshot main. The text isNo provider connections yet. Add one to share an API key across models.; the snapshot shows headingProvider connections, paragraphShare one API key across multiple models.and buttonAdd connection(screenshot--feature F11.list-empty --name empty).Other entry points (
F11.list). Runcontrol-openhands browser goto /(Empty state ends 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' LLM(browser snapshot 'testid=command-menu'shows the selected optionLLM profiles Manage models, providers, and API keys. Go),control-openhands browser press Enter,control-openhands browser wait-url '/settings/llm', thencontrol-openhands browser count 'testid=add-provider-connection'(1).control-openhands browser goto /settings/llmshows the same section.Validation and provider picker (
F11.create-validation,F11.provider-picker). Runcontrol-openhands browser click 'testid=add-provider-connection';control-openhands browser snapshot 'role=dialog'showsAdd provider connectionwith Name, Provider, API Key,Base URL OptionalandSave[disabled], andcontrol-openhands browser eval "document.activeElement.getAttribute('data-testid')"isprovider-connection-name-input. Fillcontrol-openhands browser fill 'testid=provider-connection-name-input' QA_conn;control-openhands browser enabled 'testid=provider-connection-submit'staysfalse. Runcontrol-openhands browser click 'testid=provider-connection-provider-input'andcontrol-openhands browser snapshot 'role=listbox': groupsVerified Models(OpenHands, Anthropic, OpenAI, Mistral AI, Gemini, deepseek, Moonshot, minimax, glm, nvidia, qwen, OpenRouter; OpenRouter is listed since 2026-10-08 or earlier) andOther Models. The field shows the provider's label, not its id: pickingtestid=provider-item-openaimakesbrowser value 'testid=provider-connection-provider-input'OpenAI.control-openhands browser fill 'testid=provider-connection-provider-input' deepnarrows it todeepseek(verified) anddeepgram,DeepInfra; thencontrol-openhands browser click 'testid=provider-item-deepseek'andcontrol-openhands browser value 'testid=provider-connection-provider-input'isdeepseek. Save is still disabled;control-openhands browser fill 'testid=provider-connection-api-key-input' ' 'keeps it disabled, and a name of only spaces does too. A provider typed but not picked is cleared:control-openhands browser fill 'testid=provider-connection-provider-input' deepse,control-openhands browser click 'testid=provider-connection-name-input', thenbrowser value 'testid=provider-connection-provider-input'is empty (pick deepseek again afterwards). Enter does not submit: with every field valid (enabledtrue),control-openhands browser press Enterin the Name field leavesbrowser count 'testid=provider-connection-modal'at1and creates nothing (api GET /api/llm/provider-connections).Create (
F11.create). In the same modal runcontrol-openhands browser fill 'testid=provider-connection-api-key-input' --value-file <key file>(enabledturnstrue,browser attr 'testid=provider-connection-api-key-input' typeispassword),control-openhands browser click 'testid=provider-connection-submit'andcontrol-openhands browser wait-text 'Connection "QA_conn" created'.control-openhands browser count 'testid=provider-connection-modal'is0. Aftercontrol-openhands browser reload,control-openhands browser text 'testid=provider-connection-row >> has-text=QA_conn'isQA_conn\ndeepseek\n0 model(s)andcontrol-openhands api GET /api/llm/provider-connectionslists it with"api_key_set": trueand"base_url": null(the key itself is never returned).Row (
F11.list). Runcontrol-openhands browser count 'testid=provider-connection-row >> has-text=QA_conn >> testid=set-indicator'(1),control-openhands browser attr 'testid=provider-connection-row >> has-text=QA_conn >> testid=provider-connection-menu-trigger' aria-label(Provider connection menu) andcontrol-openhands browser screenshot 'testid=provider-connection-row' --feature F11.list --name row(name, muted provider,0 model(s), green check, vertical dots).Cancel (
F11.create-cancel). Runcontrol-openhands browser click 'testid=add-provider-connection',control-openhands browser click 'role=dialog >> role=button[name="Cancel"]';browser count 'testid=provider-connection-modal'is0. Reopen,control-openhands browser fill 'testid=provider-connection-name-input' QA_escape,control-openhands browser press Escape(count0); reopen:control-openhands browser value 'testid=provider-connection-name-input'is empty;control-openhands browser mouse-click 50 500closes it too.api GET /api/llm/provider-connectionslists noQA_escape.Server error (
F11.create-error). Runcontrol-openhands browser click 'testid=add-provider-connection',control-openhands browser fill 'testid=provider-connection-name-input' "QA_$(printf 'x%.0s' $(seq 1 127))"(130 characters), pick deepseek as above,control-openhands browser fill 'testid=provider-connection-api-key-input' dummy-key-3,control-openhands browser click 'testid=provider-connection-submit', thencontrol-openhands browser toastsandcontrol-openhands browser count 'testid=provider-connection-modal'. The modal stays open (1) and the toast readsString should have at most 128 characters(pass on main@3500d9e with Agent Server 1.53.0; screenshot--feature F11.create-error --name toast). Close withrole=dialog >> role=button[name="Cancel"].Second connection. Create
QA_sparethe same way withdummy-key-2as key andcontrol-openhands browser fill 'testid=provider-connection-base-url-input' 'not a url'(accepted: base URLs are not validated). ToastConnection "QA_spare" created.Row menu (
F11.row-menu,F11.row-menu-focus). Runcontrol-openhands browser click 'testid=provider-connection-row >> has-text=QA_spare >> testid=provider-connection-menu-trigger'andcontrol-openhands browser snapshot 'testid=provider-connection-actions-menu': menuitemsBulk add,Edit,Delete(screenshot--feature F11.row-menu --name open).control-openhands browser eval "document.activeElement.getAttribute('data-testid')"should beprovider-connection-add-models; Known failure (reproduced twice 2026-10-16, #18204): it staysprovider-connection-menu-triggerand ArrowDown does nothing untilcontrol-openhands browser press Tabmoves focus to Bulk add. From therebrowser press ArrowDownfocusesprovider-connection-edit, twoArrowUpwrap toprovider-connection-delete, andbrowser press Tabcloses the menu (browser count 'testid=provider-connection-actions-menu'0). Reopen andbrowser press Escape(0); reopen and click the trigger again (0); reopen andcontrol-openhands browser click 'text=Share one API key across multiple models.'(0).Edit (
F11.edit). Run the trigger click above, thencontrol-openhands browser click 'testid=provider-connection-actions-menu >> testid=provider-connection-edit'andcontrol-openhands browser snapshot 'role=dialog':Edit provider connection, NameQA_spare, Providerdeepseek,API Key Leave blank to keep the current key.with placeholder<hidden>, Base URLnot a url;browser value 'testid=provider-connection-api-key-input'is empty and Save is enabled. Runcontrol-openhands browser fill 'testid=provider-connection-name-input' QA_edited,control-openhands browser fill 'testid=provider-connection-base-url-input' 'https://api.deepseek.com',control-openhands browser click 'testid=provider-connection-submit'andcontrol-openhands browser wait-text 'Connection "QA_edited" updated'. Afterbrowser reloadthe row readsQA_edited\ndeepseek\n0 model(s), theQA_sparecount is0, andapi GET /api/llm/provider-connectionsshowsbase_urlhttps://api.deepseek.comandapi_key_settrue. Edit again: fill the name with' '(browser enabled 'testid=provider-connection-submit'false), restoreQA_edited,control-openhands browser fill 'testid=provider-connection-base-url-input' '', Save,browser wait 'testid=provider-connection-modal' --state detached; the API showsbase_urlnull.Bulk add (
F11.add-models). Runcontrol-openhands browser click 'testid=provider-connection-row >> has-text=QA_conn >> testid=provider-connection-menu-trigger'andcontrol-openhands browser click 'testid=provider-connection-actions-menu >> testid=provider-connection-add-models'. The dialogAdd models as profileshas providerdeepseekselected,control-openhands browser eval "[...document.querySelectorAll('[data-testid=add-models-connection] option')].map(o=>o.textContent+'='+o.selected).join(' | ')"isNo connection (keyless)=false | QA_conn=true | QA_edited=false, andbrowser text 'testid=add-models-submit'isAdd 12 profiles(every model checked). Runcontrol-openhands browser uncheck 'testid=add-models-select-all'(Add 0 profiles),control-openhands browser check 'testid=add-models-check-deepseek/deepseek-flash'(Add 1 profiles),control-openhands browser click 'testid=add-models-submit'andcontrol-openhands browser wait-text 'Added 1'. Afterbrowser reloadtheQA_connrow readsQA_conn\ndeepseek\n1 model(s)(QA_editedstays0 model(s)), andapi GET /api/profilesshowsdeepseek-flashwithprovider_connection_idand"active_profile": "deepseek-flash".The agent uses the connection's key (
F11.agent-uses-connection). Open Edit onQA_conn(as above), leave the key blank, clicktestid=provider-connection-submitandbrowser wait-text 'Connection "QA_conn" updated'. Runcontrol-openhands conversation start --prompt "Reply with exactly the word: pong" --wait --timeout 180(prints<id>,"model": "deepseek/deepseek-flash", statusfinished), thencontrol-openhands conversation events <id> --kinds ConversationErrorEvent,MessageEvent: the agent message ispongand there is noConversationErrorEvent.Rotate the key (
F11.rotate). Runcontrol-openhands browser goto /settings/llm, open Edit onQA_conn,control-openhands browser fill 'testid=provider-connection-api-key-input' sk-qa-invalid-0000, Save andbrowser wait-text 'Connection "QA_conn" updated'. Runcontrol-openhands conversation start --prompt "Reply with exactly the word: ping" --wait --timeout 180andcontrol-openhands conversation events <id> --kinds ConversationErrorEvent,MessageEvent. Expected: aConversationErrorEventand no agent reply. Today the conversation shows the bannerlitellm.BadRequestError: DeepseekException - ... Authentication Fails, Your api key: ****0000 is invalid(so the new key was used), yet the agent still answerspingin the same turn (fail, screenshot--feature F11.rotate --name bad-key). Rotate back:browser goto /settings/llm, EditQA_conn,control-openhands browser fill 'testid=provider-connection-api-key-input' --value-file <key file>, Save; a newconversation start --prompt "Reply with exactly the word: pong" --wait --timeout 180haspongand noConversationErrorEvent.Rename a linked connection (
F11.edit). Runcontrol-openhands browser goto /settings/llm, EditQA_conn, fill the name withQA_shared, Save andbrowser wait-text 'Connection "QA_shared" updated'. Afterbrowser reload,control-openhands browser text 'testid=profile-group-header'isQA_SHARED(CSS upper-case).Delete is refused while referenced (
F11.delete-referenced). Runcontrol-openhands browser click 'testid=provider-connection-row >> has-text=QA_shared >> testid=provider-connection-menu-trigger',control-openhands browser click 'testid=provider-connection-actions-menu >> testid=provider-connection-delete',control-openhands browser click 'testid=delete-provider-connection-confirm', thencontrol-openhands browser toasts:Provider connection cannot be deleted while it is referenced by LLM profile(s): deepseek-flash and referenced by the active agent settings. Update those references before deleting it.The dialog stays open (browser count 'role=dialog'>0); close it withrole=dialog >> role=button[name="Cancel"]; afterbrowser reloadthe row is still there.Delete (
F11.delete). Runcontrol-openhands browser click 'testid=provider-connection-row >> has-text=QA_edited >> testid=provider-connection-menu-trigger',control-openhands browser click 'testid=provider-connection-actions-menu >> testid=provider-connection-delete'andcontrol-openhands browser snapshot 'role=dialog':Delete provider connection,Are you sure you want to delete the connection "QA_edited"?, buttonsCancelandDelete;browser eval "document.activeElement.textContent"isCancel(screenshot--feature F11.delete --name confirm).control-openhands browser click 'role=dialog >> role=button[name="Cancel"]'keeps the row; reopen andbrowser press Escapekeeps it too. Reopen,control-openhands browser click 'testid=delete-provider-connection-confirm',control-openhands browser wait-text 'Connection "QA_edited" deleted',browser reload:browser count 'testid=provider-connection-row >> has-text=QA_edited'is0.Phone layout (
F11.phone). Runcontrol-openhands browser viewport phone,control-openhands browser scroll 'testid=add-provider-connection',control-openhands browser bbox 'testid=provider-connection-row >> nth=0'(insideViewporttrue,pageHorizontalOverflowfalse) andbrowser screenshot --feature F11.phone --name list. Open theQA_sharedrow menu:browser bbox 'testid=provider-connection-actions-menu'is inside the viewport. Clicktestid=provider-connection-actions-menu >> testid=provider-connection-edit:browser bbox 'testid=provider-connection-modal'andbrowser bbox 'testid=provider-connection-submit'are inside the viewport (screenshot--name edit-modal). Cancel, thencontrol-openhands browser viewport desktop.Long name and provider change (
F11.long-name,F11.edit). Create a connection named"QA_long$(printf 'x%.0s' $(seq 1 121))"(128 characters) with deepseek anddummy-key-5as above: toastConnection "QA_long…" created, modal closed.control-openhands browser tooltip 'testid=provider-connection-row >> has-text=QA_long >> span[title]'returns the full 128-character name (sourcetitle attribute),browser evalon that span showsscrollWidth > clientWidthwithtext-overflow: ellipsis, andbrowser bbox 'testid=provider-connection-row >> has-text=QA_long'isinsideViewporttrue,pageHorizontalOverflowfalse(screenshot--feature F11.long-name --name row). Atbrowser viewport phoneafterbrowser scroll 'testid=add-provider-connection',browser bbox 'testid=provider-connection-row >> has-text=QA_long >> testid=provider-connection-menu-trigger'is inside the viewport with no horizontal overflow (screenshot--name phone); back tobrowser viewport desktop. Open Edit onQA_long:browser count 'testid=provider-connection-modal >> testid=set-indicator'is1(green key-set check beside API Key).control-openhands browser choose 'testid=provider-connection-provider-input' Anthropic, Save,browser wait 'testid=provider-connection-modal' --state detached,browser reload: the row readsQA_long…\nanthropic\n0 model(s)andapi GET /api/llm/provider-connectionsshows"provider": "anthropic".Persistence across a backend restart (
F11.create). Runcontrol-openhands restartandcontrol-openhands browser reload;browser eval "[...document.querySelectorAll('[data-testid=provider-connection-row]')].map(r=>r.innerText.replace(/\n/g,'|')).join(' ; ')"lists the same rows and counts as before (for exampleQA_shared|deepseek|1 model(s) ; QA_long…|anthropic|0 model(s)).Unlisted provider (
F11.edit-unlisted-provider). Arrange (not proof)control-openhands api POST /api/llm/provider-connections --data '{"display_name":"QA_custom","provider":"qa_unlisted","api_key":"dummy-key-6","base_url":null}' --write(201), thenbrowser reload: the row readsQA_custom\nqa_unlisted\n0 model(s). Open Edit onQA_custom:browser value 'testid=provider-connection-provider-input'isqa_unlisted;browser clickthat input,browser fill ... qa_andbrowser snapshot 'role=listbox'shows only groupOther Modelswith optionqa_unlisted[selected]. Click'role=option[name="qa_unlisted"]', fill the name withQA_custom2, Save: toastConnection "QA_custom2" updatedand the API still shows"provider": "qa_unlisted". DeleteQA_custom2andQA_longthrough their row menus andtestid=delete-provider-connection-confirm(wait for the confirm button--state detachedbetween them);api GET /api/llm/provider-connectionslists onlyQA_shared.Stale reference and cleanup (
F11.delete-stale-reference). Delete the linked profile (F10):control-openhands browser click '[data-testid=profile-row]:has([title="deepseek-flash"]) >> testid=profile-menu-trigger',control-openhands browser click 'testid=profile-actions-menu >> testid=profile-delete',control-openhands browser click 'testid=delete-profile-confirm'(toastProfile "deepseek-flash" deleted). Afterbrowser reloadtheQA_sharedrow reads0 model(s). DeleteQA_sharedthrough its row menu andtestid=delete-provider-connection-confirm. Expected: it is deleted. Today the toast isProvider connection cannot be deleted while it is referenced by the active agent settings. Update those references before deleting it.and nothing on the page clears that reference (fail, screenshot--feature F11.delete-stale-reference --name refused). To finish cleanup, close the dialog, arrange an unlinked active profile withcontrol-openhands llm preset deepseek --api-key-file <key file>(this is the arrange step, not proof),browser reload, deleteQA_sharedthrough the row menu (toastConnection "QA_shared" deleted),browser reload:testid=provider-connections-emptyis back andapi GET /api/llm/provider-connectionsis[].Load error (
F11.load-error). With the baseline restored (connections[]), run the shell arrange step (it writes only this run's state; the file exists only once the run has created a connection, as the bullets above do, so on a run that never created onecpfails: create and delete one through Add connection first)F=$OH_VERIFY_RUN/private/provider-connections/provider_connections.json; cp $F $F.bak; printf '{not json' > $F.control-openhands api GET /api/llm/provider-connectionsis now400(Provider connections file is unreadable: ...) whileapi GET /api/profilesis200. Runcontrol-openhands browser reload,control-openhands browser text 'testid=provider-connections-load-error'(Failed to load provider connections.),browser count 'testid=add-provider-connection'(1) andbrowser count 'testid=profile-row'(>0; screenshot--feature F11.load-error --name error). The message uses the theme's error colour (browser eval "getComputedStyle(document.querySelector('[data-testid=provider-connections-load-error] p')).color":rgb(231, 106, 94)on OpenHands-Neutral,rgb(192, 40, 45)on Light+, #18330). The profile rows render only because no profile links to a connection at this point: with a linked profileGET /api/profilesfails with the same400and the list above showsFailed to load profilesinstead (F10.list-states). Restore withcp $F.bak $F && rm $F.bak,browser reload:testid=provider-connections-emptyis back andprovider-connections-load-errorcount is0.Errors sweep.
control-openhands browser errors --app-onlyshowspageErrors0; the HTTP errors are the deliberatePOST 422(long name), twoDELETE 409(referenced, then the stale reference) and theGET 400from the load-error arrange, all on/api/llm/provider-connections. Runbrowser errors --clearafterwards.Redacted key is rejected (
F11.create-validation,F11.edit). AddQA_SENTINEL, choose OpenAI, fill the API Key with the literal**********and Base URL withhttp://127.0.0.1:1/v1. Use the native keyboard Save (browser focus 'testid=provider-connection-submit',browser press Space; the provider listbox can intercept pointer clicks). Readapi GET /api/llm/provider-connections --pick 0.api_key_set. Expected: reject the placeholder. Known failure, reproduced 2026-10-12 (OpenHands/software-agent-sdk#5624): creation succeeds withapi_key_set: false. Editing that row, typing the same placeholder and keyboard-saving succeeds and changes it totrue. A second create underQA_SENTINEL_2again succeeds with the key unset. The UI already prevents a whitespace-only key; this recipe drives the sentinel branch, not provider authentication. Remove both unreferenced fixture connections afterwards.Store lock keeps unrelated routes responsive (
F11.list). Hold only the ownprivate/provider-connections/.provider-connections.lockfrom an external run-owned process usingfcntl.flock(..., LOCK_EX)for 34 seconds. Start an authenticated provider-connections list request, then request the own Agent Server's/alivetwo seconds later; reload the actual LLM page and capture its stalled loading state. Expected:/aliveanswers within two seconds while the store request waits. Known failure, reproduced twice 2026-10-12 (OpenHands/software-agent-sdk#5632):/alivereturned 200 after 25.416 and 28.060 seconds. A direct request with a 45-second client deadline received the store's 503 after 30.052 seconds; the CLI's shorter request instead timed out. Release/close the own lock and rundoctor; do not hold or alter any other run's stores.Connection URL edit reaches next chat (
F11.edit,F11.agent-uses-connection). Arrange a disposable OpenAI connectionQA_URL_PATCHwith a dummy key andhttp://127.0.0.1:1/v1, plus an activated linkedQA_URL_LINKEDprofile without inline key/Base URL. From/settings/llm, open the exact connection row menu >provider-connection-edit, changeprovider-connection-base-url-inputtohttp://127.0.0.1:1/v2and submit;api GET /api/llm/provider-connectionsconfirms the stored URL. Start a fresh Home chat with a bounded no-tools prompt, then read onlyagent.llm.base_urlin its run-ownedbase_state.json. Repeat the real edit to/v3and start another chat. Expected: each new runtime uses the newly saved URL. Known failure, reproduced twice 2026-10-12 (#17803): the connection persisted/v2and/v3, but settings and both new runtimes retained the activated/v1snapshot. All model endpoints refuse on loopback; no provider success is needed to observe resolution. Restore the neutral active profile, then delete only the own linked profile and connection.
Gotchas
- Select the Provider by clicking an option (
testid=provider-item-<name>exists only for verified providers; use'role=option[name="<label>"]'for the others), or withbrowser choose 'testid=provider-connection-provider-input' <label>.browser fillalone types a filter that is cleared on blur and leaves Save disabled. browser fill ... --value-file <key file>needs no positional value and prints only the length; keep keys out of commands and screenshots (the field is a password input).- Duplicate display names are accepted (two rows called
QA_conn), and so is any base URL text; rows then differ only by order ('testid=provider-connection-row >> nth=1'). Keep fixture names unique. - Edit's Save is enabled even with no changes, and a blank key on Edit is omitted from the request (the stored key is kept); there is no way to clear a key.
- The delete spinner (
aria-busy) lasts under 100 ms on a local stack;--observesees onlyDeletethen<absent>. role=dialogmatches two nested elements in these modals; count> 0, do not expect1.- The first profile added on a run with no profiles becomes the active one. Activating a linked profile copies the resolved key into the active agent settings, which keep the connection id: that is why the server still counts a reference after every linked profile is gone (see
F11.delete-stale-reference) (OpenHands/software-agent-sdk#5498). - Delete a connection's linked profiles before the connection; then also make an unlinked profile active, or the delete is refused.
- Rotation results are read from the conversation (
conversation events ... --kinds ConversationErrorEvent,MessageEventand the banner in the chat), not from the settings page, which never shows the key. - Model Router's Add connection reuses this modal (F12); its toasts and fields are the same.
F11.load-errorneeds a real server failure: the recipe corrupts this run's ownprovider_connections.jsonand restores it. Always restore it (keep the.bak), or every later family on the run sees the error; never touch another run's state.- At phone width a long name squeezes the provider column to one letter (
d…); the full values stay in the API and the name'stitle. - Known issue OpenHands/software-agent-sdk#5497: after a key rotation, new conversations still run agent steps on the old key; only title generation uses the new one (
F11.rotate). - Known issue OpenHands/software-agent-sdk#5207: OpenRouter linked profiles can lose connection credentials at raw agent/condenser startup or reuse stale credentials after rotation; opaque reasoning can also be lost on persisted turns. End-to-end checks need an approved OpenRouter connection and a model returning reasoning_details, including the linked-profile switch and reload path; loopback failure does not prove them. (
F11.agent-uses-connection,F11.rotate).