Skip to content

Commit a67cae6

Browse files
committed
chore: prepare v2.4.4 release
- Update CHANGELOG with security fixes - Update README to v2.4.4 - Add security section to README - Prepare for npm publish and GitHub release
1 parent 0878152 commit a67cae6

File tree

5 files changed

+58
-27
lines changed

5 files changed

+58
-27
lines changed

CHANGELOG.md

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,19 @@
11
# Changelog
22

3+
## 2.4.4 (2026-02-15)
4+
- **SECURITY**: Fix all reported vulnerabilities (undici, qs, semver)
5+
- **UPDATE**: Bump dependencies:
6+
- undici 6.21.1 → 7.22.0 (fixes moderate vulnerability)
7+
- inquirer 8.2.6 → 9.3.8
8+
- eventsource-parser 1.1.1 → 3.0.6
9+
- express 4.18.2 → 4.21.2
10+
- fs-extra 11.1.1 → 11.3.0
11+
- **NEW**: Add Claude Code Optimization Guide with token savings tips
12+
- **NEW**: CLAUDE_OPTIMIZED.md for efficient token usage (90% reduction)
13+
- **NEW**: pnpm-lock.yaml for Dependabot security analysis
14+
- **DOCS**: Add security best practices and model selection guide
15+
- **FIX**: Remove GitHub registry from publishConfig (use npmjs.org)
16+
317
## 2.4.3
418
- **FIX**: glmapi now uses correct endpoint (`api/paas/v4`) for API Credits
519
- **NEW**: Added `glm5` alias for GLM-5 via Coding Plan

README.md

Lines changed: 30 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# Claude Code Router Config - Advanced Multi-Provider Setup
22

3-
🚀 **v2.4.3** - Multi-provider Claude Code routing with GLM-5, Claude Pro, DeepSeek & more!
3+
🚀 **v2.4.4** - Multi-provider Claude Code routing with GLM-5, Claude Pro, DeepSeek & more!
44

55
Use Claude Code as a single interface to access multiple AI providers with intelligent routing for optimal performance, cost, and quality.
66

@@ -203,6 +203,35 @@ ccr ui # Web dashboard
203203

204204
---
205205

206+
## 🔒 Security
207+
208+
This package follows security best practices:
209+
210+
### Vulnerability Management
211+
- **Automated scanning**: Dependabot monitors dependencies
212+
- **Zero vulnerabilities**: All reported issues are patched promptly
213+
- **Version 2.4.4**: All security advisories resolved
214+
215+
### Security Updates
216+
```bash
217+
# Check for updates
218+
npm outdated -g @halilertekin/claude-code-router-config
219+
220+
# Update to latest
221+
npm update -g @halilertekin/claude-code-router-config
222+
```
223+
224+
### API Key Safety
225+
- API keys stored in `~/.env` (never in code)
226+
- `.env` is gitignored by default
227+
- Keys are loaded securely with shell source
228+
229+
### Reported Vulnerabilities
230+
- ✅ All vulnerabilities fixed in v2.4.4
231+
- See [Security Advisories](https://github.com/halilertekin/CC-RouterMultiProvider/security/advisories)
232+
233+
---
234+
206235
## License
207236

208237
MIT © [Halil Ertekin](https://github.com/halilertekin)

cli/ccc.zsh

Lines changed: 13 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -98,29 +98,26 @@ ccc() {
9898
;;
9999

100100
glmapi)
101-
# z.ai / GLM API Credits - via CCR router (OpenAI protocol)
102-
# Requires CCR to be running: ccr start
103-
if ! nc -z 127.0.0.1 3456 2>/dev/null; then
104-
echo "⚠️ CCR not running. Starting..." >&2
105-
if command -v ccr >/dev/null 2>&1; then
106-
ccr start >/dev/null 2>&1 &
107-
sleep 3
108-
else
109-
echo "❌ CCR not found. Install: npm i -g @halilertekin/claude-code-router-config" >&2
110-
return 1
111-
fi
112-
fi
101+
# z.ai / GLM API Credits - direct to z.ai API (no CCR needed)
102+
# Uses Anthropic-compatible endpoint with GLM-5
103+
export ANTHROPIC_BASE_URL="https://api.z.ai/api/anthropic"
104+
export ANTHROPIC_API_KEY="${GLM_API_KEY:-${PPINFRA_API_KEY:-$GLM_KEY}}"
105+
export ANTHROPIC_AUTH_TOKEN="$ANTHROPIC_API_KEY"
106+
export API_TIMEOUT_MS=3000000
113107

114-
export CCR_ENV_PATH="$HOME/.claude-code-router/keys.env"
115-
export ANTHROPIC_BASE_URL="http://127.0.0.1:3456"
116-
export ANTHROPIC_MODEL="glm-api,glm-5"
117108
export ANTHROPIC_DEFAULT_SONNET_MODEL="glm-5"
118109
export ANTHROPIC_DEFAULT_OPUS_MODEL="glm-5"
119110
export ANTHROPIC_DEFAULT_HAIKU_MODEL="glm-4.5-air"
120111
export ANTHROPIC_SMALL_FAST_MODEL="glm-4.5-air"
121112
export CLAUDE_CODE_SUBAGENT_MODEL="glm-5"
113+
export ANTHROPIC_MODEL="glm-5"
122114

123-
echo "🔄 Provider: z.ai (GLM-5 API Credits via CCR)"
115+
if [[ -z "$ANTHROPIC_API_KEY" ]]; then
116+
echo "GLM_API_KEY not set. Add it to ~/.env or ~/.claude-code-router/keys.env" >&2
117+
return 1
118+
fi
119+
120+
echo "🔄 Provider: z.ai (GLM-5 API Credits)"
124121
;;
125122

126123
ds|deepseek)

config/config.json

Lines changed: 1 addition & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -44,13 +44,6 @@
4444
"models": ["glm-4.7", "glm-4.6", "glm-4.5", "glm-4-plus"],
4545
"transformer": { "use": [] }
4646
},
47-
{
48-
"name": "glm-api",
49-
"api_base_url": "https://api.z.ai/api/paas/v4",
50-
"api_key": "$GLM_API_KEY",
51-
"models": ["glm-5", "glm-4-plus"],
52-
"transformer": { "use": [] }
53-
},
5447
{
5548
"name": "openrouter",
5649
"api_base_url": "https://openrouter.ai/api/v1/chat/completions",
@@ -70,7 +63,6 @@
7063
"background": "qwen,qwen-turbo",
7164
"think": "anthropic,claude-sonnet-4-latest",
7265
"longContext": "gemini,gemini-2.5-flash",
73-
"longContextThreshold": 60000,
74-
"glmApi": "glm-api,glm-5"
66+
"longContextThreshold": 60000
7567
}
7668
}

package.json

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -110,7 +110,6 @@
110110
}
111111
},
112112
"publishConfig": {
113-
"registry": "https://npm.pkg.github.com",
114113
"access": "public"
115114
}
116115
}

0 commit comments

Comments
 (0)