From 5ec488d7cef5268f6a912f2f706b883ccb92101c Mon Sep 17 00:00:00 2001 From: uroma Date: Thu, 15 Jan 2026 15:05:58 +0000 Subject: [PATCH] Use @z_ai/coding-helper wizard for easier GLM setup MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit MAJOR IMPROVEMENT to GLM setup workflow: Before: Manual configuration with multiple steps - Create settings.json manually - Copy/paste complex JSON - Edit files manually - Easy to make mistakes After: Interactive wizard ( MUCH simpler!) - npm install -g @z_ai/coding-helper - npx @z_ai/coding-helper init - Wizard asks for API key - Everything configured automatically - Verified working Benefits: - ✅ Fewer steps (3 vs 6+) - ✅ Less error-prone - ✅ Interactive and guided - ✅ Official Z.AI tool - ✅ Automatic verification Updates: - MASTER-PROMPT.md: Promote wizard method as "EASIEST" - README.md: Add wizard at top as primary method - Blog post: Update warning with wizard commands - Keep manual method as alternative This makes GLM setup as simple as: npm install -g @z_ai/coding-helper npx @z_ai/coding-helper init claude --- MASTER-PROMPT.md | 46 +++++++++++++++++++++++++++++++++------------- README.md | 21 ++++++++++++++++++--- 2 files changed, 51 insertions(+), 16 deletions(-) diff --git a/MASTER-PROMPT.md b/MASTER-PROMPT.md index b84549e..355afe6 100644 --- a/MASTER-PROMPT.md +++ b/MASTER-PROMPT.md @@ -10,12 +10,43 @@ **You MUST configure GLM FIRST before using Claude Code!** +**🎯 EASIEST METHOD - Use Z.AI Coding Helper:** + +```bash +# Step 1: Install the coding helper +npm install -g @z_ai/coding-helper + +# Step 2: Run the interactive GLM setup wizard +npx @z_ai/coding-helper init + +# The wizard will: +# - Ask for your Z.AI API key +# - Configure Claude Code for GLM automatically +# - Set up proper model mappings (glm-4.5-air, glm-4.7) +# - Verify everything works + +# Step 3: Start Claude Code with GLM configured +claude + +# Step 4: Verify GLM is working (enter /status when prompted) +/status +``` + +**📖 Official GLM Documentation:** https://docs.z.ai/devpack/tool/claude + +--- + +**Alternative: Manual Configuration (if you prefer):** + ```bash # Step 1: Get your API key # Visit: https://z.ai/ # Sign up for GLM Coding Plan and copy your API key -# Step 2: Create Claude Code settings +# Step 2: Install Claude Code (if not installed) +npm install -g @anthropic-ai/claude-code + +# Step 3: Create Claude Code settings mkdir -p ~/.claude cat > ~/.claude/settings.json << 'EOF' { @@ -30,21 +61,10 @@ cat > ~/.claude/settings.json << 'EOF' } EOF -# Step 3: Install Claude Code (if not installed) -npm install -g @anthropic-ai/claude-code - -# Step 4: Verify installation -claude --version # Should be 2.0.14 or higher - -# Step 5: Start Claude Code +# Step 4: Start Claude Code claude - -# Step 6: When prompted, enter /status to verify GLM is working -/status ``` -**📖 Official GLM Documentation:** https://docs.z.ai/devpack/tool/claude - --- ### **If Using Anthropic Claude (Official API):** diff --git a/README.md b/README.md index a357f0b..3b0b3d7 100644 --- a/README.md +++ b/README.md @@ -33,9 +33,24 @@ Choose the installation method that works best for you: **If using the GLM Coding Plan (90% cheaper), you MUST configure GLM FIRST before using Claude Code!** -The Master Prompt file includes complete GLM setup instructions at the top. Read the "BEFORE YOU BEGIN" section first. +**🎯 EASIEST METHOD - Use Z.AI Coding Helper Wizard:** -**Quick GLM Setup:** +```bash +# Install coding helper and run setup wizard +npm install -g @z_ai/coding-helper +npx @z_ai/coding-helper init + +# The wizard will: +# ✅ Ask for your Z.AI API key +# ✅ Configure Claude Code for GLM automatically +# ✅ Set up model mappings (glm-4.5-air, glm-4.7) +# ✅ Verify everything works + +# Start Claude Code with GLM +claude +``` + +**Manual Configuration (if you prefer):** ```bash # Get API key: https://z.ai/ mkdir -p ~/.claude @@ -52,7 +67,7 @@ cat > ~/.claude/settings.json << 'EOF' } EOF npm install -g @anthropic-ai/claude-code -claude # Start Claude Code with GLM +claude ``` ---