Skip to main content

CLI for browsing and comparing AI models from the OpenRouter API

Project description

ormodels

A CLI for browsing and comparing AI models from the OpenRouter API.

Installation

The command is ormodels; the PyPI distribution name is openrouter-models-browser.

# Recommended: isolated tool install
uv tool install openrouter-models-browser
# or
pipx install openrouter-models-browser

# Or as a regular dependency
pip install openrouter-models-browser

Requires Python 3.11+.

Usage

# Show help
ormodels -h

# Search for models by name, ID, or modality
ormodels claude
ormodels gpt
ormodels "text->text"

# Combine multiple searches (results deduplicated)
ormodels claude gemini

# Get full details for an exact ID match
ormodels anthropic/claude-3.5-sonnet

# Equivalent module form
python -m ormodels claude

Output

Search results (table)

Comparison table with columns: ID, NAME, CREATED, CONTEXT_LENGTH, MODALITY, TOKENIZER, PROMPT, COMPLETION, MAX_COMPL_TOKENS.

Pricing is shown in dollars per 1M tokens. Token counts use a dual format (e.g. 256000 | 256k).

Exact match (YAML)

When the query exactly matches a model ID, the full model entry is printed in YAML format with the description first, followed by prominent fields, then remaining details.

Development

# Set up dev environment
uv sync --all-groups

# Run quality gates
uv run ruff format --check .
uv run ruff check .
uv run mypy
uv run pytest

# Run the CLI from source
uv run ormodels claude

# Build distribution artifacts
uv build

Publishing is automated via the Publish GitHub Actions workflow on a v* tag, using PyPI Trusted Publishing (no API token required).

License

MIT

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

openrouter_models_browser-0.1.0.tar.gz (44.5 kB view details)

Uploaded Source

Built Distribution

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

openrouter_models_browser-0.1.0-py3-none-any.whl (6.4 kB view details)

Uploaded Python 3

File details

Details for the file openrouter_models_browser-0.1.0.tar.gz.

File metadata

File hashes

Hashes for openrouter_models_browser-0.1.0.tar.gz
Algorithm Hash digest
SHA256 1eb09b9aa23d603753f8dfcebcfac4dce7650a739e4c13142cfef9ff0f7bceb0
MD5 5ae59fb3bca9ce58ffee536ef6ee240f
BLAKE2b-256 3222ff94a479cbc1543b82aac0ff812e8111661194d8c8d38e66715ef98c6ec3

See more details on using hashes here.

Provenance

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

Publisher: publish.yml on janwychowaniak/openrouter-models-browser

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

File details

Details for the file openrouter_models_browser-0.1.0-py3-none-any.whl.

File metadata

File hashes

Hashes for openrouter_models_browser-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 510bd96854cb674edaabd730406d44ea5efcfe1ac967fd40485efd70f0e4e1e6
MD5 95d466886b2444ca5684ba6d5a35c770
BLAKE2b-256 58ad50abf1cd9956f9e2a89e2b894e050d627a2065c9de7ae5de63da1da0ba7a

See more details on using hashes here.

Provenance

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

Publisher: publish.yml on janwychowaniak/openrouter-models-browser

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