Skip to content

Commit df322bc

Browse files
phase3devclaude
andauthored
docs: add GLM 5.2 third-party model setup to the side note (#9)
Mention GLM alongside DeepSeek in the third-party model side note, add the GLM 5.2 (z.ai) environment block, and link the two example launcher Gists. Co-authored-by: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
1 parent 0b60a2b commit df322bc

1 file changed

Lines changed: 20 additions & 1 deletion

File tree

‎README.md‎

Lines changed: 20 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -258,7 +258,7 @@ After patching, reload the webview (Command Palette -> "Developer: Reload Window
258258

259259
## Side note: launching Claude Code with third-party models
260260

261-
Because Option 1 is a launcher you control, you can also use it to launch Claude Code with any third-party, Anthropic-API-compatible model, such as DeepSeek. Set model-routing variables in the same launcher environment:
261+
Because Option 1 is a launcher you control, you can also use it to launch Claude Code with any third-party, Anthropic-API-compatible model, such as DeepSeek or GLM. Set model-routing variables in the same launcher environment:
262262

263263
```sh
264264
# --- Connection ---
@@ -272,6 +272,25 @@ export ANTHROPIC_DEFAULT_HAIKU_MODEL="deepseek-v4-flash"
272272
export CLAUDE_CODE_SUBAGENT_MODEL="deepseek-v4-flash"
273273
```
274274

275+
For GLM 5.2, point the connection at z.ai and map every model to `glm-5.2`:
276+
277+
```sh
278+
# --- Connection ---
279+
export ANTHROPIC_BASE_URL="https://api.z.ai/api/anthropic"
280+
export ANTHROPIC_AUTH_TOKEN="your token"
281+
# --- Model mapping ---
282+
export ANTHROPIC_MODEL="glm-5.2"
283+
export ANTHROPIC_DEFAULT_OPUS_MODEL="glm-5.2"
284+
export ANTHROPIC_DEFAULT_SONNET_MODEL="glm-5.2"
285+
export ANTHROPIC_DEFAULT_HAIKU_MODEL="glm-5.2"
286+
export CLAUDE_CODE_SUBAGENT_MODEL="glm-5.2"
287+
```
288+
289+
For examples of the launcher with GLM 5.2 enabled, see these two Gists:
290+
291+
* <https://gist.github.com/phase3dev/b7c341d63f666479be0aff847a5bd018> - a simplified version of the current launcher containing only the GLM 5.2 launch code and related environment variables.
292+
* <https://gist.github.com/phase3dev/1f7ee1cb17151c19d538e053f4f548ca> - the full current launcher from the repo with all features enabled and GLM 5.2 active.
293+
275294
Setup is otherwise identical to Option 1. This is unrelated to the fixes above.
276295

277296
## Troubleshooting

0 commit comments

Comments
 (0)