Z.ai coding endpoint

Problem Summary:

Issue: GLM-4.7 model not working in Clawdbot with GLM Coding Plan API key, but works in Cursor.

Root Cause:
- User has a GLM Coding Plan subscription from Z.AI
- GLM Coding Plan requires the coding endpoint: https://api.z.ai/api/coding/paas/v4
- Clawdbot uses the standard endpoint: https://api.z.ai/api/paas/v4
- When calling the standard endpoint, it returns: {"error":{"code":"1113","message":"Insufficient balance or no resource package. Please recharge."}}
- The API key is valid β€” direct curl test to the coding endpoint succeeds

Verification:
- Tested with curl: curl -X POST "https://api.z.ai/api/coding/paas/v4/chat/completions" β†’ Success
- Same key works in Cursor (which uses the coding endpoint)
- Clawdbot fails because it uses the standard endpoint

Required Solution:
Configure Clawdbot to use the coding endpoint (/api/coding/paas/v4) instead of the standard endpoint (/api/paas/v4) for the zai provider.

Question:
How to configure a custom base URL for the zai provider in Clawdbot?
Was this page helpful?