A CLI tool to list available LLM models from various providers
Project description
llm-models
A simple command-line tool to list available LLM models from various providers (OpenAI, Google, Anthropic, xAI).
Installation
Linux
$ pipx install llm-models
macOS
pip3 install llm-models
If you get "command not found", add to PATH (replace 3.X with your Python version):
echo 'export PATH="$HOME/Library/Python/3.X/bin:$PATH"' >> ~/.zshrc
source ~/.zshrc
Windows
pip install llm-models
Usage
$ llm-models -h
usage: llm-models [-h] -p {OpenAI,Anthropic,xAI,GoogleAI,VertexAI} [-r REGION]
List available LLM models from various providers
options:
-h, --help show this help message and exit
-p {OpenAI,Anthropic,xAI,GoogleAI,VertexAI}, --provider {OpenAI,Anthropic,xAI,GoogleAI,VertexAI}
The LLM provider backend.
- 'GoogleAI': Google AI Studio (API Key). Global/Auto-routed.
- 'VertexAI': Google Cloud Vertex AI (IAM Auth). Region-specific.
-r REGION, --region REGION
Google Cloud region (e.g., 'us-central1').
*Required* if provider is VertexAI. Ignored for other providers.
The tool requires API keys set as environment variables:
OPENAI_API_KEYfor OpenAIGOOGLE_API_KEYfor GoogleAI API, orGOOGLE_CLOUD_PROJECTfor VertexAI APIANTHROPIC_API_KEYfor AnthropicXAI_API_KEYfor xAI
Examples
List OpenAI models:
$ llm-models --provider OpenAI
Listing available OpenAI models...
================================================================================
Model: babbage-002
Model: chatgpt-4o-latest
Model: codex-mini-latest
...
List Google models using GoogleAI API:
$ llm-models -p GoogleAI
Listing available Google AI Studio models (auto-routed region)...
================================================================================
Model: models/embedding-gecko-001
Model: models/gemini-2.5-pro-preview-03-25
Model: models/gemini-2.5-flash
...
List Google models using Vertex AI API (with regional endpoint):
$ llm-models -p VertexAI -r us-central1
Listing available Vertex AI models (project: ZZZ, region: us-central1)...
================================================================================
Model: publishers/google/models/imageclassification-efficientnet
Model: publishers/google/models/occupancy-analytics
Model: publishers/google/models/multimodalembedding
...
List Anthropic models:
$ llm-models -p Anthropic
Listing available Anthropic models...
================================================================================
Model: claude-haiku-4-5-20251001 (Claude Haiku 4.5)
Model: claude-sonnet-4-5-20250929 (Claude Sonnet 4.5)
...
List xAI models:
$ llm-models -p xAI
Listing available xAI models (NOTE: xAI uses aliases, so grok-4 is an acceptable API name, resolving to grok-4-0709 as of Nov. 2025)...
================================================================================
Model: grok-2-1212
Model: grok-2-vision-1212
Model: grok-3
...
Requirements
- Python 3.9+
- tested on Ubuntu 24.04 and macOS 26.1
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 llm_models-0.2.0.tar.gz.
File metadata
- Download URL: llm_models-0.2.0.tar.gz
- Upload date:
- Size: 5.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: uv/0.8.4
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
eee2d42a7a9379880060028461107af773dfaf40fe85852d2db74d255914d325
|
|
| MD5 |
1bb2158b6dfccc343e977e75c20d2d93
|
|
| BLAKE2b-256 |
d3ac6682500cc5fcf752789a2679350ecc4f074e0f7c757a86c0d3b99d92a4bd
|
File details
Details for the file llm_models-0.2.0-py3-none-any.whl.
File metadata
- Download URL: llm_models-0.2.0-py3-none-any.whl
- Upload date:
- Size: 6.3 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: uv/0.8.4
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
fb265ac79fbf3a09983547c225c8af754e7f027d13bfa39ba83521b6f4389567
|
|
| MD5 |
0303500784a140952f60683879dca679
|
|
| BLAKE2b-256 |
c6dd4792131ea0e0f4bbb3fb74326a208402f3914249982112708474c03c15d6
|