knowledge-base/wiki/concepts/llm/glm-5.2-zai-coding-model.md
Hector 2b4557ad13 refactor(concepts): split into llm/agents/policy/directives + ingest(FinancialBot)
CONCEPT-SPLIT (v1.3):
- concepts/llm/ (6 files) — LLM-spezifische Konzepte
- concepts/agents/ (2 → 6 files) — AI-Agents, Subconscious, Trading/Payment-Bots
- concepts/policy/ (2 files) — AI-Policy, Regulation, Biosecurity
- concepts/directives/ (2 → 3 files) — Projekt-Direktiven + neue Bot-Policy
- AGENTS.md: Schema v1.2 → v1.3, Directory-Diagramm aktualisiert
- index.md: 4 Sub-Tabellen in Concepts
- Cross-Refs in 9 bestehenden Files aktualisiert

FINANCIALBOT INGEST (4 Monate, 66 Messages):
- raw/other/financialbot-topic-history-2026-02-01_2026-05-30.json (immutable, 120KB)
- 13 neue Wiki-Pages: 5 concepts, 5 tools, 3 teams
- Themen: Polymarket Arbitrage, AI-Trading-Hype-Refutation, Agent-to-Agent
  Payments (Lightning), Iron Condor, OpenClaw-Financial-Bot-Policy
- Zentrale Erkenntnis: 'Bots NICHT für Trading ohne Validation'
  (geprägt durch Halluzinations-Vorfall März 2026)
2026-06-15 11:28:55 +02:00

229 lines
12 KiB
Markdown
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

