Glm Delegation logo

Glm Delegation

Community
athola
glm-delegation

Delegates tasks to Z.ai GLM-5.x via the stock claude binary and an endpoint swap. Use when delegation-core selects GLM or a 1M-token context is needed.

Overview

Publisherathola
Repositoryclaude-night-market
Skill nameglm-delegation
Stars
343
Forks
37
Bundled files
Instructions only
LicenseMIT
Links
  • Markdown instructions

    A SKILL.md file the model loads on demand, so it only costs tokens when a request actually matches.

  • Works with any LLM

    AI skills are plain Markdown, not provider-specific code, so this works with GPT, Claude, Gemini, Grok, or a local model.

  • Self-contained

    Everything the model needs lives in the instructions — no extra files to sync.

  • Open source

    Published by athola on GitHub. Read the source before you install it.

Installation

Install the Glm Delegation AI skill in TypingMind to use it with any LLM, or drop it into another agent that reads SKILL.md.

1

Install in TypingMind

TypingMind installs a skill straight from its GitHub folder — it reads SKILL.md, bundles the resource files, and stores the result locally.

  1. Open the app and go to Plugins → Skills.
  2. Choose "Install from GitHub".
  3. Paste the skill folder URL below and confirm.
    https://github.com/athola/claude-night-market/tree/master/plugins/conjure/skills/glm-delegation
  4. Enable the skill in any chat where you want it available.
Plugins → Skills → Add skill → From GitHub URL, then paste the folder URL and press Continue.
2

Install in another agent

Any agent that reads the Agent Skills format can use this skill — copy the folder into that agent's skills directory.

Claude Code — .claude/skills
git clone --depth 1 https://github.com/athola/claude-night-market.git /tmp/claude-night-market
mkdir -p .claude/skills
cp -r /tmp/claude-night-market/plugins/conjure/skills/glm-delegation .claude/skills/glm-delegation
Restart Claude Code after copying so it picks up the new skill.

Use it in TypingMind

Enable Glm Delegation in any TypingMind chat and the model takes it from there. Its name and description sit in the system prompt, and the moment a request matches, the model loads the full instructions itself — you never invoke it by hand, and it costs no tokens until it is actually used.

The model loads Glm Delegation on its own as soon as a request matches it.

Works with any AI model

AI skills are plain Markdown instructions rather than provider-specific code, so Glm Delegation is not tied to the model it was written for. Install it once in TypingMind and use it with GPT-5, Claude, Gemini, Grok, DeepSeek, Mistral, Llama, or a local model you run yourself — all on your own API keys.

  • Loaded only when it is needed

    The system prompt carries just the name and description. The instructions are fetched on the first matching request, so an idle skill costs nothing.

  • Switch models mid-chat

    Because the skill is instructions rather than code, changing model does not break it — the next model reads the same SKILL.md.

Skill instructions

This is the SKILL.md content the model loads. Read it before installing — a skill is instructions your model will follow.

GLM Delegation

Overview

GLM ships no CLI of its own. Z.ai serves an Anthropic-compatible endpoint, so the stock claude binary reaches GLM by changing two environment variables and nothing else. This is the endpoint-swap archetype: the redirection is environment, never argv.

GLM-5.3 was released on 2026-08-14 and claims a large coding gain over GLM-5.2 from post-training alone.

When To Use

  • delegation-core selected glm for the task
  • A 1M-token context is wanted through glm-5.3[1m]
  • A GLM Coding Plan subscription should absorb the work instead of the Anthropic quota

When NOT To Use

  • ZAI_API_KEY is unset. Verification refuses rather than sending an unauthenticated request
  • The claude binary is not installed. GLM has no fallback CLI
  • A pinned GLM-5.3 identifier is required in a script that must not break: see the rollout note below

Prerequisites

Installation

Only the stock Claude Code binary is needed:

bash
npm install -g @anthropic-ai/claude-code

Authentication

bash
export ZAI_API_KEY="<your-zai-key>"

The delegation service builds the child environment from that one variable. Z.ai requires ANTHROPIC_AUTH_TOKEN, not ANTHROPIC_API_KEY. Putting the key in the wrong one is the most common way to get a 401 here, so the service names the correct variable and the overlay references ${ZAI_API_KEY} rather than storing a secret.

Quick Start

Using the shared delegation executor

bash
uv run python scripts/delegation_executor.py glm "Review this design" \
  --files docs/

Through the Makefile

bash
make -C plugins/conjure delegate-glm PROMPT='Review this design'

Direct CLI usage

