@halilertekin/claude-code-router-config 2.4.2 → 2.4.3
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/CHANGELOG.md +9 -0
- package/NPM_README.md +7 -6
- package/README.md +6 -4
- package/cli/ccc.zsh +3 -3
- package/docs/FULL_DOCUMENTATION.md +10 -3
- package/docs/FULL_DOCUMENTATION_EN.md +10 -3
- package/docs/PROVIDER_SETUP.md +1 -1
- package/docs/README_EN.md +1 -1
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,14 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## 2.4.3
|
|
4
|
+
- **FIX**: glmapi now uses correct endpoint (`api/paas/v4`) for API Credits
|
|
5
|
+
- **NEW**: Added `glm5` alias for GLM-5 via Coding Plan
|
|
6
|
+
- **UPDATE**: `glm` now uses GLM-4.7 (default for Pro) instead of GLM-5
|
|
7
|
+
- **DOCS**: Updated all documentation to reflect correct endpoints:
|
|
8
|
+
- `glm` → GLM-4.7, Coding Plan (Pro)
|
|
9
|
+
- `glm5` → GLM-5, Coding Plan (Max)
|
|
10
|
+
- `glmapi` → GLM-5, API Credits (pay-per-use)
|
|
11
|
+
|
|
3
12
|
## 2.4.0
|
|
4
13
|
- **NEW**: MiniMax support with `minimax` / `mm` aliases (M2.5 model)
|
|
5
14
|
- **NEW**: GLM-5 support with two endpoints:
|
package/NPM_README.md
CHANGED
|
@@ -5,14 +5,15 @@
|
|
|
5
5
|
|
|
6
6
|
Multi-provider configuration for Claude Code Router with intelligent intent-based routing.
|
|
7
7
|
|
|
8
|
-
## v2.4.
|
|
8
|
+
## v2.4.3 - GitHub Packages
|
|
9
9
|
|
|
10
|
-
Now supports **GLM-5** with
|
|
10
|
+
Now supports **GLM-5** with three endpoint options:
|
|
11
11
|
|
|
12
|
-
| Alias | Endpoint | Use Case |
|
|
13
|
-
|
|
14
|
-
| `glm` | z.ai Coding Plan |
|
|
15
|
-
| `
|
|
12
|
+
| Alias | Endpoint | Model | Use Case |
|
|
13
|
+
|-------|----------|-------|----------|
|
|
14
|
+
| `glm` | z.ai Coding Plan | GLM-4.7 | Pro subscription coding |
|
|
15
|
+
| `glm5` | z.ai Coding Plan | GLM-5 | Max users, complex tasks |
|
|
16
|
+
| `glmapi` | z.ai API Credits | GLM-5 | Pay-per-use (30$ bakiye) |
|
|
16
17
|
|
|
17
18
|
## Quick Install
|
|
18
19
|
|
package/README.md
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
# Claude Code Router Config - Advanced Multi-Provider Setup
|
|
2
2
|
|
|
3
|
-
🚀 **v2.4.
|
|
3
|
+
🚀 **v2.4.3** - Multi-provider Claude Code routing with GLM-5, Claude Pro, DeepSeek & more!
|
|
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
|
|
|
@@ -14,7 +14,8 @@ npm install -g @halilertekin/claude-code-router-config
|
|
|
14
14
|
export GLM_API_KEY="your_key"
|
|
15
15
|
|
|
16
16
|
# 3. Use with Claude Code
|
|
17
|
-
glm # → z.ai GLM-
|
|
17
|
+
glm # → z.ai GLM-4.7 (Coding Plan)
|
|
18
|
+
glm5 # → z.ai GLM-5 (Coding Plan)
|
|
18
19
|
glmapi # → z.ai GLM-5 (API Credits)
|
|
19
20
|
claude-pro # → Anthropic Claude Pro
|
|
20
21
|
deepseek # → DeepSeek
|
|
@@ -26,8 +27,9 @@ deepseek # → DeepSeek
|
|
|
26
27
|
|
|
27
28
|
| Alias | Provider | Endpoint | Model | Best For |
|
|
28
29
|
|-------|----------|----------|-------|----------|
|
|
29
|
-
| `glm` | z.ai | Coding Plan | GLM-
|
|
30
|
-
| `
|
|
30
|
+
| `glm` | z.ai | Coding Plan | GLM-4.7 | Pro subscription coding |
|
|
31
|
+
| `glm5` | z.ai | Coding Plan | GLM-5 | Max users, complex tasks |
|
|
32
|
+
| `glmapi` | z.ai | API Credits | GLM-5 | Pay-per-use (30$ bakiye) |
|
|
31
33
|
| `claude-pro` | Anthropic | Official | Claude Sonnet 4.5 | Premium coding |
|
|
32
34
|
| `deepseek` | DeepSeek | Anthropic API | deepseek-chat | Budget coding |
|
|
33
35
|
| `minimax` / `mm` | MiniMax | Anthropic API | M2.5 | Long context |
|
package/cli/ccc.zsh
CHANGED
|
@@ -98,8 +98,8 @@ ccc() {
|
|
|
98
98
|
;;
|
|
99
99
|
|
|
100
100
|
glmapi)
|
|
101
|
-
# z.ai / GLM
|
|
102
|
-
export ANTHROPIC_BASE_URL="https://api.z.ai/api/
|
|
101
|
+
# z.ai / GLM API Credits (30$ bakiye - pay-per-use)
|
|
102
|
+
export ANTHROPIC_BASE_URL="https://api.z.ai/api/paas/v4"
|
|
103
103
|
export ANTHROPIC_API_KEY="${GLM_API_KEY:-${PPINFRA_API_KEY:-$GLM_KEY}}"
|
|
104
104
|
export ANTHROPIC_AUTH_TOKEN="$ANTHROPIC_API_KEY"
|
|
105
105
|
export API_TIMEOUT_MS=3000000
|
|
@@ -116,7 +116,7 @@ ccc() {
|
|
|
116
116
|
return 1
|
|
117
117
|
fi
|
|
118
118
|
|
|
119
|
-
echo "🔄 Provider: z.ai (GLM-5 API
|
|
119
|
+
echo "🔄 Provider: z.ai (GLM-5 API Credits)"
|
|
120
120
|
;;
|
|
121
121
|
|
|
122
122
|
ds|deepseek)
|
|
@@ -107,12 +107,19 @@ Claude Code Router, Claude Code CLI'ı bir proxy üzerinden çalıştırarak ist
|
|
|
107
107
|
### 5. Zhipu GLM (Z.ai)
|
|
108
108
|
| Özellik | Değer |
|
|
109
109
|
|---------|-------|
|
|
110
|
-
| **API URL** | `https://api.z.ai/api/
|
|
111
|
-
| **Modeller** | glm-5 (önerilen), glm-4.7
|
|
110
|
+
| **API URL** | `https://api.z.ai/api/anthropic` (Coding Plan) / `https://api.z.ai/api/paas/v4` (API Credits) |
|
|
111
|
+
| **Modeller** | glm-5 (max kullanıcılar için önerilen), glm-4.7 (Pro için varsayılan) |
|
|
112
112
|
| **Kullanım** | Çok dilli, Çince, çeviri |
|
|
113
|
-
| **Maliyet** | Düşük |
|
|
113
|
+
| **Maliyet** | Düşük (Pro: 3x kullanım) |
|
|
114
114
|
| **Env Var** | `GLM_API_KEY` |
|
|
115
115
|
|
|
116
|
+
### Endpoint'ler:
|
|
117
|
+
| Alias | Endpoint | Model | Kullanım |
|
|
118
|
+
|-------|----------|-------|----------|
|
|
119
|
+
| `glm` | api.anthropic | GLM-4.7 | Coding Plan (Pro) |
|
|
120
|
+
| `glm5` | api.anthropic | GLM-5 | Coding Plan (Max) |
|
|
121
|
+
| `glmapi` | api/paas/v4 | GLM-5 | API Credits (kredi ile) | |
|
|
122
|
+
|
|
116
123
|
### 6. OpenRouter
|
|
117
124
|
| Özellik | Değer |
|
|
118
125
|
|---------|-------|
|
|
@@ -107,12 +107,19 @@ Claude Code Router acts as a proxy that intercepts Claude Code CLI requests and
|
|
|
107
107
|
### 5. Zhipu GLM (Z.ai)
|
|
108
108
|
| Feature | Value |
|
|
109
109
|
|---------|-------|
|
|
110
|
-
| **API URL** | `https://api.z.ai/api/
|
|
111
|
-
| **Models** | glm-5 (recommended), glm-4.7
|
|
110
|
+
| **API URL** | `https://api.z.ai/api/anthropic` (Coding Plan) / `https://api.z.ai/api/paas/v4` (API Credits) |
|
|
111
|
+
| **Models** | glm-5 (recommended for max users), glm-4.7 (default for Pro) |
|
|
112
112
|
| **Use Case** | Multilingual, Chinese, translation |
|
|
113
|
-
| **Cost** | Low |
|
|
113
|
+
| **Cost** | Low (Pro: 3x usage) |
|
|
114
114
|
| **Env Var** | `GLM_API_KEY` |
|
|
115
115
|
|
|
116
|
+
### Endpoints:
|
|
117
|
+
| Alias | Endpoint | Model | Use Case |
|
|
118
|
+
|-------|----------|-------|----------|
|
|
119
|
+
| `glm` | api.anthropic | GLM-4.7 | Coding Plan (Pro) |
|
|
120
|
+
| `glm5` | api.anthropic | GLM-5 | Coding Plan (Max) |
|
|
121
|
+
| `glmapi` | api/paas/v4 | GLM-5 | API Credits (pay-per-use) | |
|
|
122
|
+
|
|
116
123
|
### 6. OpenRouter
|
|
117
124
|
| Feature | Value |
|
|
118
125
|
|---------|-------|
|
package/docs/PROVIDER_SETUP.md
CHANGED
|
@@ -170,7 +170,7 @@ User Request: "Help me refactor this code"
|
|
|
170
170
|
↓
|
|
171
171
|
Intent Router: CODING intent detected
|
|
172
172
|
↓
|
|
173
|
-
Provider Selection: glm,glm-5 (
|
|
173
|
+
Provider Selection: glm,glm-4.7 (Pro) or glm5,glm-5 (Max) or glmapi,glm-5 (API Credits)
|
|
174
174
|
↓
|
|
175
175
|
Try GLM → Success ✅
|
|
176
176
|
OR
|
package/docs/README_EN.md
CHANGED
|
@@ -17,7 +17,7 @@ Use Claude Code as a single interface to access multiple AI providers with inten
|
|
|
17
17
|
| Deep analysis, architecture | Anthropic | claude-sonnet-4 |
|
|
18
18
|
| Quick responses, summaries | Gemini | gemini-2.5-flash |
|
|
19
19
|
| Simple tasks | Qwen | qwen-plus |
|
|
20
|
-
| Translation, multilingual | GLM | glm-5 |
|
|
20
|
+
| Translation, multilingual | GLM | glm-5 (recommended for max users), glm-4.7 (default for Pro) |
|
|
21
21
|
| Complex algorithms | OpenAI | o1 |
|
|
22
22
|
| Coding assistance | GitHub Copilot | copilot |
|
|
23
23
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@halilertekin/claude-code-router-config",
|
|
3
|
-
"version": "2.4.
|
|
3
|
+
"version": "2.4.3",
|
|
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": {
|