Skip to main content

A CLI tool to list available LLM models from various providers

Project description

llm-models

Python License

A simple command-line tool to list available LLM models from various providers (OpenAI, Google, Anthropic, xAI, Baseten).

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,Baseten}, --provider {OpenAI,Anthropic,xAI,GoogleAI,VertexAI,Baseten}
                        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_KEY for OpenAI
  • GOOGLE_API_KEY for GoogleAI API, or GOOGLE_CLOUD_PROJECT for VertexAI API
  • ANTHROPIC_API_KEY for Anthropic
  • XAI_API_KEY for 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
...

List Baseten models:

$ llm-models -p Baseten
Listing available Baseten models...
================================================================================
Model: openai/gpt-oss-120b (OpenAI GPT 120B) context: 128,072
Model: deepseek-ai/DeepSeek-V3.1 (DeepSeek V3.1) context: 163,840
Model: zai-org/GLM-4.7 (GLM 4.7) context: 200,000
Model: moonshotai/Kimi-K2.5 (Kimi K2.5) context: 262,000
Model: MiniMaxAI/MiniMax-M2.5 (Minimax M2.5) context: 204,000
Model: zai-org/GLM-5 (GLM 5) context: 202,800
Model: nvidia/Nemotron-120B-A12B (Nemotron Super) context: 202,800
Model: moonshotai/Kimi-K2.6 (Kimi K2.6) context: 262,000

Requirements

  • Python 3.9+
  • tested on Ubuntu 24.04 and macOS 26.1

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

llm_models-0.4.0.tar.gz (5.9 kB view details)

Uploaded Source

Built Distribution

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

llm_models-0.4.0-py3-none-any.whl (6.5 kB view details)

Uploaded Python 3

File details

Details for the file llm_models-0.4.0.tar.gz.

File metadata

  • Download URL: llm_models-0.4.0.tar.gz
  • Upload date:
  • Size: 5.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.8.4

File hashes

Hashes for llm_models-0.4.0.tar.gz
Algorithm Hash digest
SHA256 901fb3795c124825b0f9493e35f8ed81f20b8a1ea9e15349c37e1f69eee15d19
MD5 be1652a099d80a91d8bfc5331fb2f30a
BLAKE2b-256 bc52e650248a43933a55d0ca59b9eed68ab43304deffefc3a2d91c2ba26d2737

See more details on using hashes here.

File details

Details for the file llm_models-0.4.0-py3-none-any.whl.

File metadata

File hashes

Hashes for llm_models-0.4.0-py3-none-any.whl
Algorithm Hash digest
SHA256 7170e3e69025df144a64c82436d0c62845cbc95bbe6517dacc7571546320ef83
MD5 02b8e7fb70696d6da64f55e48d93b73d
BLAKE2b-256 5fb7e8228c84bfd8e3294422cb07d9c0ada393926d4ebd0866672c66926cfbd0

See more details on using hashes here.

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