npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2026 – Pkg Stats / Ryan Hefner

@halilertekin/claude-code-router-config

v2.4.4

Published

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.

Readme

Claude Code Router Config - Advanced Multi-Provider Setup

🚀 v2.4.4 - Multi-provider Claude Code routing with GLM-5, Claude Pro, DeepSeek & more!

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

✨ Quick Start

# 1. Install
npm install -g @halilertekin/claude-code-router-config

# 2. Configure API keys in ~/.env
export GLM_API_KEY="your_key"

# 3. Use with Claude Code
glm        # → z.ai GLM-4.7 (Coding Plan)
glm5       # → z.ai GLM-5 (Coding Plan)
glmapi     # → z.ai GLM-5 (API Credits)
claude-pro # → Anthropic Claude Pro
deepseek   # → DeepSeek

📋 Available Aliases

| Alias | Provider | Endpoint | Model | Best For | |-------|----------|----------|-------|----------| | glm | z.ai | Coding Plan | GLM-4.7 | Pro subscription coding | | glm5 | z.ai | Coding Plan | GLM-5 | Max users, complex tasks | | glmapi | z.ai | API Credits | GLM-5 | Pay-per-use (30$ bakiye) | | claude-pro | Anthropic | Official | Claude Sonnet 4.5 | Premium coding | | deepseek | DeepSeek | Anthropic API | deepseek-chat | Budget coding | | minimax / mm | MiniMax | Anthropic API | M2.5 | Long context |


🚀 Installation

Option 1: NPM (Recommended)

npm install -g @halilertekin/claude-code-router-config
source ~/.zshrc

Option 2: Manual

git clone [email protected]:halilertekin/CC-RouterMultiProvider.git ~/code/claude-code-router-config

Then add to ~/.zshrc:

[[ -f "$HOME/code/claude-code-router-config/cli/ccc.zsh" ]] && source "$HOME/code/claude-code-router-config/cli/ccc.zsh"

🔑 API Key Setup

Add to ~/.env:

# z.ai (GLM) - https://z.ai/apikeys
export GLM_API_KEY="your_zai_key"

# Anthropic Claude Pro - https://console.anthropic.com/settings/keys
export ANTHROPIC_API_KEY="your_anthropic_key"

# DeepSeek - https://platform.deepseek.com/
export DEEPSEEK_API_KEY="your_deepseek_key"

# MiniMax - https://platform.minimax.io/
export MINIMAX_API_KEY="your_minimax_key"

# OpenAI - https://platform.openai.com/api-keys
export OPENAI_API_KEY="your_openai_key"

# Gemini - https://aistudio.google.com/apikey
export GEMINI_API_KEY="your_gemini_key"

💻 Claude Code Usage

Direct Aliases

# GLM via Coding Plan (subscription)
glm

# GLM via API Credits (pay-per-use)
glmapi

# Official Claude Pro
claude-pro

# DeepSeek
deepseek

With Arguments

glm "write a React component"
glmapi --print "explain this code"
claude-pro --dangerous-skip-install

🏢 Provider Details

z.ai (GLM)

  • Website: https://z.ai
  • Models: GLM-5 (recommended for max users), GLM-4.7, GLM-4.5
  • Endpoints:
    • Coding Plan: https://api.z.ai/api/coding/paas/v4
    • API Credits: https://api.z.ai/api/paas/v4
  • Pricing: Very competitive, 3x usage with Coding Plan
  • Note: For maximum users/capacity, use GLM-5 as documented in official z.ai docs

Claude Pro

  • Website: https://www.anthropic.com/claude
  • Models: Claude Sonnet 4.5, Claude Opus 4.5, Claude Haiku
  • Access: Use claude login or API key

DeepSeek

  • Website: https://www.deepseek.com
  • Models: deepseek-chat, deepseek-coder
  • Pricing: Very affordable

MiniMax

  • Website: https://www.minimax.io
  • Models: M2.5, M2, M1
  • Endpoint: https://api.minimax.io/anthropic
  • Features: Ultra-long context (200k+ tokens), very competitive pricing

🛠️ Advanced Features

Full Router Mode

For intent-based routing with automatic model selection:

ccr start      # Start router
ccr code       # Start Claude Code with router
ccr status     # Check status
ccr benchmark  # Benchmark providers

Configuration Templates

ccr config template performance-optimized  # Fastest
ccr config template cost-optimized          # Cheapest
ccr config template quality-focused         # Best quality

Analytics

ccr analytics today --detailed
ccr ui  # Web dashboard

📖 Documentation

User Guides

Optimization & Best Practices


🔧 Troubleshooting

"GLM_API_KEY not set"

  • Check ~/.env file exists and has the key
  • Run source ~/.zshrc or restart terminal

Model not working

  • Verify API key is valid
  • Check quotas/balance

🔒 Security

This package follows security best practices:

Vulnerability Management

  • Automated scanning: Dependabot monitors dependencies
  • Zero vulnerabilities: All reported issues are patched promptly
  • Version 2.4.4: All security advisories resolved

Security Updates

# Check for updates
npm outdated -g @halilertekin/claude-code-router-config

# Update to latest
npm update -g @halilertekin/claude-code-router-config

API Key Safety

  • API keys stored in ~/.env (never in code)
  • .env is gitignored by default
  • Keys are loaded securely with shell source

Reported Vulnerabilities


License

MIT © Halil Ertekin


⭐ Support

If you find this useful, please give it a ⭐ on GitHub!