npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2026 – Pkg Stats / Ryan Hefner

openmodels-cli

v0.5.2

Published

Command-line interface for the OpenModels registry — browse, search, and compare LLM models and inference providers from your terminal.

Downloads

422

Readme

OpenModels CLI

Command-line interface for the OpenModels registry — browse models, compare providers, and check telemetry from your terminal.

npm version license

Installation

# Install globally
npm install -g openmodels-cli

# Or run without installing
npx openmodels-cli

Requires Node.js ≥ 22.0.0.

Quick Start

# List all models
openmodels models list

# Get details about a specific model
openmodels models info claude-opus-4-6

# Compare providers for a model
openmodels compare gpt-5

# Search models
openmodels search "code generation"

# Check provider health
openmodels telemetry anthropic

Commands

models list

List models with optional filters.

openmodels models list
openmodels models list --capability reasoning
openmodels models list --modality text --sort context_window
openmodels models list --page 2 --limit 20

| Option | Description | |--------|-------------| | --capability <cap> | Filter by capability (chat, completion, function-calling, code-generation, reasoning, vision, audio, embeddings, fine-tuning) | | --modality <mod> | Filter by modality (text, image, audio, video, code) | | --sort <field> | Sort by: name, recency, context_window, providers | | --page <n> | Page number | | --limit <n> | Results per page |

models info <model-id>

Display detailed information about a specific model including capabilities, modalities, context window, licensing, and provider availability with pricing.

openmodels models info claude-opus-4-6
openmodels models info deepseek-r1 --format json

providers list

List inference providers.

openmodels providers list
openmodels providers list --search anthropic
openmodels providers list --page 1 --limit 10

| Option | Description | |--------|-------------| | --search <term> | Filter providers by search term | | --page <n> | Page number | | --limit <n> | Results per page |

compare <model-id>

Compare all providers offering a specific model side-by-side, showing pricing, rate limits, and regions.

openmodels compare gpt-5
openmodels compare claude-opus-4-6 --sort rate_limit
openmodels compare deepseek-r1 --format yaml

| Option | Description | |--------|-------------| | --sort <field> | Sort by: price (default), rate_limit |

search <query>

Full-text search across models by name or description.

openmodels search "code generation"
openmodels search "vision" --capability chat --limit 5
openmodels search "reasoning"

| Option | Description | |--------|-------------| | --capability <cap> | Additionally filter by capability | | --limit <n> | Maximum number of results |

telemetry <provider-id>

View provider health status and latency metrics.

openmodels telemetry anthropic
openmodels telemetry together-ai --period 7d
openmodels telemetry openai --format json

| Option | Description | |--------|-------------| | --period <period> | Time period: 1d, 7d, 30d |

completions <shell>

Generate shell completion scripts.

# Bash
openmodels completions bash >> ~/.bashrc

# Zsh
openmodels completions zsh > ~/.zfunc/_openmodels

# Fish
openmodels completions fish > ~/.config/fish/completions/openmodels.fish

Output Formats

All commands support the --format flag:

openmodels models list --format table   # Default — colored, aligned columns
openmodels models list --format json    # Machine-readable JSON
openmodels models list --format yaml    # YAML output

JSON and YAML formats are designed for piping to other tools and CI/CD pipelines.

Configuration

Config File

Create ~/.openmodelsrc to store default settings:

{
  "api_url": "https://api.openmodels.run",
  "api_key": "om_...",
  "format": "table",
  "no_color": false
}

Environment Variables

| Variable | Description | |----------|-------------| | OPENMODELS_API_URL | API base URL (default: https://api.openmodels.run) | | OPENMODELS_API_KEY | API authentication key | | NO_COLOR | Disable colored output (any value) |

Precedence

  1. CLI flags (--api-url, --api-key, --format, --no-color)
  2. Environment variables
  3. Config file (~/.openmodelsrc)
  4. Defaults

Global Options

| Flag | Description | |------|-------------| | --format <type> | Output format: table, json, yaml | | --api-url <url> | API base URL | | --api-key <key> | API authentication key | | --no-color | Disable colored output | | --verbose | Show detailed error information | | -h, --help | Show help | | -V, --version | Show version |

What is OpenModels?

OpenModels is an open-source, community-maintained registry of LLM models, inference providers, and provider-model mappings. It tracks 88+ models across 42+ providers with pricing, rate limits, and availability data.

Links

Development

git clone https://github.com/openmodelsrun/cli.git
cd cli
npm install
npm run build
npm test

License

MIT