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
Release history Release notifications | RSS feed
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 openrouter_models_browser-0.1.0.tar.gz.
File metadata
- Download URL: openrouter_models_browser-0.1.0.tar.gz
- Upload date:
- Size: 44.5 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
1eb09b9aa23d603753f8dfcebcfac4dce7650a739e4c13142cfef9ff0f7bceb0
|
|
| MD5 |
5ae59fb3bca9ce58ffee536ef6ee240f
|
|
| BLAKE2b-256 |
3222ff94a479cbc1543b82aac0ff812e8111661194d8c8d38e66715ef98c6ec3
|
Provenance
The following attestation bundles were made for openrouter_models_browser-0.1.0.tar.gz:
Publisher:
publish.yml on janwychowaniak/openrouter-models-browser
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
openrouter_models_browser-0.1.0.tar.gz -
Subject digest:
1eb09b9aa23d603753f8dfcebcfac4dce7650a739e4c13142cfef9ff0f7bceb0 - Sigstore transparency entry: 1462976077
- Sigstore integration time:
-
Permalink:
janwychowaniak/openrouter-models-browser@8703f28dc7818f40c067b2339b42e0963a6bc291 -
Branch / Tag:
refs/tags/v0.1.0 - Owner: https://github.com/janwychowaniak
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish.yml@8703f28dc7818f40c067b2339b42e0963a6bc291 -
Trigger Event:
push
-
Statement type:
File details
Details for the file openrouter_models_browser-0.1.0-py3-none-any.whl.
File metadata
- Download URL: openrouter_models_browser-0.1.0-py3-none-any.whl
- Upload date:
- Size: 6.4 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
510bd96854cb674edaabd730406d44ea5efcfe1ac967fd40485efd70f0e4e1e6
|
|
| MD5 |
95d466886b2444ca5684ba6d5a35c770
|
|
| BLAKE2b-256 |
58ad50abf1cd9956f9e2a89e2b894e050d627a2065c9de7ae5de63da1da0ba7a
|
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
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
openrouter_models_browser-0.1.0-py3-none-any.whl -
Subject digest:
510bd96854cb674edaabd730406d44ea5efcfe1ac967fd40485efd70f0e4e1e6 - Sigstore transparency entry: 1462976122
- Sigstore integration time:
-
Permalink:
janwychowaniak/openrouter-models-browser@8703f28dc7818f40c067b2339b42e0963a6bc291 -
Branch / Tag:
refs/tags/v0.1.0 - Owner: https://github.com/janwychowaniak
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish.yml@8703f28dc7818f40c067b2339b42e0963a6bc291 -
Trigger Event:
push
-
Statement type: