CLI tool to easily manage and switch Claude Code configurations across multiple LLM providers.
claude-cfg helps you quickly configure Claude Code to work with different LLM providers including:
- Anthropic (default)
- OpenRouter - Access various models through a unified API
- z.ai - GLM Coding Plan with 3× usage at lower cost
Instead of manually editing configuration files or environment variables, claude-cfg provides an interactive CLI to manage your Claude Code setup.
npm install -g claude-cfgSimply run:
claude-cfgThe interactive CLI will guide you through:
- Selecting your preferred LLM provider
- Entering required credentials (API keys)
- Configuring provider-specific settings
- Automatically updating your Claude Code configuration
The default Claude Code provider. Uses official Anthropic API endpoints.
- Access multiple model providers through a single API
- Supports model overrides and presets
- Requires OpenRouter API key from openrouter.ai
- GLM Coding Plan with enhanced usage limits
- Cost-effective alternative to standard Claude pricing
- Requires z.ai API key from z.ai/model-api
claude-cfg automatically manages your Claude Code configuration by updating:
~/.claude/settings.json(recommended)- Environment variables (alternative method)
All changes are made safely with backups of existing configurations.
- Node.js 18 or newer
- Claude Code installed (installation guide)
After configuration, verify your setup:
claudeThen inside Claude Code, run:
/status
This will show your active API endpoint and authentication method.
MIT
Akshat Dubey akshatdubey0808@gmail.com
Issues and pull requests are welcome on GitHub.