bash
ANTHROPIC_BASE_URL=https://api.z.ai/api/anthropic \
ANTHROPIC_AUTH_TOKEN="$ZAI_API_KEY" \
claude --model glm-5.3 -p "Review this design"

Smart Delegation

glm declares code_execution and large_context strengths and ranks behind gemini, qwen and minimax in the candidate order. It declares glm-5.3 as its default, glm-5.3[1m] for large context, and glm-4.7 for fast response.

GLM-Specific Details

PropertyValue
Binaryclaude (stock)
Base URLhttps://api.z.ai/api/anthropic
Auth variableANTHROPIC_AUTH_TOKEN, from ZAI_API_KEY
Default modelglm-5.3
Large contextglm-5.3[1m]
OpenAI-compatible URLhttps://api.z.ai/api/coding/paas/v4

The [1m] suffix is what unlocks the 1M-token window. Omitting it is a documented setup mistake. Pair it with CLAUDE_CODE_AUTO_COMPACT_WINDOW=1000000 when driving claude directly.

Two operational notes. Environment changes only take effect in a freshly launched shell, so an already-open session keeps reaching Anthropic's real endpoint. And claude shows a first-run trust prompt when it sees a non-Anthropic base URL. The -p non-interactive form this service uses does not block on it.

Rollout caveat: at the time of writing, docs.z.ai/devpack/latest-model documented glm-5.3 while docs.z.ai/guides/llm/glm-5.3 still read "coming soon" and the base connection page still showed glm-5.2. GLM_52 stays defined for that reason, and glm-4.7 remains the fast-response id rather than being promoted on assumption.

The same archetype generalizes: MiniMax, Moonshot/Kimi, DeepSeek and OpenRouter all expose Anthropic-compatible endpoints, so adding one is a ServiceConfig with a different base URL.

Exit Criteria

  • claude resolves on PATH and answers claude --version
  • ZAI_API_KEY is set, and --verify reports the service available rather than naming an unset variable
  • The built command contains no z.ai URL: the endpoint travels in the child environment, not argv
  • The child environment carries ANTHROPIC_AUTH_TOKEN, not ANTHROPIC_API_KEY
  • Output saved to delegations/glm/YYYYMMDD_HHMMSS.md
  • This skill ran because delegation-core selected glm

Frequently asked questions

What does the Glm Delegation AI skill do?

Delegates tasks to Z.ai GLM-5.x via the stock claude binary and an endpoint swap. Use when delegation-core selects GLM or a 1M-token context is needed.

Why use Glm Delegation on TypingMind?

Because you install it once and use it with any model. Glm Delegation is plain Markdown rather than provider-specific code, so the same skill runs on GPT-5, Claude, Gemini, Grok, or a local model — and you can switch model mid-chat without it breaking. TypingMind runs on your own API keys, so you pay providers directly instead of a per-seat subscription, and your skills and chats stay in your own storage.

How do I install Glm Delegation in TypingMind?

Open Plugins → Skills → Install from GitHub in TypingMind and paste https://github.com/athola/claude-night-market/tree/master/plugins/conjure/skills/glm-delegation. TypingMind reads its SKILL.md and installs it as a skill you can enable per chat.

Which AI models can use Glm Delegation?

Any model you connect in TypingMind. AI skills are plain Markdown instructions rather than provider-specific code, so GPT, Claude, Gemini, Grok, and local models can all load this skill when a request matches it.

How many AI models can I use with Glm Delegation?

As many as you like. As long as a model supports skills, you can use Glm Delegation with it — GPT, Claude, Gemini, Grok, DeepSeek, Mistral, Llama and more — all on TypingMind with your own API keys.

Is the Glm Delegation AI skill free?

Yes. It is published on GitHub by athola under the MIT license. You only pay your own AI provider for the tokens you use.

What are AI skills?

An AI skill is a reusable instruction bundle that teaches an AI model how to do one specific task. It follows the open Agent Skills format: a SKILL.md file with a name and description, plus any scripts, templates or reference files the model may need. The model reads the instructions only when your request matches the skill, so an installed skill costs nothing until it is used.

How are AI skills different from plugins or MCP servers?

A plugin or MCP server gives a model new tools to call — code that runs somewhere and returns a result. An AI skill gives the model knowledge and process instead: how to approach a task, which steps to follow, what good output looks like. Skills are plain Markdown, so they need no server, no API key and no runtime, and they work with any model.

View all

Set up your own AI workspace now

Get notified about new features and future giveaways by subscribing to our newsletter 👇