Preview — local backends only. Provider connections are available on
local agent-server backends only; the section does not appear on cloud
backends. Cloud support is planned. UI labels and the flow may still change
(see OpenHands/OpenHands#15492).
Where to find it
OpenSettings > LLM. On a local agent-server, the Provider connections
section appears below the list of LLM profiles. (On cloud backends the section is
hidden.)
Add a connection
- In the Provider connections section, choose Add connection.
- Fill in the form:
- Name — the display name shown on the connection row (required).
- Provider — a free-text provider identifier. Defaults to
custom; set it to something likeopenaioranthropicwhen you want the row to say so. - API key — the key issued by that provider or gateway (required when creating a connection).
- Base URL — OpenAI-compatible endpoint, for example
https://api.openai.com.
- Save. The connection appears as a row showing its name, provider, the number of profiles linked to it, and an indicator of whether a key is set.
Link a profile to a connection
Provider connections are consumed from the LLM profile form. When you create or edit a profile on a local backend, a Provider connection dropdown lets you point the profile at a saved connection:- When a profile is linked, its inline API key and Base URL inputs are hidden — the profile reads both from the connection at runtime.
- Choose None in the dropdown to unlink the profile and go back to entering a key and base URL directly on the profile.
Edit a connection or rotate its key
Use the edit (pencil) control on a connection row to change its name, provider, or base URL, or to rotate the key. The key field follows the same “blank means unchanged” convention as the profile form: leave it empty to keep the stored key, or type a new value to rotate it. Every linked profile uses the updated connection on its next run — there is nothing to re-enter per profile.Delete a connection
Use the delete (trash) control on a connection row and confirm. If any LLM profiles still reference the connection, the backend refuses the delete and names the profiles that must be unlinked first, so a key in use is never removed out from under a profile.Provider connections vs. LLM profiles
Provider connections do not replace profiles — a profile still selects the exact
model for a conversation. A connection just lets several profiles share one key
instead of each storing its own.
Not in the preview
The following are not part of this preview:- Cloud backends — the section is local-agent-server only for now.
- Provider presets, wire-API selection, and custom headers — the form is a name, a free-text provider, a key, and a base URL.
- Multiple keys per connection — a connection holds a single key.

