RouterView
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.
✨ Features
- 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
🚀 Quick Start
pip install routerview
routerview
🐍 Python API
The 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()
🔑 OpenRouter Authentication
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.
📄 License
RouterView is licensed under the BSD-3-Clause License.
👤 Author
Bastian Pätzold – paetzoldbastian@gmail.com
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file routerview-0.1.0.tar.gz.
File metadata
- Download URL: routerview-0.1.0.tar.gz
- Upload date:
- Size: 38.4 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.14
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
c0cf47bc6a312af8564f1713910894798b3091e67c9ecd5ee4a5c4cb3bdc1cc9
|
|
| MD5 |
862b1b1ddbc77335fee9e68cf2b3f7e6
|
|
| BLAKE2b-256 |
7a3ff9659de0cc7783846c201ca0d29ca976e4bd2115905349c7a899bab8b789
|
Provenance
The following attestation bundles were made for routerview-0.1.0.tar.gz:
Publisher:
release.yml on ptzld/routerview
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
routerview-0.1.0.tar.gz -
Subject digest:
c0cf47bc6a312af8564f1713910894798b3091e67c9ecd5ee4a5c4cb3bdc1cc9 - Sigstore transparency entry: 2281482424
- Sigstore integration time:
-
Permalink:
ptzld/routerview@01d112fc98ee5831efdc4e5760b9a0380b2ee5a3 -
Branch / Tag:
refs/tags/v0.1.0 - Owner: https://github.com/ptzld
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
release.yml@01d112fc98ee5831efdc4e5760b9a0380b2ee5a3 -
Trigger Event:
release
-
Statement type:
File details
Details for the file routerview-0.1.0-py3-none-any.whl.
File metadata
- Download URL: routerview-0.1.0-py3-none-any.whl
- Upload date:
- Size: 24.4 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.14
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
838ed16417a1b68e6ccd3adee0d8064249e1186b27a9527043fdc01d74ec7471
|
|
| MD5 |
a9affff2d33c7fb5c6692da09fef6453
|
|
| BLAKE2b-256 |
00292f35cfb5e56cde5cd0f96a129d67837275caacaec9fcb3bc91cdef727259
|
Provenance
The following attestation bundles were made for routerview-0.1.0-py3-none-any.whl:
Publisher:
release.yml on ptzld/routerview
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
routerview-0.1.0-py3-none-any.whl -
Subject digest:
838ed16417a1b68e6ccd3adee0d8064249e1186b27a9527043fdc01d74ec7471 - Sigstore transparency entry: 2281482444
- Sigstore integration time:
-
Permalink:
ptzld/routerview@01d112fc98ee5831efdc4e5760b9a0380b2ee5a3 -
Branch / Tag:
refs/tags/v0.1.0 - Owner: https://github.com/ptzld
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
release.yml@01d112fc98ee5831efdc4e5760b9a0380b2ee5a3 -
Trigger Event:
release
-
Statement type: