[GH-ISSUE #7158] Proposal: Providers — manage one account for many connections #3998

Closed
opened 2026-10-21 06:09:25 +07:00 by bsakaguchi · 0 comments
Owner

Originally created by @Gunterlie on GitHub (Oct 6, 2026).
Original GitHub issue: https://github.com/Pasta-Devs/Marinara-Engine/issues/7158

Originally assigned to: @Gunterlie on GitHub.

Part of S.O.U.P. — Simplify, Organize, Unify, Polish: fewer places to look, fewer repeated steps, and features that fit into screens users already know.

The problem

Many people run several connections against the same service — for example ten NanoGPT or OpenRouter connections, one per model. Today every connection keeps its own copy of the URL, API key and rate limits. That means:

  • Rotating a key means editing every connection by hand.
  • Rate limits are counted per connection, but the service limits the whole key, so several connections together can still hit the limit.
  • In a long model list, you can't tell which service — or which vendor behind a gateway — a connection uses.

The proposal: Providers

A provider holds what connections share: API type, URL, API key, rate limits, plus a name, a color and a tag you choose.

  • Connections link to a provider and only keep their own settings (model, parameters). Change the key once on the provider, and every linked connection uses the new key at once.
  • Standalone connections keep working. Linking is optional; nothing changes for existing setups unless you choose to link them.
  • Gateways can be split by vendor. One OpenRouter key can back several providers — e.g. "Claude via OR" (orange) and "DeepSeek via OR" (blue) — each with its own model filter, name and color. They are never merged automatically just because the URL and key match.
  • Local servers work too. KoboldCpp, Ollama or LM Studio can be a provider with just a URL.
  • Shared limits. Requests per minute and parallel requests apply to the whole provider. Extra requests wait in a queue instead of failing.
  • Disable a provider in one click. Chats then use your configured fallback connection; the disabled provider receives no requests. If you explicitly picked a connection whose provider is disabled (for example in Professor Mari), you get a clear error instead of a silent switch to another connection.

Where you find it: just another row

There is no new screen, tab or button. A provider is a row in the normal Connections list, set up exactly like a connection.

●  OpenRouter · Gateway          🔑 6 connections   ▸
●  NanoGPT                       🔑 3 connections   ▸
   Claude Sonnet                 openrouter • claude-sonnet
   Local KoboldCpp               custom • llama-3
  • Create: click + as usual and choose Provider. You get the same editor as a connection, without the model fields: name, API type, URL, key, limits, color, tag.
  • Same list behavior: folders, search, sort, drag, select, export and delete work like they do for connections — nothing new to learn.
  • Expand like a folder: a provider row expands to show the connections that use it. From there you can also create connections for several of its models at once.
  • Link a connection: the connection editor gets a Provider picker. Pick one and the URL and key come from it; Detach makes the connection standalone again. Typing new details instead offers Save as provider.
  • Badges: each linked connection row and the quick connection switcher show the provider's color, so you see at a glance where a model comes from.
  • Not selectable for chat: chat model pickers and the quick switcher only list connections, never provider rows.
  • Moving existing setups over: when several connections already share the same URL and key, the list offers to create one provider for them. For gateways it suggests one provider per vendor instead of merging them.

Naming

The row is called Provider — that is what users already call OpenRouter, NanoGPT and others. To avoid a clash, the connection editor's existing Provider field (which really picks OpenAI, Anthropic, Custom, …) is renamed to API type. "Account" was rejected because gateway splits share one account and local servers have none.

Why this is better

Compared to today:

  • One change instead of many. A new key, a new URL or a new rate limit is entered once, not on every connection. No connection gets forgotten with an old key.
  • Limits that match reality. The service counts requests per key, so Marinara does too. Fewer surprise rate-limit errors when agents, summaries and chat run at the same time.
  • You see where a model comes from. Colors and tags make "Claude via OpenRouter" and "Claude via NanoGPT" easy to tell apart in a long list and in the quick switcher.
  • Safe switch-off. Disable one provider (for example when its credit runs out) and chats fall back cleanly, instead of failing connection by connection.
  • Faster setup. Add a provider once, then create connections for several of its models in one step.

Compared to a separate Providers screen or tab:

  • Nothing new to learn. Providers are created, sorted, foldered, searched and deleted exactly like connections.
  • One place to look. Everything about where your models come from stays in the Connections list — no jumping between screens.
  • The relationship is visible. Expanding a provider row shows its connections right there, so you see what a change affects before you make it.
  • Opt-in, no clutter. Users who never create a provider see no difference at all.

Safety

  • Keys stay encrypted and are never included in profile exports. Imported providers wait for your review before they are used.
  • A provider that is still in use cannot be deleted. The delete dialog lists which connections, chats, agents and settings use it.
  • "Reset connections" removes providers too, so no keys stay behind.

Alternatives considered

  • Copy the key from another connection: saves typing once, but rotation and shared limits stay unsolved.
  • Group connections automatically by URL and key: this would merge different gateway vendors into one, which is wrong.
  • A separate Providers tab or manager screen: adds a second place to learn; a row in the existing list does the same job.

Status

A working backend and an earlier UI draft exist on the feat/provider-manager branch (owner: @Gunterlie). The UI will be reworked to the row design above when this proposal is picked up. Feedback on the concept is welcome here.

Originally created by @Gunterlie on GitHub (Oct 6, 2026). Original GitHub issue: https://github.com/Pasta-Devs/Marinara-Engine/issues/7158 Originally assigned to: @Gunterlie on GitHub. > **Part of S.O.U.P. — Simplify, Organize, Unify, Polish:** fewer places to look, fewer repeated steps, and features that fit into screens users already know. ## The problem Many people run several connections against the same service — for example ten NanoGPT or OpenRouter connections, one per model. Today every connection keeps its own copy of the URL, API key and rate limits. That means: - **Rotating a key** means editing every connection by hand. - **Rate limits are counted per connection**, but the service limits the whole key, so several connections together can still hit the limit. - **In a long model list, you can't tell** which service — or which vendor behind a gateway — a connection uses. ## The proposal: Providers A **provider** holds what connections share: API type, URL, API key, rate limits, plus a name, a color and a tag you choose. - **Connections link to a provider** and only keep their own settings (model, parameters). Change the key once on the provider, and every linked connection uses the new key at once. - **Standalone connections keep working.** Linking is optional; nothing changes for existing setups unless you choose to link them. - **Gateways can be split by vendor.** One OpenRouter key can back several providers — e.g. "Claude via OR" (orange) and "DeepSeek via OR" (blue) — each with its own model filter, name and color. They are never merged automatically just because the URL and key match. - **Local servers work too.** KoboldCpp, Ollama or LM Studio can be a provider with just a URL. - **Shared limits.** Requests per minute and parallel requests apply to the whole provider. Extra requests wait in a queue instead of failing. - **Disable a provider in one click.** Chats then use your configured fallback connection; the disabled provider receives no requests. If you explicitly picked a connection whose provider is disabled (for example in Professor Mari), you get a clear error instead of a silent switch to another connection. ## Where you find it: just another row There is **no new screen, tab or button**. A provider is a row in the normal **Connections** list, set up exactly like a connection. ``` ● OpenRouter · Gateway 🔑 6 connections ▸ ● NanoGPT 🔑 3 connections ▸ Claude Sonnet openrouter • claude-sonnet Local KoboldCpp custom • llama-3 ``` - **Create:** click **+** as usual and choose *Provider*. You get the same editor as a connection, without the model fields: name, API type, URL, key, limits, color, tag. - **Same list behavior:** folders, search, sort, drag, select, export and delete work like they do for connections — nothing new to learn. - **Expand like a folder:** a provider row expands to show the connections that use it. From there you can also create connections for several of its models at once. - **Link a connection:** the connection editor gets a *Provider* picker. Pick one and the URL and key come from it; *Detach* makes the connection standalone again. Typing new details instead offers *Save as provider*. - **Badges:** each linked connection row and the quick connection switcher show the provider's color, so you see at a glance where a model comes from. - **Not selectable for chat:** chat model pickers and the quick switcher only list connections, never provider rows. - **Moving existing setups over:** when several connections already share the same URL and key, the list offers to create one provider for them. For gateways it suggests one provider per vendor instead of merging them. ### Naming The row is called **Provider** — that is what users already call OpenRouter, NanoGPT and others. To avoid a clash, the connection editor's existing *Provider* field (which really picks OpenAI, Anthropic, Custom, …) is renamed to **API type**. "Account" was rejected because gateway splits share one account and local servers have none. ## Why this is better **Compared to today:** - **One change instead of many.** A new key, a new URL or a new rate limit is entered once, not on every connection. No connection gets forgotten with an old key. - **Limits that match reality.** The service counts requests per key, so Marinara does too. Fewer surprise rate-limit errors when agents, summaries and chat run at the same time. - **You see where a model comes from.** Colors and tags make "Claude via OpenRouter" and "Claude via NanoGPT" easy to tell apart in a long list and in the quick switcher. - **Safe switch-off.** Disable one provider (for example when its credit runs out) and chats fall back cleanly, instead of failing connection by connection. - **Faster setup.** Add a provider once, then create connections for several of its models in one step. **Compared to a separate Providers screen or tab:** - **Nothing new to learn.** Providers are created, sorted, foldered, searched and deleted exactly like connections. - **One place to look.** Everything about where your models come from stays in the Connections list — no jumping between screens. - **The relationship is visible.** Expanding a provider row shows its connections right there, so you see what a change affects before you make it. - **Opt-in, no clutter.** Users who never create a provider see no difference at all. ## Safety - Keys stay encrypted and are **never included** in profile exports. Imported providers wait for your review before they are used. - A provider that is **still in use cannot be deleted**. The delete dialog lists which connections, chats, agents and settings use it. - "Reset connections" removes providers too, so no keys stay behind. ## Alternatives considered - **Copy the key from another connection:** saves typing once, but rotation and shared limits stay unsolved. - **Group connections automatically by URL and key:** this would merge different gateway vendors into one, which is wrong. - **A separate Providers tab or manager screen:** adds a second place to learn; a row in the existing list does the same job. ## Status A working backend and an earlier UI draft exist on the `feat/provider-manager` branch (owner: @Gunterlie). The UI will be reworked to the row design above when this proposal is picked up. Feedback on the concept is welcome here.
bsakaguchi 2026-10-21 06:09:25 +07:00
  • closed this issue
  • added the
    soup
    in-pr
    labels
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
Pasta-Devs/Marinara-Engine#3998
No description provided.