Skip to content

agentHost: per-session provider (transport) selection for Claude sessions #329656

Description

Feature request

Let each Claude agent-host session pick a model whose provider decides its transport, instead of pinning the whole host to a single transport:

  • anthropic-provider models route to the native Anthropic SDK.
  • copilot (and any unknown) provider routes to the Copilot-CAPI proxy.

This mirrors how the Codex provider already behaves.

Motivation

Today a Claude host is pinned to one transport, so a user can't mix a native-Anthropic model and a Copilot-routed model across sessions. Per-session provider selection removes that limitation and brings Claude in line with Codex.

Proposed behavior

  • Provider-qualified model ids (@provider=anthropic:… / @provider=copilot:…); bare/legacy ids resume on the host default transport (no migration needed).
  • Merged catalog fetched from both native and proxy sources, each self-gated on its own credential/native-setup; the picker groups rows by vendor ("Anthropic" / "Copilot").
  • Per-session transport resolution at materialize time from the selected model's provider.
  • Live switching — selecting a model on the other transport re-materializes the session's subprocess on the next send; same-transport model changes hot-swap in place.
  • Lazy Copilot sign-in — the Copilot resource is advertised required: false; sign-in defers to first send of a Copilot-routed model (matches Codex).

Addressed by #329331.

Metadata

Metadata

Labels

claude-agentIntegration with the Claude Agent SDKfeature-requestRequest for new features or functionalityon-testplan

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions