[Feature]: Support multiple independent connections using the same provider/protocol adapter
Problem
Users may have multiple API suppliers or relay services that implement the same protocol, such as two OpenAI-compatible endpoints, each with its own base URL, API key, and model configuration. They want to save both connections and switch between them without repeatedly replacing one configuration.
The reported Add Provider workflow does not allow adding another independent connection for an already configured provider type. This is a feature request for multiple connection instances, rather than a request for another protocol adapter.
Proposed behavior
Allow multiple named connections to use the same provider/protocol adapter. For example:
- Relay A: OpenAI-compatible adapter, endpoint A, key A, model A.
- Relay B: the same adapter, endpoint B, key B, model B.
Each connection should have a stable internal ID and an editable display name, with independent endpoint, credentials, and model settings. Users should be able to add, edit, remove, and manually select each connection.
Initial scope: persisted connections and manual selection. Automatic failover, load balancing, and new routing policies are outside this request.
Area
Provider integration; Gateway; Web UI / desktop setup.
Implementation considerations
Source inspection at commit 88b2d4112586129783c987513589ea015b3a6e6d identifies two relevant constraints:
- The provider picker filters configured provider IDs out of the available list, with a special case for the featured provider: SetupProviderCatalogDialog.vue.
- Runtime deployment resolution looks up a profile by provider ID: deployment.py.
Removing the picker filter alone is insufficient. Distinguish adapter/type identity from connection-instance identity throughout persistence and runtime selection. Review model selectors and existing Router/Ensemble references so they remain unambiguous. Preserve existing configurations during migration and keep credentials isolated per connection.
Evidence boundary: the report is supported by supplied UI screenshots and the source inspection above; no packaged runtime reproduction was performed for this issue.
Acceptance criteria
- Two connections using the same adapter can coexist with distinct names, endpoints, credentials, and model settings, including when their model IDs are identical.
- Both connections survive an application restart.
- Selecting either connection sends requests to its configured endpoint with its own credentials and model.
- Editing or deleting one connection does not overwrite or remove the other connection's configuration or credentials.
- Existing single-provider configurations continue to work after migration.
- Existing model and Router/Ensemble references remain unambiguous; deleted or invalid references produce a clear error rather than silently selecting another connection.
Alternatives considered
Manually replacing the endpoint and credentials of one existing configuration does not satisfy the need to retain multiple connections. Reusing unrelated provider types as spare configuration slots would conflate adapter behavior with connection identity.
Priority
P3 / backlog feature enhancement. Track the need and evaluate the configuration design; no target release is committed.
Source: opensquilla/opensquilla