CLI tool and Claude Code plugin for switching between Z.AI (GLM) and MiniMax API providers
npm install @imbios/coding-helper



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.
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+)
/imbios: slash commands |``bashInstall via npm
npm install -g @imbios/coding-helper
$3
`bash
Configure API providers
imbios configSwitch between providers
imbios switch zai # Use Z.AI (GLM)
imbios switch minimax # Use MiniMaxCheck status
imbios statusView usage
imbios usage
`$3
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 connection
`Supported Models
$3
| Model | Tier | Use Case |
|-------|------|----------|
|
GLM-4.7 | Opus | Most capable, complex tasks |
| GLM-4.5-Air | Haiku | Fast, efficient responses |$3
| Model | Tier | Use Case |
|-------|------|----------|
|
MiniMax-M2.1 | Opus/Sonnet | Latest flagship model |
| MiniMax-M2 | Haiku | Efficient, cost-effective |Commands Reference
$3
| Command | Description |
|---------|-------------|
|
imbios config | Interactive provider configuration |
| imbios switch | 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 |$3
| Command | Description |
|---------|-------------|
|
imbios account list | List all configured accounts |
| imbios account add | Add new API account |
| imbios account switch | Switch to specific account |
| imbios account remove | Remove an account |$3
`bash
Rotate to next available key
imbios rotate zai
imbios rotate minimax
`$3
`bash
Start dashboard (default port 3456)
imbios dashboard startCustom port
imbios dashboard start 8080Check status
imbios dashboard status
`$3
`bash
List alerts
imbios alert listAdd new alert
imbios alert addEnable/disable alerts
imbios alert enable
imbios alert disable
`$3
`bash
Generate completion for your shell
imbios completion bash >> ~/.bashrc
imbios completion zsh >> ~/.zshrc
imbios completion fish > ~/.config/fish/completions/imbios.fish
`Environment Variables
When active, coding-helper sets:
`bash
ANTHROPIC_AUTH_TOKEN=
ANTHROPIC_BASE_URL=
ANTHROPIC_MODEL=
API_TIMEOUT_MS=3000000
`Export for shell integration:
`bash
eval "$(imbios env export)"
`Configuration Files
- Primary:
~/.claude/imbios.json
- Profiles: ~/.claude/imbios-profiles.json
- v2.0 Config: ~/.claude/imbios-v2.jsonInstallation from Source
`bash
git clone https://github.com/ImBIOS/coding-helper.git
cd coding-helper
bun install
bun run build
./bin/imbios.js config
`Requirements
- 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.
1. Fork the repository
2. Create your feature branch (
git checkout -b feature/amazing-feature)
3. Commit your changes (git commit -m 'Add amazing feature')
4. Push to the branch (git push origin feature/amazing-feature`)This project is licensed under the MIT License - see the LICENSE file for details.
- NPM Package: @imbios/coding-helper
- Issues: GitHub Issues
- Author: ImBIOS
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