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 ``` ---