@halilertekin/claude-code-router-config 2.2.0 → 2.3.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/.env.example CHANGED
@@ -13,7 +13,7 @@ GEMINI_API_KEY=AIza...
13
13
  # Alibaba Qwen (DashScope)
14
14
  QWEN_API_KEY=sk-...
15
15
 
16
- # Zhipu GLM (Z.ai)
16
+ # Zhipu GLM (Z.ai) - https://z.ai/apikeys
17
17
  GLM_API_KEY=...
18
18
 
19
19
  # OpenRouter (fallback)
package/NPM_README.md CHANGED
@@ -5,6 +5,15 @@
5
5
 
6
6
  Multi-provider configuration for Claude Code Router with intelligent intent-based routing.
7
7
 
8
+ ## v2.2.0 - GLM-5 Support
9
+
10
+ Now supports **GLM-5** with two endpoint options:
11
+
12
+ | Alias | Endpoint | Use Case |
13
+ |-------|----------|----------|
14
+ | `glm` | z.ai Coding Plan | Subscription-based coding |
15
+ | `glmapi` | z.ai API Credits | Pay-per-use with credits |
16
+
8
17
  ## Quick Install
9
18
 
10
19
  ```bash
@@ -31,11 +40,8 @@ ccr-setup --overwrite
31
40
  ```bash
32
41
  npx -y -p @halilertekin/claude-code-router-config ccr-glm-setup --key "YOUR_GLM_API_KEY"
33
42
  source ~/.zshrc
34
- glm
35
- ```
36
- Direct z.ai is the default. If you want the router version:
37
- ```bash
38
- glm-ccr
43
+ glm # GLM-5 via Coding Plan
44
+ glmapi # GLM-5 via API Credits
39
45
  ```
40
46
 
41
47
  ## Features
@@ -117,7 +123,7 @@ Get your API keys:
117
123
  | Anthropic | https://console.anthropic.com/settings/keys |
118
124
  | Gemini | https://aistudio.google.com/apikey |
119
125
  | Qwen | https://dashscope.console.aliyun.com/apiKey |
120
- | GLM | https://open.bigmodel.cn/usercenter/apikeys |
126
+ | GLM (z.ai) | https://z.ai/apikeys |
121
127
  | OpenRouter | https://openrouter.ai/keys |
122
128
  | GitHub Copilot | https://github.com/settings/tokens |
123
129
 
@@ -141,7 +147,8 @@ Inside Claude Code:
141
147
  /model anthropic,claude-sonnet-4-latest
142
148
  /model gemini,gemini-2.5-flash
143
149
  /model qwen,qwen-plus
144
- /model glm,glm-4.7
150
+ /model glm,glm-5
151
+ /model glmapi,glm-5
145
152
  /model copilot,copilot
146
153
  ```
147
154
 
package/README.md CHANGED
@@ -1,6 +1,6 @@
1
1
  # Claude Code Router Config - Advanced Multi-Provider Setup
2
2
 
3
- 🚀 **v2.0.9** - Unified router + config package with z.ai (GLM 4.7) support, advanced CLI tools, analytics, smart routing, and configuration templates!
3
+ 🚀 **v2.2.0** - GLM-5 Support with Coding Plan & API Credit endpoints!
4
4
 
5
5
  Use Claude Code as a single interface to access multiple AI providers with intelligent routing for optimal performance, cost, and quality.
6
6
 
@@ -43,8 +43,8 @@ If you just want to use the `ccc` command (Claude Code Commander) and `glm` alia
43
43
  4. **Reload & Run:**
44
44
  ```bash
45
45
  source ~/.zshrc
46
- glm # Launches GLM-4.7 via z.ai (direct)
47
- glm-ccr # Launches GLM-4.7 via local router
46
+ glm # Launches GLM-5 via z.ai Coding Plan
47
+ glmapi # Launches GLM-5 via z.ai API Credits
48
48
  ccc ds # Launches DeepSeek
49
49
  ccc claude # Launches Official Claude (Pro)
50
50
  ```
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@halilertekin/claude-code-router-config",
3
- "version": "2.2.0",
3
+ "version": "2.3.0",
4
4
  "description": "Multi-provider configuration for Claude Code Router with intent-based routing, advanced CLI tools, analytics, and smart routing. Setup OpenAI, Anthropic, Gemini, Qwen, GLM, OpenRouter, and GitHub Copilot with intelligent routing.",
5
5
  "main": "install.js",
6
6
  "bin": {