Skip to main content
The 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)
Only enabled providers are included in the output.

Arguments

string
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 in provider/model format:
This format is ideal for:
  • 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
Searching is:
  • Case-insensitive: GPT, gpt, and Gpt all match
  • Partial matching: son matches sonnet
  • Multi-field: Matches any of the above fields

Search Examples

Error Messages

No Providers Configured

Solution: Run crush to configure at least one provider.

No Enabled Providers

Solution: Enable at least one provider in your crush.json:

No Matching Models

Solution: Try a different search term or check your spelling.

Provider Status

Disabled providers are automatically excluded from the output. To include disabled providers, enable them in crush.json:

Scripting Usage

List Models Programmatically

Count Available Models

Select Model Interactively

Validate Model Exists

Model Information

The models command shows which models are available but doesn’t display:
  • Model capabilities
  • Pricing information
  • Context window sizes
  • Model descriptions
For detailed model information, refer to:

Using Models

Once you’ve identified a model, use it with:

Interactive Mode

Select the model in the Crush TUI settings or specify in crush.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, 2025
  • gpt-4o - GPT-4 Optimized
  • gemini-2.0-flash-exp - Gemini 2.0 Flash (experimental)

See Also