You can easily integrate the GLM-4.5 model into any tool that supports the OpenAI API protocol. Simply replace the default API endpoint with the one provided by GLM Coding Plan, and unlock the full power of Z.AI.

Step 1: Supported Tools

Any tool supporting the OpenAI Protocol can run on GLM-4.5.Simply replace the default OpenAI API URL and set your API key. Below are some common and popular tools supporting the OpenAI Protocol that can integrate GLM-4.5 using the same approach:
  • Cursor
  • Gemini CLI
  • Cherry studio

Step 2: Installation and Configuration Method

Core Steps:
  1. Select an OpenAI-compatible provider.
  2. Add/Replace the OpenAI Base URL with https://api.z.ai/api/coding/paas/v4.
  3. Enter your Z.AI API Key and select GLM-4.5 or GLM-4.5-air.
Using Cursor as an example, the following steps demonstrate how to integrate the GLM-4.5 model via the OpenAI protocol. Similarly, other tools supporting the OpenAI protocol can adopt the same configuration approach.

1. Install Cursor

Download and install Cursor from the official website.

2. Create a New Provider/Model

In Cursor, navigate to the “Models” section and click the “Add Custom Model”. Description
  • Select the OpenAI Protocol.
  • Configure the OpenAI API Key (obtained from the Z.AI).
  • In Override OpenAI Base URL, replace the default URL with https://api.z.ai/api/coding/paas/v4.
  • Enter the model you wish to use, such as GLM-4.5 or GLM-4.5-air.
Description

3. Save and Switch Models

After configuration, save your settings and select the newly created GLM-4.5 Provider on the homepage.

4. Get Started

With this setup, you can begin using the GLM-4.5 model for code generation, debugging, task analysis, and more. Description

Step 3: Replacing the API URL in Other Tools

  1. Locate the API configuration section in your tool:
For example, in Goose, this is typically where you set the API address in the configuration file; In VS Code plugins or IntelliJ IDEA plugins, configuration is usually done through the plugin’s settings interface.
  1. Replace the OpenAI Base URL:
Replace the default OpenAI API URL with https://api.z.ai/api/coding/paas/v4.
  1. Enter API Key and Select Model:
  • Enter your GLM-4.5 API Key.
  • Select GLM-4.5(standard, complex tasks) or GLM-4.5-air(lightweight, faster response) based on your requirements.

Summary

By following these steps, you can integrate the GLM-4.5 model into any tool supporting the OpenAI protocol. Simply replace the API endpoint and enter the corresponding API key to leverage the GLM-4.5 model for powerful code generation, debugging, and analysis tasks within these tools. Integration with GLM-4.5 is straightforward for any tool supporting the OpenAI protocol.