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.


✨ 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,
)

Models whose names end in (free) display a dash for efficiency and are excluded from efficiency recommendations. An efficiency minimum also excludes them.

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

Metadata

Release files for routerview 1.0.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for routerview 1.0.0
File Size Uploaded Provenance Actions
routerview-1.0.0.tar.gz 42.8 kB With provenance Details for routerview-1.0.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for routerview 1.0.0
File Interpreter ABI Platform Actions
routerview-1.0.0-py3-none-any.whl Python 3 none any Details for routerview-1.0.0-py3-none-any.whl

Total release size: 68.8 kB

Release files / routerview-1.0.0.tar.gz

Download URL routerview-1.0.0.tar.gz
Size 42.8 kB
Tags Source
SHA-256 checksum
How to use checksums
b3d554926dd4e88fe630e1fec5dd7d4c218e7b80f9a0e4d5c8f2e1e0f64e9a98
BLAKE2b-256 checksum
How to use checksums
5e4ef74e9036300420de579e769343c5e9191ed6a630aa6a54617c180fae999c
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Sep 30, 2026.

Transparency log

Release files / routerview-1.0.0-py3-none-any.whl

Download URL routerview-1.0.0-py3-none-any.whl
Size 26.0 kB
Tags Python 3
SHA-256 checksum
How to use checksums
25fac2a2b65a8346542bde54b4acb77cfc5a850a9edb2d7f1ea6bc7fb12726e8
BLAKE2b-256 checksum
How to use checksums
73ed232149f141635d01e05de3d2892baf27c07386b46cb496c83c1621a48c3e
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Sep 30, 2026.

Transparency log

Security for routerview 1.0.0

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

Full provenance

Both files in this release have been uploaded with provenance metadata.

Select from 2 files

Attestation for routerview-1.0.0.tar.gz

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Sep 30, 2026.

Transparency log

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release

1.0.0 This release

2 release files Full provenance

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page