@imbios/coding-helper
v2.1.0
Published
CLI tool and Claude Code plugin for switching between Z.AI (GLM) and MiniMax API providers
Downloads
928
Maintainers
Readme
coding-helper - Z.AI & MiniMax API Manager for Claude Code
A powerful CLI tool and Claude Code plugin for seamless management of Z.AI (GLM) and MiniMax API providers. Switch between providers, manage multiple accounts, track usage, rotate API keys, and monitor quotas directly from your terminal.
What is coding-helper?
coding-helper is a developer utility that enables Claude Code users to switch between Z.AI (GLM) and MiniMax API providers without code changes. It provides a unified CLI interface for:
- Provider switching - Toggle between Z.AI and MiniMax instantly
- Multi-account management - Configure and switch between multiple API accounts
- API key rotation - Automatic rotation with configurable strategies
- Usage tracking - Monitor quotas, costs, and consumption in real-time
- Web dashboard - Visual interface for monitoring (v2.0+)
Features
Provider Management
| Feature | Description | |---------|-------------| | Unified CLI | Configure and switch providers with simple commands | | Interactive Setup | Guided configuration wizard | | Multi-Account Support | Manage multiple accounts per provider | | API Key Rotation | Round-robin, least-used, or priority strategies |
Monitoring & Tracking
| Feature | Description | |---------|-------------| | Real-time Usage | Monitor API consumption instantly | | Usage History | Visualize patterns over last 30 days | | Cost Estimation | Calculate costs for different models | | Alert System | Get notified when approaching limits |
Developer Experience
| Feature | Description |
|---------|-------------|
| Shell Completion | Full tab completion for bash, zsh, fish |
| Claude Code Plugin | Native /imbios: slash commands |
| Configuration Profiles | Switch between configurations |
| Web Dashboard | Visual monitoring on port 3456 |
Quick Start
Installation
# Install via npm
npm install -g @imbios/coding-helper
# Or via bun (recommended)
bun install -g @imbios/coding-helper
# Run directly with npx
npx @imbios/coding-helper configBasic Usage
# Configure API providers
imbios config
# Switch between providers
imbios switch zai # Use Z.AI (GLM)
imbios switch minimax # Use MiniMax
# Check status
imbios status
# View usage
imbios usageClaude Code Integration
After installation, use slash commands in Claude Code:
/imbios:status - Show current provider and API status
/imbios:usage - Query usage for active provider
/imbios:switch - Switch between providers
/imbios:models - List available models
/imbios:test - Test API connectionSupported Models
Z.AI (GLM)
| Model | Tier | Use Case |
|-------|------|----------|
| GLM-4.7 | Opus | Most capable, complex tasks |
| GLM-4.5-Air | Haiku | Fast, efficient responses |
MiniMax
| Model | Tier | Use Case |
|-------|------|----------|
| MiniMax-M2.1 | Opus/Sonnet | Latest flagship model |
| MiniMax-M2 | Haiku | Efficient, cost-effective |
Commands Reference
Core Commands
| Command | Description |
|---------|-------------|
| imbios config | Interactive provider configuration |
| imbios switch <provider> | Switch active provider (zai/minimax) |
| imbios status | Show current provider and status |
| imbios usage | Query usage statistics |
| imbios history | Show usage history (30 days) |
| imbios cost [model] | Estimate costs for models |
| imbios test | Test API connection |
| imbios doctor | Diagnose configuration issues |
Multi-Account Management (v2.0)
| Command | Description |
|---------|-------------|
| imbios account list | List all configured accounts |
| imbios account add | Add new API account |
| imbios account switch <id> | Switch to specific account |
| imbios account remove <id> | Remove an account |
API Key Rotation (v2.0)
# Rotate to next available key
imbios rotate zai
imbios rotate minimaxWeb Dashboard (v2.0)
# Start dashboard (default port 3456)
imbios dashboard start
# Custom port
imbios dashboard start 8080
# Check status
imbios dashboard statusAlerts (v2.0)
# List alerts
imbios alert list
# Add new alert
imbios alert add
# Enable/disable alerts
imbios alert enable <id>
imbios alert disable <id>Shell Completion
# Generate completion for your shell
imbios completion bash >> ~/.bashrc
imbios completion zsh >> ~/.zshrc
imbios completion fish > ~/.config/fish/completions/imbios.fishEnvironment Variables
When active, coding-helper sets:
ANTHROPIC_AUTH_TOKEN=<provider_api_key>
ANTHROPIC_BASE_URL=<provider_base_url>
ANTHROPIC_MODEL=<default_model>
API_TIMEOUT_MS=3000000Export for shell integration:
eval "$(imbios env export)"Configuration Files
- Primary:
~/.claude/imbios.json - Profiles:
~/.claude/imbios-profiles.json - v2.0 Config:
~/.claude/imbios-v2.json
Installation from Source
git clone https://github.com/ImBIOS/coding-helper.git
cd coding-helper
bun install
bun run build
./bin/imbios.js configRequirements
- Runtime: Bun 1.2.0+ or Node.js 18+
- Shell: Bash, Zsh, or Fish
- OS: Linux, macOS, Windows (WSL)
Technology Stack
- Language: TypeScript (ES2022)
- Runtime: Bun (primary), Node.js (fallback)
- CLI Framework: Inquirer.js
- Code Quality: Biome with Ultracite preset
Contributing
Contributions are welcome! Please feel free to submit a Pull Request.
- Fork the repository
- Create your feature branch (
git checkout -b feature/amazing-feature) - Commit your changes (
git commit -m 'Add amazing feature') - Push to the branch (
git push origin feature/amazing-feature) - Open a Pull Request
License
This project is licensed under the MIT License - see the LICENSE file for details.
Support
- NPM Package: @imbios/coding-helper
- Issues: GitHub Issues
- Author: ImBIOS
Keywords
anthropic-api, claude-code, glm, minimax, api-client, cli-tool, provider-management, api-key-rotation, usage-tracking, shell-completion, multi-account, developer-tools, ai-assistant, terminal-tool, zai-api, glmmodel, bun, typescript
