Returns a data frame describing the models exposed by the active backend.
Arguments
- client
A HalClient instance, or
NULLto create one (Copilot only).
Value
A data frame with columns:
id— model identifier (matches--modelflag)name— display namedescription— vendor-supplied prose (may beNA)provider—"openai","anthropic","google", or"unknown"family— coarse tier:"light","standard","heavy"usage— billing tier label (e.g."1x","0.33x","0x")multiplier— numeric form ofusageis_default—TRUEif currently selected as session defaultcontext_window— token limit when known (NAotherwise)release_date— ISO date when known (NAotherwise)
Details
Copilot: queries the ACP server (
session/new) to fetch live model metadata.Claude: returns the alias selectors (
opus/sonnet/haiku), which Anthropic resolves to the latest model of each tier – the Claude CLI exposes no live model list. Pass a concrete id (e.g."claude-opus-5") tomodel=if you need to pin a version.vscode: queries the hal-bridge
/modelsendpoint, which returns whatever modelsvscode.lmexposes to your Copilot session.
See also
hal_model_info() for full per-model detail (incl. raw _meta).
Examples
if (FALSE) { # \dontrun{
hal_models()
subset(hal_models(), provider == "anthropic")
} # }
