AI Coding Agents
Guides
How to use GLM-5.2 in Factory
July 15, 2026 - 2 minute read
AI Coding Agents
Guides
July 15, 2026 - 2 minute read
GLM is a family of open-weight language models from Zhipu AI. Factory offers GLM natively, so you can run it inside a Droid without setting up your own inference endpoint or API key. If you have been searching for where to run GLM-5.2 for coding work, this is how it fits into Factory.
The short version: GLM-5.2 appears in Factory's model list alongside the Anthropic, OpenAI, Google, and xAI models, you select it the same way you select any other model, and Factory handles the inference and billing. The rest of this article covers the specifics.
GLM is an open-weight model series, which means the weights are published rather than served only through a single vendor's API. Factory groups GLM under its Droid Core open models, the set of open models it hosts and serves directly. If a workflow pins GLM-5.1, change it to glm-5.2 explicitly. Requests for the retired ID can be rejected. The Available Models page lists current GLM IDs and settings.
Because Factory serves these models itself, GLM works across the surfaces where Droids run, not only in a local setup. You do not manage a GPU, a serving stack, or a provider key to use it.
In an interactive session, run the /model command and pick GLM-5.2 from the list. You can also cycle through available models with Ctrl+N while the chat input is focused. The full set of interactive commands is in the Droid CLI reference.
For headless runs, pass the model ID directly with the -m flag:
droid exec -m glm-5.2 --auto medium "add validation to the signup form and run tests"GLM-5.2 exposes reasoning levels of Off, High (the default), and Max. Raise the reasoning effort for harder problems with Tab in interactive mode or the -r flag in droid exec. The exact levels per model are on the models page.
Factory bills model usage with a per-model credit multiplier. GLM-5.2 is listed at 0.56x. Check the current multiplier on the Available Models page before you standardize on it, since these values change.
The settings for GLM-5.2 are:
| Model | Model ID | Multiplier | Reasoning levels |
|---|---|---|---|
| GLM-5.2 | glm-5.2 | 0.56x | Off, High (default), Max |
GLM is a good fit when you want an open model with a low credit multiplier for iteration, cleanup, or well-scoped changes, and you would rather not couple a workflow to a single closed provider. Factory supports mixing models per task rather than locking to one.
For work where you want Factory to pick the model for each step automatically, Factory Router can route across the catalog instead of you setting a fixed model. When you do want deterministic control, setting -m glm-5.2 pins the run to GLM.
The same model ID works everywhere the CLI runs, including CI. A GitHub Actions step can call droid exec -m glm-5.2 to keep automated tasks on a low-multiplier model. In Missions, where an orchestrator delegates to worker and validator agents, you can assign GLM to the worker role with --worker-model glm-5.2 while keeping a stronger model for validation. That lets you spend credits where reasoning matters most and economize on the rest.
If GLM is not the right model for a given task, switching is a one-line change, which is the point of keeping model selection open.
GLM is an open-weight model family from Zhipu AI that Factory hosts and serves directly as part of Droid Core. You can use GLM-5.2 without your own endpoint or API key.
Run /model and pick GLM-5.2, or cycle models with Ctrl+N. For headless runs, pass -m glm-5.2 to droid exec.
GLM-5.2 is listed at a 0.56x credit multiplier. Check the Available Models page before standardizing, since these values change.
GLM-5.2 exposes Off, High (the default), and Max.
A runtime upgrade starts from a supported target and a passing baseline. Learn how to find every version selector, repair one compatibility class at a time, validate the deployed artifact, and use Factory to run the migration across repositories.
API compatibility checks help coding agents change services without surprising consumers. Compare contracts, trace callers, and validate old and new behavior.
Backup recovery testing for coding agent changes verifies restore procedures, integrity, dependencies, and recovery objectives with reviewable evidence.
Discuss your team’s software development, privacy, or deployment requirements.
Start building