How to use GLM-5 in Droid CLI (Factory Droid)
Factory Droid supports custom models via Bring Your Own Key, we easily configure it to use GLM-5 as well.
You can use GLM-5 (GLM Coding Plan) with Droid pretty easily.
Step 0: Install Droid CLI
Install the droid cli
If not done already, you install it like this:
Configure GLM models
Our configs will be at ~/.factory/settings.json
Antr
{
"customModels": [
{
"displayName": "GLM-5 [Z.AI Coding Plan]",
"model": "glm-5",
"baseUrl": "https://api.z.ai/api/anthropic",
"apiKey": "your_zai_api_key",
"provider": "anthropic",
"maxOutputTokens": 131072
}
]
}
Simlarly you can also use the OpenAI’s chat-completion like this
{
"customModels": [
{
"displayName": "GLM-5 [Z.AI Coding Plan]",
"model": "glm-5",
"baseUrl": "https://api.z.ai/api/coding/paas/v4",
"apiKey": "your_zai_api_key",
"provider": "generic-chat-completion-api",
"maxOutputTokens": 131072
}
]
}