class LittleGhost::Providers::OpenRouter

OpenRouter gives one LittleGhost provider access to models routed through OpenRouter. Agents keep their model roles while the registry selects an OpenRouter model for each role.

provider = LittleGhost::Providers::OpenRouter.new(
  api_key: ENV.fetch("OPENROUTER_API_KEY"),
  model: ENV.fetch("OPENROUTER_MODEL"),
  app_name: "Support Console"
)

site_url and app_name populate attribution headers. Capability metadata controls structured output, tools, tool choice, and parameter filtering. Requests that need a capability ask OpenRouter to route only to providers that advertise it.