Skip to main content
The crush update-providers command updates AI provider information (models, capabilities, pricing) from remote URLs, local files, or embedded data.

Usage

Description

Update provider information from a specified source. This command refreshes:
  • Model lists: Available models per provider
  • Model metadata: Context windows, capabilities, features
  • Pricing information: Input/output token costs
  • Provider configurations: API endpoints, requirements
Two provider sources can be updated:
  • Catwalk: The main provider catalog (default)
  • Hyper: Charm’s Hyper service provider information

Arguments

string
Optional path to a local file or URL to fetch provider data from.
  • Omitted: Fetches from the default remote source
  • URL: Downloads from the specified URL (must be http:// or https://)
  • File path: Reads from a local file
  • embedded: Resets to the embedded/bundled version

Flags

string
default:"catwalk"
Provider source to update. Must be one of:
  • catwalk - Main provider catalog (default)
  • hyper - Hyper service provider information

Global Flags

All global flags are available: --cwd, --data-dir, --debug

Examples

Update Sources

Catwalk (Default)

The Catwalk provider catalog includes:
  • Anthropic: Claude models
  • OpenAI: GPT and O1 models
  • Google: Gemini models
  • AWS Bedrock: Bedrock-hosted models
  • GitHub Copilot: Copilot models
  • Vercel: Vercel AI models
  • MiniMax: MiniMax models
  • And more…

Hyper

Charm’s Hyper service provides:
  • Managed AI access
  • Multiple model backends
  • Simplified authentication
  • Unified API interface

Update Behavior

Remote Updates (Default)

When no path is specified:
  1. Fetches from the default remote URL
  2. Downloads the latest provider data
  3. Updates cached provider information
  4. Validates the data structure
  5. Saves to Crush’s cache directory

Custom URL Updates

When a URL is provided:
  1. Downloads from the specified URL
  2. Same validation and caching as default
  3. Useful for:
    • Corporate proxies
    • Air-gapped environments
    • Custom provider catalogs
    • Testing new provider definitions

Local File Updates

When a file path is provided:
  1. Reads from the local filesystem
  2. No network access required
  3. Useful for:
    • Offline development
    • Custom provider configurations
    • Testing provider changes
    • Air-gapped deployments

Embedded Reset

When embedded is specified:
  1. Resets to the built-in provider data
  2. Removes cached updates
  3. Returns to the version bundled with Crush
  4. Useful for:
    • Rolling back bad updates
    • Troubleshooting
    • Returning to known-good state

Success Output

On successful update:
Or for Hyper:

Error Messages

Invalid Source

Cause: The --source flag has an invalid value. Solution: Use either catwalk or hyper:

Network Errors

Causes:
  • No internet connection
  • Remote server is down
  • Invalid URL
  • SSL/TLS errors
Solutions:

File Not Found

Cause: Local file path doesn’t exist. Solution:

Invalid JSON

Cause: Provider data is not valid JSON or has incorrect structure. Solution:

Provider Data Format

Provider JSON files have this structure:

Update Frequency

How often to update providers:
  • Weekly: For active development
  • Monthly: For stable usage
  • As needed: When new models are announced
  • After Crush updates: After upgrading Crush itself

When to Update

Update providers when:
  • New models are released
  • Pricing changes
  • You see “model not found” errors
  • After upgrading Crush
  • Before starting new projects

Use Cases

Regular Maintenance

Keep provider data fresh:

Air-Gapped Environments

Work without internet:

Corporate Proxies

Use internal provider mirrors:

Custom Providers

Add your own provider definitions:

Testing Provider Changes

Test new provider definitions:

Troubleshooting Model Issues

Reset to known-good state:

Caching

Provider data is cached in:

Cache Management

Automation

Scheduled Updates

Automate provider updates:

CI/CD Integration

Pre-commit Hook

Security Considerations

Trusted Sources

Only update from trusted sources:
  • Official Crush/Charm URLs (default)
  • Your organization’s internal mirrors
  • Verified third-party sources

HTTPS Requirement

When using URLs:
  • Prefer HTTPS over HTTP
  • Verify SSL certificates
  • Use corporate CAs if needed

Data Validation

Crush validates provider data:
  • JSON structure validation
  • Required fields verification
  • Type checking
  • Schema validation

See Also