crush command launches Crush in interactive mode, providing a terminal-first AI assistant for software development.
Usage
Description
Crush is a glamorous, terminal-first AI assistant for software development and adjacent tasks. When you runcrush without any subcommands, it launches the interactive TUI (Terminal User Interface) where you can chat with AI models, execute tools, and manage your development workflow.
Global Flags
These flags are available for all Crush commands:Current working directory. Use this to run Crush in a specific project directory without changing your shell’s working directory.
Custom Crush data directory. Override the default location where Crush stores its configuration, database, and logs.
Enable debug logging. Shows detailed log output for troubleshooting.
Automatically accept all permissions (dangerous mode). Use with caution - this bypasses all permission prompts for tool execution.
Display help information for the command.
Configuration Loading
When Crush starts, it loads configuration in the following order:- Project-level config: Looks for
crush.jsonin the current working directory - Global config: Falls back to
~/.crush/crush.json - Context files: Reads project-specific instructions from:
AGENTS.md- Instructions for AI agentsCRUSH.md- Crush-specific instructionsCLAUDE.md- Claude-specific instructionsGEMINI.md- Gemini-specific instructions.localvariants of any of the above
Examples
Subcommands
Crush provides several subcommands for specific tasks:crush run- Run a single non-interactive promptcrush login- Authenticate with providerscrush models- List available modelscrush stats- View usage statisticscrush logs- View Crush logscrush update-providers- Update provider information
Initial Setup
On first run, Crush will guide you through:- Provider configuration: Choose and configure an AI provider (Anthropic, OpenAI, Gemini, etc.)
- API key setup: Enter your API keys securely
- Model selection: Choose your preferred models
Data Directory Structure
The Crush data directory (default:~/.crush) contains:
Environment Variables
Crush respects the following environment variables:CRUSH_DISABLE_METRICS- Disable telemetry when set totrueDO_NOT_TRACK- Disable telemetry when set totrueTERM_PROGRAM- Used to detect terminal capabilitiesWT_SESSION- Used to detect Windows Terminal
See Also
- Configuration - Learn about configuring Crush
- Providers - Supported AI providers
- Tools - Available tools for the AI agent