RouterView is a terminal user interface for browsing models from OpenRouter's Models API. It visualizes model pricing, capabilities, and benchmark scores with interactive filtering and sorting.
The main motivation is to make cost-efficient models easy to find. You can customize how input and output token costs are weighted, then customize how that combined cost is weighed against model intelligence.
Warning
This project is entirely vibe-coded, without even looking at a single line of code myself. It served for testing and setting up OpenCode. Seems to work fine, though.
- Browse OpenRouter model pricing, capabilities, and benchmark scores in a terminal UI
- Filter and sort models by provider, price, context size, modality, and benchmark score
- Compare models using configurable blended-cost and cost-efficiency weights
- Select recommended model IDs through a small public Python API
- Cache model data for fast startup and offline use
pip install routerview
routerviewThe public functions return OpenRouter model ID strings.
Find the model with the best cost efficiency using custom input/output and cost/intelligence ratios:
from routerview import get_efficient_model
model_id = get_efficient_model(
cost_in_out_ratio=1 / 3,
cost_intelligence_ratio=1 / 10,
)Find the model with the highest intelligence score:
from routerview import get_intelligent_model
model_id = get_intelligent_model()Find the model with the highest agentic score:
from routerview import get_agent_model
model_id = get_agent_model()Find the model with the highest coding score:
from routerview import get_coding_model
model_id = get_coding_model()Find the model with the highest Design Arena Elo:
from routerview import get_elo_model
model_id = get_elo_model()The Models API accepts anonymous requests. RouterView uses OPENROUTER_API_KEY automatically when
it is set. Otherwise, RouterView connects without authentication. Run routerview --no-key to
ignore the environment variable explicitly. The public Python functions accept
use_api_key=False for the same behavior.
RouterView is licensed under the BSD-3-Clause License.
Bastian Pätzold – paetzoldbastian@gmail.com