Connect ZCode to ModelGo: Setup & Troubleshooting

ZCode is a desktop AI coding environment from Zhipu AI that supports custom OpenAI-compatible providers. You need an API key from the ModelGo Console and a logical model name from the Model Catalog.

1. Install

Download the package for your operating system from the ZCode download page, install it, and launch ZCode.

2. Add the ModelGo provider

Click the settings icon in the lower-left corner, open Model settings, and click Add provider at the bottom of the provider list:

Open ZCode Model settings and add a provider
SettingModelGo value
NameModelGo
Base URLhttps://api.modelgo.ai/v1; do not enter the full /chat/completions URL
API KeyYour ModelGo API key
API formatChat completions (/chat/completions)
Model listClick Add model and enter a logical model name from the Model Catalog
Context windowThe model's actual context length
ModelGo provider settings

Click Add provider to save, then select ModelGo and the model you added in the chat view and send a simple task to verify.

To check which models the API key can call:

bash
export MODELGO_API_KEY="mgk_your_api_key"
curl https://api.modelgo.ai/v1/models \
  -H "Authorization: Bearer $MODELGO_API_KEY"

Troubleshooting

  • 401: check that the API key is complete, has no extra spaces, and is entered in the API Key field.
  • 403: confirm the Model list uses a logical model the API key is allowed to call.
  • 404: use https://api.modelgo.ai/v1 as the Base URL and choose Chat completions (/chat/completions).
  • The provider cannot be saved: make sure at least one model has been added.

Related docs