LinuxCommandLibrary

crush

TLDR

Start an interactive session

$ crush
copy
Change to a specific working directory
$ crush --cwd [path/to/project]
copy
Skip all permission prompts (use with caution)
$ crush --yolo
copy
Enable debug logging
$ crush --debug
copy
Use a custom data directory
$ crush --data-dir [path/to/data]
copy
View recent logs
$ crush logs
copy
Follow logs in real time
$ crush logs --follow
copy
Run non-interactively
$ crush run "[fix the bug in main.go]"
copy

SYNOPSIS

crush [options] [command]

DESCRIPTION

Crush is a glamorous AI coding agent for your terminal, developed by Charmbracelet. Built in Go for speed and efficiency, it provides a terminal user interface (TUI) for interacting with various AI models to help with coding tasks, debugging, and file operations.
Crush supports multiple AI providers including OpenAI, Anthropic, Google Gemini, Groq, OpenRouter, AWS Bedrock, and local models via Ollama and LM Studio. It uses Language Server Protocol (LSP) for enhanced code context and is extensible via Model Context Protocol (MCP) servers with stdio, http, and sse transports.
The tool offers excellent cross-platform compatibility, supporting macOS, Linux, Windows (PowerShell and WSL), FreeBSD, OpenBSD, and NetBSD. Configuration is stored in JSON files with settings for providers, LSP, MCP servers, and permissions.

PARAMETERS

--cwd PATH

Change to a specific directory before starting
--data-dir PATH
Override the default data directory location
--debug
Enable debug logging for troubleshooting
--yolo
Skip all permission prompts (dangerous, use with caution)
--help
Display help information
--version
Show version number

COMMANDS

run PROMPT

Run Crush in non-interactive mode with a prompt
logs
Print the last 1000 lines of logs
logs --tail N
Print the last N lines of logs
logs --follow
Follow logs in real time

CAVEATS

Requires API keys from supported providers set via environment variables (ANTHROPICAPIKEY, OPENAIAPIKEY, etc.) or configured in crush.json. The --yolo flag bypasses all permission prompts and should be used with extreme caution. Debug mode with --debug generates verbose logging.

HISTORY

Crush was developed by Charmbracelet, a company known for creating engaging terminal applications. It was previously known as OpenCode AI before being renamed to Crush. The project is released under the FSL-1.1-MIT license (MIT-compatible) and has gained over 8,900 GitHub stars. Version 0.4.0 was released in August 2025.

SEE ALSO

claude(1), opencode(1), aider(1), codex(1)

Copied to clipboard