Skip to main content

locate_provider_cli

Function locate_provider_cli 

Source
pub(crate) async fn locate_provider_cli(provider_id: &str) -> Option<LocatedCli>
Expand description

The CLI a launch of provider_id would run, without installing anything: AgentMux’s own install, for every provider. The person’s own copy on PATH or in its installer’s folder only when they listed the provider in cli:usepath (“Use the CLI on my PATH”), and then it comes first. Never otherwise, so a copy on PATH can’t make a missing install read as “found”. The one lookup behind install.check, resolvecli, the launch (agent.open) and the ambient calls, so the agent picker and the Toolchain pane can’t disagree (SPEC_AGENT_PICKER_INLINE_CREATE_2026_10_18.md §1). None for an unknown provider.