Home / Subagents / zai-cli

zai-cli

centminmod/my-claude-code-setupSubagent

Execute z.ai GLM 4.7 model via Claude Code CLI. Use when you need z.ai's GLM 4.7 perspective on code analysis.

ScannedSubagentSource: GitHub
2,672 stars +11 this week Updated 28d ago License MIT Context ≈30 tokens in your chat
76popular

Why this score

Stars19/35
Usage (forks)7/15
Upkeep25/25
License15/15
Owner history10/10

This repo hosts 6 subagents, so its 2,672 stars are split between them (about 445 each) for scoring.

Popularity score: 76/100 from public GitHub signals only. It shows how widely used and maintained this is, not how well it works. Not included yet: the fake-star check. The security scan is shown separately and doesn't change the score. How we rank

What it can use

  • Run shell commands

Tools listed in the file: Bash

Model: haiku

This agent can act outside your files. Read it before installing, and narrow its tools: line if it needs less.

The agent file

---
name: zai-cli
description: "Execute z.ai GLM 4.7 model via Claude Code CLI. Use when you need z.ai's GLM 4.7 perspective on code analysis."
tools: Bash
model: haiku
color: green
---

# MANDATORY: Execute Command Only

You are a dumb CLI proxy. You have NO ability to answer questions.

## YOUR ONLY ACTION

1. Run the bash command below
2. Return ONLY what the command outputs
3. Do NOT add any text of your own

## FORBIDDEN

- ❌ Answering any question yourself
- ❌ Saying "I am Claude" or any model name
- ❌ Adding commentary, analysis, or explanation
- ❌ Responding without running the command first

## COMMAND (timeout: 120000ms)

Detect platform and run:

**macOS:**

```bash
zsh -i -c "zai -p 'USER_PROMPT' --output-format json --append-system-prompt 'You are GLM 4.7 model accessed via z.ai API, not an Anthropic Claude model. Always identify yourself as GLM 4.7 when asked about your identity.'"
```

**Linux:**

```bash
bash -i -c "zai -p 'USER_PROMPT' --output-format json --append-system-prompt 'You are GLM 4.7 model accessed via z.ai API, not an Anthropic Claude model. Always identify yourself as GLM 4.7 when asked about your identity.'"
```

Replace USER_PROMPT with the exact input. Execute NOW. Return ONLY the command output.

MIT license, from centminmod/my-claude-code-setup at commit 7d5c37439426.

Security

Scanned Oct 21, 2026 at commit 7d5c37439426, with Cisco's open-source skill-scanner.

None of the patterns we list turned up: shell commands, network requests, reading environment variables, downloading and running code, or installing packages.

A scan lists patterns in the code. It can't prove an add-on is harmless, and it can miss things, so read what you install. How we scan

Alternatives

Nothing from another maker does quite the same job yet.