Skip to main content

RouterView

CI PyPI Supported Versions Downloads

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

routerview-0.1.0.tar.gz (38.4 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

routerview-0.1.0-py3-none-any.whl (24.4 kB view details)

Uploaded Python 3

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

Hashes for routerview-0.1.0.tar.gz
Algorithm Hash digest
SHA256 c0cf47bc6a312af8564f1713910894798b3091e67c9ecd5ee4a5c4cb3bdc1cc9
MD5 862b1b1ddbc77335fee9e68cf2b3f7e6
BLAKE2b-256 7a3ff9659de0cc7783846c201ca0d29ca976e4bd2115905349c7a899bab8b789

See more details on using hashes here.

Provenance

The following attestation bundles were made for routerview-0.1.0.tar.gz:

Publisher: release.yml on ptzld/routerview

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

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

Hashes for routerview-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 838ed16417a1b68e6ccd3adee0d8064249e1186b27a9527043fdc01d74ec7471
MD5 a9affff2d33c7fb5c6692da09fef6453
BLAKE2b-256 00292f35cfb5e56cde5cd0f96a129d67837275caacaec9fcb3bc91cdef727259

See more details on using hashes here.

Provenance

The following attestation bundles were made for routerview-0.1.0-py3-none-any.whl:

Publisher: release.yml on ptzld/routerview

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page