Use @z_ai/coding-helper wizard for easier GLM setup

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
This commit is contained in:
uroma
2026-01-15 15:05:58 +00:00
Unverified
parent 775c5c65e7
commit 5ec488d7ce
2 changed files with 51 additions and 16 deletions

View File

@@ -10,12 +10,43 @@
**You MUST configure GLM FIRST before using Claude Code!** **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 ```bash
# Step 1: Get your API key # Step 1: Get your API key
# Visit: https://z.ai/ # Visit: https://z.ai/
# Sign up for GLM Coding Plan and copy your API key # 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 mkdir -p ~/.claude
cat > ~/.claude/settings.json << 'EOF' cat > ~/.claude/settings.json << 'EOF'
{ {
@@ -30,21 +61,10 @@ cat > ~/.claude/settings.json << 'EOF'
} }
EOF EOF
# Step 3: Install Claude Code (if not installed) # Step 4: Start Claude Code
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
claude 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):** ### **If Using Anthropic Claude (Official API):**

View File

@@ -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!** **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 ```bash
# Get API key: https://z.ai/ # Get API key: https://z.ai/
mkdir -p ~/.claude mkdir -p ~/.claude
@@ -52,7 +67,7 @@ cat > ~/.claude/settings.json << 'EOF'
} }
EOF EOF
npm install -g @anthropic-ai/claude-code npm install -g @anthropic-ai/claude-code
claude # Start Claude Code with GLM claude
``` ```
--- ---