Fallback — Model Switching Heuristics
PLUGINMulti-provider heuristic model fallback and automatic failover routing across all configured providers.
by tomkubik · v0.2.0
What it does
Multi-provider heuristic model fallback and automatic failover routing across all configured providers (parameter count, context window, release recency, flash tier, tool support, provider preference, and reasoning effort) — works seamlessly with or without an LLM call. Disclosure — session-start and API-error hooks rewrite fallback_providers and plugin settings in ~/.ulpi/config.yaml (primary model replacement is opt-in via auto_switch_primary_when_unavailable); queries public model catalog endpoints (models.dev/api.json, openrouter.ai/api/v1/models, and inference-api..com/v1/portal/models) to rank candidate models and check free-tier availability; optional interactive CLI setup saves user-entered provider API keys via ulpi_cli.config.save_env_value when explicitly requested.
Tools it adds
The tools an agent gets once this plugin is installed.
- fallback_heuristic_resolve
- fallback_heuristic_switch
- fallback_heuristic_configure
- fallback_heuristic_providers
Review notes
What an owner reads and accepts before the install is approved.
- Ulpi has not reviewed this version: it is listed in the public plugin catalog, and the install still fetches it at its pinned commit, checks its shape and scans it before you approve