crush models command displays all available AI models from your configured providers, helping you discover and select the right model for your needs.
Usage
Description
List all available models from configured providers. The output shows:- Provider names
- Model IDs
- Hierarchical tree structure (in terminal)
- Flat list format (when piped)
Arguments
Optional search term to filter models. Searches across provider ID, provider name, model ID, and model name.Case-insensitive partial matching.
Global Flags
All global flags are available:--cwd, --data-dir, --debug
Examples
Output Formats
Terminal Output (Interactive)
When running in a terminal, models are displayed in a tree structure:Non-Terminal Output (Piped)
When output is piped or redirected, models are listed inprovider/model format:
- Scripting and automation
- Parsing with command-line tools
- Using with
crush run --model
Search Behavior
The search term matches against multiple fields:- Provider ID:
anthropic,openai, etc. - Provider Name:
Anthropic,OpenAI, etc. - Model ID:
claude-sonnet-4-20250514,gpt-4o, etc. - Model Name: Display names of models
- Case-insensitive:
GPT,gpt, andGptall match - Partial matching:
sonmatchessonnet - Multi-field: Matches any of the above fields
Search Examples
Error Messages
No Providers Configured
crush to configure at least one provider.
No Enabled Providers
crush.json:
No Matching Models
Provider Status
Disabled providers are automatically excluded from the output. To include disabled providers, enable them incrush.json:
Scripting Usage
List Models Programmatically
Count Available Models
Select Model Interactively
Validate Model Exists
Model Information
Themodels command shows which models are available but doesn’t display:
- Model capabilities
- Pricing information
- Context window sizes
- Model descriptions
- Provider documentation
- Provider websites
- Your provider’s dashboard
Using Models
Once you’ve identified a model, use it with:Interactive Mode
Select the model in the Crush TUI settings or specify incrush.json:
Non-Interactive Mode
Model Naming
Models are identified by their ID, which typically includes:- Family:
claude,gpt,gemini - Tier:
opus,sonnet,haiku(Claude) or version number (GPT) - Generation:
4,1.5,2.0 - Date:
20250514(YYYYMMDD format)
Examples
claude-sonnet-4-20250514- Claude Sonnet, generation 4, from May 14, 2025gpt-4o- GPT-4 Optimizedgemini-2.0-flash-exp- Gemini 2.0 Flash (experimental)
See Also
crush run --model- Using specific models- Providers - Configuring providers
crush update-providers- Updating model lists- Configuration - Setting default models