Skip to content

Proposal: Model source registry, so clients can register BYOK model sources with an agent host #619

Open

Description

@lramos15

Problem

A client can own the user's bring-your-own-key (BYOK) model configuration: endpoints, wire formats, curated model lists, and API keys. AHP has no way to hand that to an agent host:

  • No way to register a source. Models and models: add model sources to agent catalogs #543's model sources are host-declared. A client can't add one.
  • No credential path. authenticate only accepts tokens for resources the host advertised, so the client can't give the host a source's key.
  • No status. Nothing reports whether a source loaded, needs a key, or failed.

For example, a client such as VS Code lets users configure their own OpenAI, Anthropic, Azure, Gemini, OpenRouter, or custom endpoints. When the agent host runs elsewhere (SSH, WSL, a tunnel, or a long-lived remote service), those models can't be offered. The host may also run work no client is watching, such as long-running sessions and automations, so sources need to outlive one client's connection.

Proposed direction

A host-wide model source registry, kept thin. The agent behind the host reads definitions, discovers models, and runs inference. AHP carries only:

  1. Registration: RootState.modelSourceRegistrations, added and removed with client-dispatchable root actions. An agent advertises the definition formats it reads.
  2. Status: the host reports starting, ready, authRequired, or error for each registration.
  3. Credential: authenticate with a modelSource target. The key is held in memory only.
  4. Selection: ready sources join the agent's catalog from models: add model sources to agent catalogs #543, and their models are selected by id in any session or automation.

Like MCP servers, registrations aren't owned by a client: any connected client can use, change, or remove one. The contributing client chooses only whether a source stays after it disconnects, which defaults to no.

The full proposal is in #622. An earlier revision used session-scoped plugin customizations. It moved to a registry because BYOK configuration belongs to the user rather than a session, and automations need sources that outlive one.

Related

Activity

  1. added
    feature-request
    on Nov 19, 2026
  2. changed the title [-]Proposal: Let clients contribute BYOK model sources and credentials to a session[/-] [+]Proposal: Model provider customizations, so clients can contribute BYOK providers to a session[/+] on Nov 19, 2026
  3. changed the title [-]Proposal: Model provider customizations, so clients can contribute BYOK providers to a session[/-] [+]Proposal: Model source customizations, so clients can contribute BYOK model sources to a session[/+] on Nov 20, 2026
  4. changed the title [-]Proposal: Model source customizations, so clients can contribute BYOK model sources to a session[/-] [+]Proposal: Model source registry, so clients can register BYOK model sources with an agent host[/+] on Nov 23, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Labels

feature-request

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions