# Fallback — Model Switching Heuristics

Multi-provider heuristic model fallback and automatic failover routing across all configured providers.

- Type: Plugin
- Version: 0.2.0
- Updated: 22 Nov 2026
- Publisher: tomkubik
- Category: Models

[Contact us](https://www.ulpi.io/en/support#contact)

## 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

## More in Models

- [Fast Chat](https://www.ulpi.io/en/marketplace/plugins/fast-chat): One-command Fast startup for Ulpi CLI/TUI until built-in startup gets easier.
- [Ficelle](https://www.ulpi.io/en/marketplace/plugins/ficelle): Model provider for Ficelle, a local OpenAI-compatible router that fails over between free models of the providers you add keys for (not unlimited free access).
- [Fleet Control](https://www.ulpi.io/en/marketplace/plugins/fleet-control): Phone-first bulk model routing across profiles with exact preview, confirmation and saved-setting readback.

[All listings →](https://www.ulpi.io/en/marketplace) · [Publisher's guide →](https://www.ulpi.io/en/docs) · [Report a problem →](https://www.ulpi.io/en/security#report)
