diazmelgarejo/orama-system/glm52-fallback
Claude Code and agent skill by diazmelgarejo/orama-system
- community
Checking that the SKILL.md file is still in the repository.
Sets up BigModel glm-5.3-flash as the system-wide fallback when ClinePass (Cline Credits) is unavailable. Uses the BigModel API at open.bigmodel.cn with env-var-only auth. Never hardcodes API keys.
Install
npx vskill@latest install diazmelgarejo/orama-system/glm52-fallbackSKILL.md
The same SKILL.md was published earlier as diazmelgarejo/orama-system/glm52-fallback.
W&B inference
invalid model ID from the Cline CLI is stale provider metadata, not a bad model id. tokenSource must be manual (or Cline's oauth or migration) and updatedAt must be UTC with millisecond precision and a trailing Z. Repair a shared entry with bin/orama-system/scripts/cline-provider-profiles/switch_cline_provider.py. When two routes run side by side, use bin/orama-system/skills/cline-wandb/scripts/launch_cline_wandb.py. Use the OpenAI client and Weave only if that error remains after the metadata is current. Do not send a CoreWeave team/project string. Shell-source the operator W&B env file before reading DEEPSEEK_V4_FLASH_WANDB.
glm-5.3-flash BigModel Fallback Skill
Purpose
Create a system-wide fallback for all agents to use glm-5.3-flash via BigModel (https://open.bigmodel.cn) when ClinePass is unavailable or Cline Credits are exhausted.
Canonical folder — this is the only tracked copy of this skill:
Fallback Chain (system-wide)
Setup (Automated)
This script will:
- Require
$GLM52_API_KEY(or$OPENCLAW_MODELS_PROVIDERS_BIGMODEL_APIKEY) to already be set in the environment — fails fast with a clear error instead of prompting interactively, so it is safe to run unattended or in CI. - Store it securely at the operator openclaw secrets directory (mode 600; path written by
setup-glm52.sh) - Create the operator-local GLM52 env bundle (mode 600; same script)
- Opt-in only: wires env config into zsh/bash profiles when
GLM52_PERSIST_SHELL_PROFILE=1(runtimestart.shalready sources the GLM52 env bundle) - Test connection to the BigModel endpoint
NEVER hardcode the API key in tracked files. Read from environmentvariables only. SeeSECURITY.md— "Read keys from environment variables,not source or tracked config." Logs, docs, PR bodies, and tests must notprint, quote, or store the credential value.
Setup (Manual)
Prefer the automated script. If you must run steps by hand:
The script creates the secrets file and operator-local env bundle (mode 600), with optional profile wiring when GLM52_PERSIST_SHELL_PROFILE=1.
API Configuration
- Endpoint:
https://open.bigmodel.cn/api/paas/v4/chat/completions - API Key:
$GLM52_API_KEYenvironment variable (never hardcode) - Model:
glm-5.3-flash - Thinking: Always on for glm-5.3-flash (it cannot be disabled; reasoning_content in response)
- Reasoning effort: send
"reasoning_effort": "high"explicitly. Official BigModel docs
(2026-11-12): glm-5.3-flash accepts only low, high and max, and the default is max, which the operator rule forbids. medium is rejected (HTTP 400, code 1210), so the rule medium, else high, else low lands on high. Never xhigh or max.
- Context window: 1M tokens (official). Older text here said 131072: that is the maximum output.
- Max tokens: default 65536, maximum 131072 (official); this skill requests 65536
- Temperature: 1.0
Request Template
OpenClaw Provider Config (mac-orchestrator.json pattern)
Timeout & Retry Policy
- Connect timeout: 10s (fail fast on network issues)
- Total timeout: 120s (allow reasoning time; the Cline profile
bigmodel-glm53-flashuses the same 120000 ms) - Auto-retry: 3 attempts, 2s backoff
Exit codes: 0 = success · 7 = connection failed → next fallback · 28 = timeout → next · 52 = empty reply → next
Verification
Before or after running setup, confirm the runtime contract without ever printing the credential value:
Report only setup status (e.g. "✓ glm-5.3-flash healthy" / "✗ glm-5.3-flash unreachable"). Do not print the credential value.
Security
- Never commit the API key. Read from
$GLM52_API_KEYor
$OPENCLAW_MODELS_PROVIDERS_BIGMODEL_APIKEY env var only.
- The key file at
~/.openclaw/secrets/glm52-api-keyis mode 600 and
git-ignored (secrets/ in .gitignore).
- The key, and any private endpoint you override
GLM52_ENDPOINTwith (a proxy or internal
host), live only in local-only files under ~/.openclaw/ — never in tracked files, logs, docs, PR text, screenshots, or tests. The public BigModel URL used in this skill and in its setup script is not secret.
- See
SECURITY.mdfor the full credential hygiene policy.
Boundaries
Always Do
- Read the key only from
$GLM52_API_KEYor$OPENCLAW_MODELS_PROVIDERS_BIGMODEL_APIKEY. - Report only setup status; confirm the runtime contract without ever printing
the credential value.
- Keep the key and any private endpoint override in local-only files under
~/.openclaw/
(key file mode 600 and git-ignored).
- Apply the timeout and retry policy, and fall through to the next fallback on
exit codes 7, 28 and 52.
Ask First
- Changing the order of the system-wide fallback chain.
- Editing the
mac-orchestrator.jsonprovider block.
Never Do
- Do not commit the API key or hardcode it anywhere.
- Do not put the key or a private endpoint override in tracked files, logs, docs,
PR text, screenshots, or tests. The public BigModel URL documented here is not secret.
- Do not use BigModel ahead of ClinePass while Cline Credits remain; this skill
is the fallback, not the default route.
Optional: Interactive Provider Setup
This skill is the reference implementation for `references/interactive-provider-setup.md` — the shared idempotent onboarding pattern for all LLM providers (Claude, Codex, Antigravity/Gemini, Cline, BigModel, Perplexity API).
Related
- cline-openclaw-agent — ClinePass default
- mcp-orchestration — routing strategy
- openrouter-defaults — free tier fallback
Evidence status (2026-11-12)
- OFFICIAL (BigModel docs, Chinese originals translated): effort levels and default, thinking
forced on, 1M context, default/max output 65536/131072, price 0.8 in / 2.8 out CNY per 1M tokens, error codes 1113 (account in arrears, HTTP 429) and 1210 (invalid parameters, HTTP 400).
- LIVE:
glm-5.3-flashappears inGET /models;reasoning_effort: mediumreturned HTTP 400
(code 1210); every other call returned HTTP 429 code 1113 because the account has no balance. Real completions on BigModel were therefore NOT observed. The same model name on W&B (zai-org/GLM-5.3-Flash) accepted medium, high and low but takes 23-30 s per call.
- Legacy names kept on purpose:
GLM52_API_KEY, the operator-local GLM52 secrets bundle
(created by setup-glm52.sh), setup-glm52.sh, and this directory name predate the model rename; the model is glm-5.3-flash.
- Effort re-check cadence: the checked-in
highis applied on every switch; medium, then high,
then low is re-verified only periodically during a reviewed repository update (see the "Effort rule" section of ../cline-wandb/SKILL.md). BigModel could not be probed live on 2026-11-12 (no balance), so re-check it first once the account can be called.
Security
- Security scanPassed, 90 of 100Pattern checks on the skill's files.
- Model reviewPassed
Quality evaluation
- Task evaluationNot runNo evaluation yet. Run one in Skill Studio.
Source
- SKILL.md in the repositoryCheckingbin/orama-system/skills/glm52-fallback/SKILL.md
Popularity
- 7-day trend score
- 0
Not refreshed yet.
Works with
Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.
- Claude Code
- Cursor
- GitHub Copilot
- Windsurf
- Codex
- Gemini CLI
- Cline
- Amp
- Roo Code
- Goose
- Continue
- Kilo Code
- Junie
- Trae
- OpenHands
- Qwen Code
- AI Agent
- Tabnine Chat
- Sourcegraph Cody
- Amazon Q
- Firebase Genkit
- Sweep
- Devin
- Phind
- Mentat
- Claude Desktop
- Aider
- GPT Pilot
- Plandex
- bolt.new
- v0
- Replit Agent
- Anse
- TypingMind
- BetterChatGPT
- LibreChat
- Warp AI
- Pieces
- Fig AI
Embed badge
[](https://verified-skill.com/skills/diazmelgarejo/orama-system/glm52-fallback)