---
created: 2026-06-15
updated: 2026-06-15
sources: [youtube/2026-06-15_ichbinfabian-glm-5.2-coding-modell.md]
tags: [concept, glm-5.2, zhipu-ai, z-ai, coding-models, open-source, mit-license, coding-plan, opencode, claude-code, agentic-coding, price-comparison, china-ai]
---
# GLM 5.2 (Z.ai) — Chinese Frontier Coding Model, 10× günstiger als Claude
> **Quelle des Konzepts:** YouTube-Video "Chinas neues GLM 5.2: So gut ist das billige Coding-Modell" (IAmFabian, 14.06.2026, 13:15 Min, 212 Aufrufe, 16 Likes). Geteilt von @PWeber (Kai) in OME-Gruppe "News & Infos (X/YT/Substack etc.)"-Topic.
## Kernidee
**Chinas Frontier-Coding-Modelle erreichen 2026 Frontier-Niveau bei einem Bruchteil der Preise** — aber die Distribution-Realität ist noch holprig. GLM 5.2 ist das prominenteste Beispiel: 1M Kontext, MIT-Lizenz, mit Opus 4.8 vergleichbar — **aber Stand 14.06.2026 nur über Z.ai Coding Plan zugänglich**, nicht auf OpenRouter oder via Standard-API.
## Das Modell im Überblick
| Eigenschaft | Detail |
|---|---|
| **Hersteller** | [Z.ai](https://z.ai/) (Zhipu AI) |
| **Generation** | 5.2 — Vorgänger: GLM 5.0 (Feb 2026), GLM 5.1 (Mär 2026) |
| **Release-Datum** | 13.06.2026 |
| **Kontext** | **1M Token** (Vorgänger: 200K → 5× größer) |
| **Denkstufen** | "High" und "Max" (Thinking Mode) |
| **Open Weights** | **MIT-Lizenz**, Release "nächste Woche" (Stand 14.06.2026) |
| **Preis** | ab **18 USD/Monat** (Light Plan) — ca. 10× günstiger als Claude |
| **Vergleich zu Anthropic** | Ziel: "gegen Claude Opus 4.8 antreten" — laut [AI Code King](https://www.youtube.com/results?search_query=AI+Code+King)-Benchmarks nur 6% unter Opus 4.8 / Fable |
**Release-Kadenz:** Drei Frontier-Generationen in 4 Monaten — schnellster chinesischer Modell-Zyklus 2026.
## Die Distributions-Realität: Z.ai Coding Plan
**Stand 14.06.2026:** GLM 5.2 ist **exklusiv** über [Z.ai Coding Plan](https://z.ai/subscribe) verfügbar — nicht auf OpenRouter, nicht via Standard-API.
### Coding Plan Architektur
| Plan | Preis | Nutzungs-Limit | Server-Priorität |
|---|---|---|---|
| **Light** | ab 18 USD/Monat | mehr als Codex/Claude Code | **niedrig** (Wartezeiten) |
| **Pro/Max** | höher | deutlich mehr | höher |
**Problem:** Light-Plan hat in Stoßzeiten **2-3× Mehrverbrauch am Kontingent** und stark schwankende Geschwindigkeit. Fabian zitiert Community: "Gutes Modell, schrecklicher Coding-Plan."
**Erwartung:** OpenRouter-Listing + Standard-API-Zugang in den nächsten Tagen (per Fabian-Spekulation).
### Setup via Coding Helper
Z.ai bietet ein **Coding Helper** Tool ([`npx @z_ai/coding-helper`](https://www.npmjs.com/package/@z_ai/coding-helper)), das GLM 5.2 in bestehende Coding-Agent-Umgebungen einbindet:
| Tool | Status |
|---|---|
| [OpenCode](https://opencode.ai) | ✅ Open-Source, terminal-basiert |
| [Claude Code](https://claude.com/product/claude-code) | ✅ Anthropic |
| [Cline](https://github.com/cline/cline) | ✅ VS Code AI Agent |
| [Kilo Code](https://kilocode.ai/) | ✅ |
| [Crush](https://github.com/charmbracelet/crush) | ✅ Charm |
| [Factory Droid](https://www.factory.ai/) | ✅ |
| **Clawdbot/OpenClaw** | ✅ **explizit gelistet** |
**Strategie:** User wechselt das Coding-Tool nicht, nur das Modell im Hintergrund.
## Live-Tests (IAmFabian, 14.06.2026)
### Test 1: Flappy Bird (Single-File HTML, kein externes Lib)
**Prompt:** Komplettes Flappy Bird in einer HTML-Datei. Kollisionserkennung, Punktezähler, Start/Game-Over.
**Ergebnis:**
- 481 Zeilen HTML
- **1:20 Minuten** Generierungszeit
- ✅ Funktioniert: Scoreboard, Bestenliste, Neustart (Maus + Leertaste)
- ⚠️ Game-Experience suboptimal (zu schnell, zu schwer)
### Test 2: Newton-Pendel (Echte Physik)
**Prompt:** Realistische Newton-Pendel-Simulation. Wenn eine Kugel einschlägt, **genau eine** auf der anderen Seite — nicht zwei, nicht drei.
**Schwierigkeit:** Viele Modelle bauen nur "hübsche Animation" mit synchron schwingenden Kugeln. Hier muss **echte Physik-Logik** implementiert sein.
**Ergebnis:**
- **9:41 Minuten** (8:27 davon nur Thinking-Process)
- Lange Wartezeit wegen Light-Plan + Server-Last
- ✅ Fertig, Physik korrekt umgesetzt
**Lesson:** "Wenn wir das Modell selbst bezahlen würden (d.h. via OpenRouter mit eigener API), wäre das wahrscheinlich halb so lang" — die Coding-Plan-Wartezeit ist der Engpass, nicht die Modell-Qualität.
## Ehrliche Einordnung (Pro & Contra)
| Dimension | Bewertung |
|---|---|
| Modell-Qualität | ✅ **Top** — Frontier-Niveau, vergleichbar mit Opus 4.8 |
| Preis | ✅ **10× günstiger** als Claude |
| Kontext-Fenster | ✅ **1M Token** — komplette Codebase in einem Rutsch |
| Open Weights | ✅ **MIT-Lizenz** (kommt nächste Woche) |
| Distribution | ❌ **Miserabel** — nur Coding Plan, nicht auf OpenRouter |
| Geschwindigkeit | ⚠️ Light-Plan = lange Wartezeiten |
| Limits | ⚠️ Harte Nutzungslimits, Stoßzeit-Schwankungen |
| Datenschutz | ⚠️ Code geht zu Z.ai-Servern — potenzielles IP-Risiko |
**Fabians Fazit:** Modell ist top, **Plattform drumherum** ist der Engpass. Warten, falls nicht Pro-Plan nötig.
## Verbindung zu [[concepts/llm/real-world-coding-showdown.md]]
Zwei Videos vom **selben Tag (14.06.2026)**, **komplementär**:
| Aspekt | IAmFabian (GLM 5.2 Solo) | Fahd Mirza (Kimi K2.7 vs GLM 5.2) |
|---|---|---|
| Fokus | GLM 5.2 Distribution + Preis | Head-to-Head GLM 5.2 vs Kimi K2.7 |
| Tests | Flappy Bird + Newton-Pendel | World-Cup-Bug-Fix + Siberian-Wind-HTML |
| Beide Modelle getestet? | Nein (nur GLM 5.2) | Ja, beide |
| Mehraufwand | Distribution-Realität, Community-Inputs, Pricing-Tiefe | Modell-Vergleich unter kontrollierten Bedingungen |
**Synergie für die Wiki-Leser:**
- Wer **GLM 5.2 isoliert verstehen** will → IAmFabian
- Wer **GLM 5.2 vs Kimi K2.7 vergleichen** will → Fahd Mirza + [[concepts/llm/real-world-coding-showdown.md]]
- Wer **Infrastruktur/Preis** verstehen will → IAmFabian + [Z.ai Subscribe](https://z.ai/subscribe)
## 🔥 Direkter Implikat für OpenClaw
### 1. Z.ai Coding Plan listet OpenClaw namentlich
> [Z.ai Coding Plan](https://z.ai/subscribe) Werbetext: "Use GLM models like GLM-5.1 & GLM-5-Turbo for AI coding in Claude Code, Kilo Code, Cline, OpenCode, **Clawdbot/OpenClaw** and more."
**Hector/OpenClaw ist namentlich in der Distribution-Strategie von Z.ai.** Konkrete Integrationsoptionen existieren bereits.
### 2. Konkrete Setup-Pfade
**Option A — Z.ai Coding Plan (sofort):**
1. Light-Plan abonnieren (~18 USD/Monat)
2. API-Key erstellen
3. `npx @z_ai/coding-helper` ausführen, OpenClaw als Ziel wählen
4. GLM 5.2 ist als Modell verfügbar
**Option B — Self-Hosting (nach Open Weights Release nächste Woche):**
1. GLM 5.2 Open Weights von [HuggingFace](https://huggingface.co/zai-org/GLM-5) ziehen
2. Lokal hosten (ggf. quantisiert)
3. OpenClaw-Routing um GLM-Coding-Branch erweitern
**Option C — Warten:** OpenRouter-Listing in den nächsten Tagen erwartet → Standard-OpenClaw-Routing greift automatisch.
### 3. Sub-Task-spezifisches Routing
Siehe [[architecture/model-routing.md]]. Empfohlene Position für GLM 5.2:
```
OpenClaw Primary Routing
├─ Creative / Long-Context (1M) → GLM 5.2
├─ Speed / Innovation Coding → Kimi K2.7 Code
├─ Standard Tasks → openrouter/auto → ...
└─ Frontier Quality → Claude Opus 4.8 / Fable
```
### 4. Ensemble-Kandidat für [[concepts/llm/llm-model-fusion-ensembles.md]]
GLM 5.2 (oder 5.1 als günstigere Variante) ist ein **natürlicher Panel-Kandidat** für Coding-Fusion-Ensembles — besonders in Kombination mit Kimi K2.7 (unterschiedliche Architektur: Dense vs MoE, unterschiedliche Stärken).
## Pro-Leben-Perspektive
Gemäß [[concepts/directives/pro-leben-directive.md]]:
**Gegen Mangelnarrativ** ("US-Frontier-Modelle alternativlos"):
- 2026 ist das Jahr, in dem **chinesische Open-Source-Coding-Modelle** (Kimi K2.7, GLM 5.2) **Frontier-Nähe** bei **Bruchteil-Preisen** erreichen
- MIT-Lizenz für GLM 5.2 (Open Weights) ist handfeste Offenheit — Kimi K2.7 Code macht das ebenfalls
- **Wettbewerb** belebt das Feld: OpenAI, Anthropic, Moonshot, Zhipu — alle puschen
**Für Handlungsfähigkeit:**
- Wer heute Coding-Agents baut, kann **zwischen Frontier-Niveau und 10× niedrigeren Kosten wählen** — je nach Anwendungsfall
- Coding Plan + Coding Helper = **5-Minuten-Setup** für OpenClaw
- Open Weights (nächste Woche) = **Self-Hosting** wird möglich → Datenschutz-kritische Use-Cases lösbar
**Realismus:**
- "10× günstiger" gilt **nur** mit Light-Plan-Einschränkungen (Geschwindigkeit, Limits)
- Pro/Max-Plan dürfte näher an Claude-Preisen liegen (genaue Preise fehlen im Video)
- **Datenschutz**: Code zu Z.ai-Servern — für sensible Projekte problematisch → Self-Hosting oder lokale Modelle vorziehen
- 1M Kontext ist Marketing-Argument, aber die meisten Coding-Tasks brauchen 256K nicht aus
- AI-Code-King-Benchmark behauptet 6% unter Opus 4.8 — **eigene Tests** sind Pflicht (Fabians Tests bestätigen das grob)
## Verwandte Wiki-Seiten
- [[concepts/llm/real-world-coding-showdown.md]] — Kimi K2.7 vs GLM 5.2 Head-to-Head (Vortag)
- [[concepts/llm/llm-model-fusion-ensembles.md]] — Ensemble-Pattern mit GLM 5.2 als Panel-Kandidat
- [[concepts/agents/ai-agents-2026.md]] — Agent-Frameworks; OpenClaw namentlich in Z.ai-Liste
- [[concepts/llm/llm-behavior-persistence.md]] — Bias-Persistenz bei Modell-Wechsel
- [[tools/kimi-k2.7-code.md]] — direkter Konkurrent
- [[tools/anthropic-claude.md]] — Frontier-Konkurrenz (Opus 4.8)
- [[architecture/model-routing.md]] — Sub-Task-Routing-Plan
- [[concepts/llm/llm-knowledge-base.md]] — kuratierte Strukturen
## Externe Ressourcen
### Video & Autor
- [YouTube: GLM 5.2 — 10× billiger als Claude](https://www.youtube.com/watch?v=bN1QJi26kco)
- [IAmFabian YouTube Channel](https://www.youtube.com/@IchBinFabian) (7.8K Subs)
- [Fabian Instagram](https://www.instagram.com/ichbinfabiande/)
- [Fabian Skool Community](https://www.skool.com/die-ki-werkstatt-1779)
- [Fabian Beratung / Termin](https://ichbinfabian.com/termin)
- [Fabian: Kimi K2.7 Live-Test](https://www.youtube.com/watch?v=) (Vortag)
- [Fabian: Hermes + Gemma 4 lokal](https://www.youtube.com/watch?v=)
### Modell & Hersteller
- [Z.ai (Hersteller)](https://z.ai/)
- [Z.ai Coding Plan / Subscribe](https://z.ai/subscribe)
- [Z.ai API Docs](https://docs.z.ai/)
- [Zhipu AI (Mutterkonzern)](https://www.zhipuai.cn/)
- [GLM 5 Open Weights (HuggingFace)](https://huggingface.co/zai-org/GLM-5)
- [GLM-5 Open-Source Guide (nxcode.io)](https://www.nxcode.io/resources/news/glm-5-open-source-744b-model-complete-guide-2026)
- [GLM 5.2 auf chat.z.ai](https://chat.z.ai)
- [Truescho Review: GLM Coding Plan 2026](https://truescho.com/en/blog/glm-coding-plan-zai-2026)
- [GLM-5 Breakdown (Fahd Mirza, 1M Context Video)](https://www.youtube.com/watch?v=ONBtSnPZGVk)
### Coding Helper & Tools
- [@z_ai/coding-helper (NPM)](https://www.npmjs.com/package/@z_ai/coding-helper)
- [OpenCode (Open-Source-Coding-Agent)](https://opencode.ai)
- [Claude Code (Anthropic)](https://claude.com/product/claude-code)
- [Cline (VS Code AI Agent)](https://github.com/cline/cline)
- [Kilo Code](https://kilocode.ai/)
- [Factory Droid](https://www.factory.ai/)
- [Crush (Charm)](https://github.com/charmbracelet/crush)
### Konkurrenz & Kontext
- [Anthropic Claude](https://www.anthropic.com/claude)
- [Kimi K2.7 Code (Ollama Cloud)](https://ollama.com/library/kimi-k2.7-code)
- [OpenRouter](https://openrouter.ai/) (wo GLM 5.2 aktuell fehlt)
- [Moonshot AI](https://www.moonshot.cn/)
- [Open LLM Leaderboard (HuggingFace)](https://huggingface.co/spaces/open-llm-leaderboard/open_llm_leaderboard)