llm-zai-glm
LLM CLI plugin for Z.AI / GLM models, including the GLM Coding Plan endpoint.
Installation
llm install llm-zai-glm
Set your API key:
export ZAI_API_KEY="your-zai-api-key"
Or use:
llm keys set zai
Usage
# Basic model invocation
llm -m glm-5.1 "hello"
llm -m glm-5.2 "welcome message"
llm -m glm-5 "generic response"
# Use the Coding Plan endpoint with any GLM model (e.g., --coding flag)
llm -m glm-5.1 --coding "implement a binary search in rust"
llm -m glm-5.2-coding "review this repo"
# Vision models
llm -m glm-5v-turbo "describe this image" -a image.png
# Long‑context / agent models
llm -m autoglm-phone-multilingual "converse about my project"
Options
You can configure the chat behavior via options:
--thinking-type: enabled or disabled (controls whether reasoning is kept)--effort: max or high effort for supported models (e.g., glm-5.2, glm-5.1-coding)--coding: use the GLM Coding Plan endpoint (--coding trueor--coding false)--clear-thinking: preserve reasoning history across turns (true) or clear it (false)
Models
The plugin registers the following GLM models on Z.AI's OpenAI-compatible endpoints:
Chat models
glm-5.2glm-5.1glm-5glm-5-turboglm-ocrglm-5v-turbo
Coding plan variants (use --coding flag)
glm-5.2-coding→glm-5.2glm-5.1-coding→glm-5.1
Long‑context / agent models
autoglm-phone-multilingualglm-4-32b-0414-128k
Vision models
glm-5v-turboglm-ocr
Listing registered models
llm zai-glm models
License
Apache-2.0
Metadata
Release files for llm-zai-glm 0.2.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| llm_zai_glm-0.2.0.tar.gz | 14.1 kB | Without provenance | Details for llm_zai_glm-0.2.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| llm_zai_glm-0.2.0-py3-none-any.whl | Python 3 | none | any | Details for llm_zai_glm-0.2.0-py3-none-any.whl |
Total release size: 22.5 kB
Release files / llm_zai_glm-0.2.0.tar.gz
| Download URL | llm_zai_glm-0.2.0.tar.gz |
|---|---|
| Size | 14.1 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
40d448e32cc604aecc4eb8510ca708e8a3df0d0d06d93c1dc0add73994f0238f
|
|
BLAKE2b-256 checksum How to use checksums |
d600d21bc5792d265cb24ca33b6656ed6dd0bda3101fc456eec84a102075f487
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.14.6
|
Release files / llm_zai_glm-0.2.0-py3-none-any.whl
| Download URL | llm_zai_glm-0.2.0-py3-none-any.whl |
|---|---|
| Size | 8.4 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
1eb6cd5a72d3c9884fd35bcb5d9384f97c35cc0527922ea272cc51669dc75371
|
|
BLAKE2b-256 checksum How to use checksums |
e395bba3c69bb99f64967a3094a36cfd5ec51bbbfe667d6dc8f8f8ffb7ebde25
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.14.6
|
Security for llm-zai-glm 0.2.0
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.