Integrate with ZCode

ZCode is Zhipu's lightweight desktop AI coding tool that manages multiple AI coding capabilities through a visual interface. ZCode supports connecting to any OpenAI-compatible custom model service, so you can configure it to use LongCat models.

I. Prerequisites

1. Install ZCode

Download the installer for your OS from the ZCode website (https://zcode.z.ai). Supported on Windows and macOS.

  • macOS: open the downloaded DMG file, drag ZCode into the "Applications" folder, then launch it from Launchpad.
  • Windows: run the downloaded installer and follow the prompts.

2. Get a LongCat API Key

Obtain your API Key from the LongCat Platform, and confirm on the Usage page that your account has sufficient token quota.

The LongCat API platform currently provides the following models:

Model NameAPI FormatDescription
LongCat-2.0OpenAI/AnthropicHigh-performance agentic model

II. Configure the LongCat API

  1. Open ZCode and click "Setting" > "Model settings" to open the model management page.
  2. Click "Add provider" and fill in the following:
    • Name: LongCat-2.0
    • Base URL: https://api.longcat.chat/openai
    • API Key: your LongCat API Key
    • API format: Chat completions(/chat/completions)
  3. Add a model with the Model ID LongCat-2.0.
  4. Save, then LongCat-2.0 will appear in the model selection list.

zcode-config-en.png

III. Using ZCode

  1. Open your local project folder in ZCode.
  2. Select LongCat-2.0 in the model selector.
  3. Enter your request in the chat box (for example, "Build me a React login page"). ZCode will generate code and try to edit your files.

If the conversation UI opens normally and you receive a reply, you're ready to use ZCode + LongCat.