惯性聚合 高效追踪和阅读你感兴趣的博客、新闻、科技资讯
阅读原文 在惯性聚合中打开

推荐订阅源

B
Blog RSS Feed
量子位
Y
Y Combinator Blog
大猫的无限游戏
大猫的无限游戏
B
Blog
U
Unit 42
C
Check Point Blog
I
InfoQ
aimingoo的专栏
aimingoo的专栏
雷峰网
雷峰网
OSCHINA 社区最新新闻
OSCHINA 社区最新新闻
博客园 - 【当耐特】
人人都是产品经理
人人都是产品经理
The Cloudflare Blog
H
Help Net Security
MongoDB | Blog
MongoDB | Blog
博客园 - Franky
H
Hackread – Cybersecurity News, Data Breaches, AI and More
J
Java Code Geeks
Microsoft Azure Blog
Microsoft Azure Blog
让小产品的独立变现更简单 - ezindie.com
让小产品的独立变现更简单 - ezindie.com
云风的 BLOG
云风的 BLOG
宝玉的分享
宝玉的分享
爱范儿
爱范儿

Recent Commits to openclaw:main

test: merge chat side-result checks · openclaw/openclaw@ddd2c2a test: merge cron history checks · openclaw/openclaw@f7eb746 test: merge responsive navigation shell checks · openclaw/openclaw@c2e4b47 docs(changelog): add codex oauth fixes · openclaw/openclaw@628e6cd test: merge navigation routing cases · openclaw/openclaw@5d8cecb Tests: mock channel registry bundled fallback · openclaw/openclaw@2b08233 Secrets: avoid broad web search discovery for single plugin config · openclaw/openclaw@a464f59 test: merge config view browser checks · openclaw/openclaw@20cf511 fix(status): align oauth health with runtime · openclaw/openclaw@eed7116 feat: add macOS screen snapshots for monitor preview (#67954) thanks … · openclaw/openclaw@f377db1 fix: report shared auth scopes in hello-ok (#67810) thanks @BunsDev · openclaw/openclaw@0b6c39b Auto-reply: avoid eager bundled route fallback · openclaw/openclaw@3ea1bf4 Tests: narrow session binding contract setup · openclaw/openclaw@54e4e16 fix(macOS): enable undo/redo in webchat composer text input (#34962) · openclaw/openclaw@00951dc Tests: speed up channel setup promotion · openclaw/openclaw@82b529a Docs: refresh agent instructions · openclaw/openclaw@5775fe2 fix(auth): serialize OAuth refresh across agents to fix #26322 (#67876) · openclaw/openclaw@8e79080 test: allow ollama public surface boundary test · openclaw/openclaw@7d4f1a6 Docs: add test performance guardrails · openclaw/openclaw@89706d3 Tests: restore context-engine usage proof · openclaw/openclaw@e4c4f95 Tests: slim context engine runtime coverage · openclaw/openclaw@74c198f ci: retry failed custom checkouts · openclaw/openclaw@0ee5baf test: trim duplicate provider auth onboarding cases · openclaw/openclaw@1ffc02e matrix: fix sessions_spawn --thread subagent session spawning (#67643) · openclaw/openclaw@1ce2596 test: reduce auth choice fixture churn · openclaw/openclaw@857b9cd test: mock health status config boundaries · openclaw/openclaw@9d5ab4a test: mock onboard config io boundary · openclaw/openclaw@299694d test: mock legacy state plugin boundaries · openclaw/openclaw@2713089 test: mock channel install boundaries · openclaw/openclaw@b945248 test: mock doctor preview channel boundaries · openclaw/openclaw@b1a3ad4
docs(providers): rewrite GLM, Runway, and Vydra with code...
vincentkoc · 2026-05-06 · via Recent Commits to openclaw:main

@@ -1,37 +1,61 @@

11

---

2-

summary: "GLM model family overview + how to use it in OpenClaw"

2+

summary: "GLM model family overview and how to use it in OpenClaw"

33

read_when:

44

- You want GLM models in OpenClaw

55

- You need the model naming convention and setup

66

title: "GLM (Zhipu)"

77

---

889-

# GLM models

9+

GLM is a model family (not a company) available through the [Z.AI](https://z.ai) platform. In OpenClaw, GLM models are accessed through the bundled `zai` provider with refs like `zai/glm-5.1`.

101011-

GLM is a **model family** (not a company) available through the Z.AI platform. In OpenClaw, GLM

12-

models are accessed via the `zai` provider and model IDs like `zai/glm-5`.

11+

| Property | Value |

12+

| ------------------- | --------------------------------------------------------------------------- |

13+

| Provider id | `zai` |

14+

| Plugin | bundled, `enabledByDefault: true` |

15+

| Auth env vars | `ZAI_API_KEY` or `Z_AI_API_KEY` |

16+

| Onboarding choices | `zai-api-key`, `zai-coding-global`, `zai-coding-cn`, `zai-global`, `zai-cn` |

17+

| API | OpenAI-compatible |

18+

| Default base URL | `https://api.z.ai/api/paas/v4` |

19+

| Suggested default | `zai/glm-5.1` |

20+

| Default image model | `zai/glm-4.6v` |

13211422

## Getting started

15231624

<Steps>

1725

<Step title="Choose an auth route and run onboarding">

18-

Pick the onboarding choice that matches your Z.AI plan and region:

26+

Pick the onboarding choice that matches your Z.AI plan and region. The generic `zai-api-key` choice auto-detects the matching endpoint from the key shape; use the explicit regional choices when you want to force a specific Coding Plan or general API surface.

192720-

| Auth choice | Best for |

21-

| ----------- | -------- |

22-

| `zai-api-key` | Generic API-key setup with endpoint auto-detection |

23-

| `zai-coding-global` | Coding Plan users (global) |

24-

| `zai-coding-cn` | Coding Plan users (China region) |

25-

| `zai-global` | General API (global) |

26-

| `zai-cn` | General API (China region) |

28+

| Auth choice | Best for |

29+

| ------------------- | --------------------------------------------------- |

30+

| `zai-api-key` | Generic API key with endpoint auto-detection |

31+

| `zai-coding-global` | Coding Plan users (global) |

32+

| `zai-coding-cn` | Coding Plan users (China region) |

33+

| `zai-global` | General API (global) |

34+

| `zai-cn` | General API (China region) |

273528-

```bash

29-

# Example: generic auto-detect

30-

openclaw onboard --auth-choice zai-api-key

36+

<CodeGroup>

313732-

# Example: Coding Plan global

33-

openclaw onboard --auth-choice zai-coding-global

34-

```

38+

```bash Auto-detect

39+

openclaw onboard --auth-choice zai-api-key

40+

```

41+42+

```bash Coding Plan (global)

43+

openclaw onboard --auth-choice zai-coding-global

44+

```

45+46+

```bash Coding Plan (China)

47+

openclaw onboard --auth-choice zai-coding-cn

48+

```

49+50+

```bash General API (global)

51+

openclaw onboard --auth-choice zai-global

52+

```

53+54+

```bash General API (China)

55+

openclaw onboard --auth-choice zai-cn

56+

```

57+58+

</CodeGroup>

35593660

</Step>

3761

<Step title="Set GLM as the default model">

@@ -56,45 +80,42 @@ models are accessed via the `zai` provider and model IDs like `zai/glm-5`.

5680

```

57815882

<Tip>

59-

`zai-api-key` lets OpenClaw detect the matching Z.AI endpoint from the key and

60-

apply the correct base URL automatically. Use the explicit regional choices when

61-

you want to force a specific Coding Plan or general API surface.

83+

`zai-api-key` lets OpenClaw detect the matching Z.AI endpoint from the key shape and apply the correct base URL automatically. Use the explicit regional choices when you want to pin a specific Coding Plan or general API surface.

6284

</Tip>

63856486

## Built-in catalog

658766-

OpenClaw currently seeds the bundled `zai` provider with these GLM refs:

67-68-

| Model | Model |

69-

| --------------- | ---------------- |

70-

| `glm-5.1` | `glm-4.7` |

71-

| `glm-5` | `glm-4.7-flash` |

72-

| `glm-5-turbo` | `glm-4.7-flashx` |

73-

| `glm-5v-turbo` | `glm-4.6` |

74-

| `glm-4.5` | `glm-4.6v` |

75-

| `glm-4.5-air` | |

76-

| `glm-4.5-flash` | |

77-

| `glm-4.5v` | |

88+

The bundled `zai` provider seeds 13 GLM model refs. All entries support reasoning unless marked otherwise; `glm-5v-turbo` and `glm-4.6v` accept image input as well as text.

89+90+

| Model ref | Notes |

91+

| -------------------- | -------------------------------------------------- |

92+

| `zai/glm-5.1` | Default model. Reasoning, text only, 202k context. |

93+

| `zai/glm-5` | Reasoning, text only, 202k context. |

94+

| `zai/glm-5-turbo` | Reasoning, text only, 202k context. |

95+

| `zai/glm-5v-turbo` | Reasoning, text + image, 202k context. |

96+

| `zai/glm-4.7` | Reasoning, text only, 204k context. |

97+

| `zai/glm-4.7-flash` | Reasoning, text only, 200k context. |

98+

| `zai/glm-4.7-flashx` | Reasoning, text only. |

99+

| `zai/glm-4.6` | Reasoning, text only. |

100+

| `zai/glm-4.6v` | Reasoning, text + image. Default image model. |

101+

| `zai/glm-4.5` | Reasoning, text only. |

102+

| `zai/glm-4.5-air` | Reasoning, text only. |

103+

| `zai/glm-4.5-flash` | Reasoning, text only. |

104+

| `zai/glm-4.5v` | Reasoning, text + image. |

7810579106

<Note>

80-

The default bundled model ref is `zai/glm-5.1`. GLM versions and availability

81-

can change; check Z.AI's docs for the latest.

107+

GLM versions and availability can change. Run `openclaw models list --provider zai` to see the catalog rows known to your installed version, and check Z.AI's docs for newly added or deprecated models.

82108

</Note>

8310984110

## Advanced configuration

8511186112

<AccordionGroup>

87113

<Accordion title="Endpoint auto-detection">

88-

When you use the `zai-api-key` auth choice, OpenClaw inspects the key format

89-

to determine the correct Z.AI base URL. Explicit regional choices

90-

(`zai-coding-global`, `zai-coding-cn`, `zai-global`, `zai-cn`) override

91-

auto-detection and pin the endpoint directly.

114+

When you use the `zai-api-key` auth choice, OpenClaw inspects the key shape to determine the correct Z.AI base URL. Explicit regional choices (`zai-coding-global`, `zai-coding-cn`, `zai-global`, `zai-cn`) override auto-detection and pin the endpoint directly.

92115

</Accordion>

9311694117

<Accordion title="Provider details">

95-

GLM models are served by the `zai` runtime provider. For full provider

96-

configuration, regional endpoints, and additional capabilities, see

97-

[Z.AI provider docs](/providers/zai).

118+

GLM models are served by the `zai` runtime provider. For full provider configuration, regional endpoints, and additional capabilities, see the [Z.AI provider page](/providers/zai).

98119

</Accordion>

99120

</AccordionGroup>

100121

@@ -104,7 +125,13 @@ can change; check Z.AI's docs for the latest.

104125

<Card title="Z.AI provider" href="/providers/zai" icon="server">

105126

Full Z.AI provider configuration and regional endpoints.

106127

</Card>

107-

<Card title="Model selection" href="/concepts/model-providers" icon="layers">

128+

<Card title="Model providers" href="/concepts/model-providers" icon="layers">

108129

Choosing providers, model refs, and failover behavior.

109130

</Card>

131+

<Card title="Thinking modes" href="/tools/thinking" icon="brain">

132+

`/think` levels for the reasoning-capable GLM family.

133+

</Card>

134+

<Card title="Models FAQ" href="/help/faq-models" icon="circle-question">

135+

Auth profiles, switching models, and resolving "no profile" errors.

136+

</Card>

110137

</CardGroup>