Preview — local backends only. This feature is currently available on
local agent-server backends. Cloud support is planned. UI labels and the
flow are subject to change while the feature is in review
(see OpenHands/OpenHands#15492).
How it works
- Open
Settings > Model providersand choose Add provider. - Pick a provider from the preset list (Custom endpoint, OpenAI, Anthropic, Azure OpenAI, Foundry Local, Microsoft Foundry, and others). Use the search box to filter.
- Fill in the provider form:
- Display name — the name shown on the provider card.
- Base URL — the OpenAI-compatible root for the provider or gateway,
for example
https://api.openai.com/v1. - Wire API — the wire format the endpoint speaks:
Auto,Chat Completions, orResponses. Individual models can override this. - API key — the key issued by that provider or gateway. It is stored in your OS keychain and never written to the database.
- Custom headers (JSON) — optional object of extra HTTP headers, such as
{"X-Org": "eng"}.
- Save the provider. It appears as a card in the Configured providers list.
Manage models under a provider
Each provider card lists the models you have added under it. Because the key and endpoint live on the provider, managing models never asks for the key again:- Add model — use the
+affordance on the provider to add a model by name (for examplegpt-5.6-luna). Optionally set a per-model Wire API override when a single model speaks a different format than the provider default. - Edit model — rename a model or change its per-model wire-API override.
- Remove model — delete an individual model row from the provider.
Edit a provider or rotate its key
Use the edit (pencil) control on a provider card to change its display name, base URL, wire API, or custom headers, or to rotate the key. Rotating the key updates the single named secret, so every model under the provider uses the new key on its next run — there is nothing to re-enter per model.Remove a provider
Use the delete (trash) control on a provider card and confirm to remove the provider. This deletes the provider record, its nested models, and the named secret that held its key.Model providers vs. LLM Profiles
Model providers sit alongside the LLM Profiles list in
Settings > Model providers. They do not replace profiles — a profile still
selects the exact model for a conversation. A provider lets you establish the
key once so every model under it can reuse it.
Availability and follow-ups
The following are not part of the preview and will arrive in follow-up releases:- Cloud backends — the page is available on local agent-server backends;
the
deployapp-server mirror for cloud is planned. - Background catalog refresh — an automatic, periodic refresh of a provider’s advertised models.
- Multiple keys per provider — holding more than one key on the same provider (for example, separate work and personal keys).

