Skip to main content
Crush is a powerful AI coding agent for the terminal (CLI + TUI). It supports multiple models to handle code generation, debugging, file operations, and more — all inside your command line.

Step 1: Installing Crush

Select the appropriate installation method based on your system:

Step 2: Configuring the GLM Model

1. Obtain Your Z.AI API Key

Get your API Key from Personal Coding Plan > Plan Overview (Individual Plan) or Team Coding Plan > My Plan (Team Plan).

2. Launch Crush and Select Model

Run the crush command to start the application:
In the model selection interface, choose the model you want to use.

3. Enter your Z.AI API key

Enter the API Key obtained from Z.AI at the prompt.

Step 3: Modify Crush Configuration

1. Locate the Configuration File

Depending on your OS, the configuration file can be found at:

2. Switch to the GLM Coding Plan Endpoint

Open the crush.json file and configure it as follows, making sure to replace with your API KEY:

Step 4: Complete Configuration and Pick model

Press ctrl+p, choose “Switch Model” After configuration, restart the Crush app and you’re ready to go.

Coding Plan MCP Servers

Refer to the Vision MCP Server , Search MCP Server and Web Reader MCP Server documentation; once configured, you can use them in Crush.