cckit-0.1.0 is not a library.
cckit
Code Kit Written in Rust for Claude Model Switching - Support 智普LLM, MiniMax, Kimi 提供的 Claude model
A CLI tool for managing and switching between different Claude model providers and their configurations.
Features
- Multiple Provider Support: Configure and switch between 智普LLM, MiniMax, Kimi, and official Claude
- Easy Configuration: Simple command-line interface for managing API keys and settings
- Claude Integration: Automatically updates Claude Code configuration files
- Export/Import: Backup and restore your provider configurations
- Connection Testing: Verify provider connectivity before switching
Installation
# Clone the repository
# Build the CLI
# The binary will be available at target/release/cckit
Usage
Basic Commands
# Show help
# List all configured providers
# Show current active provider
# Configure a provider
# Switch to a provider
# Show provider configuration
# Test provider connection
Supported Providers
智普LLM (Zhipu)
# Configure 智普LLM
# Switch to 智普LLM
MiniMax
# Configure MiniMax
# Switch to MiniMax
Kimi (Moonshot)
# Configure Kimi
# Switch to Kimi
Claude (Official)
# Configure Claude (official)
# Switch to Claude
Advanced Commands
# Export configuration to file
# Import configuration from file
# Reset to default Claude configuration
Configuration
The CLI stores configurations in ~/.cckit/config.json and updates Claude's settings in ~/.claude/settings.json.
Provider Details
| Provider | Default Model | Default Base URL | Auth Method | Capabilities |
|---|---|---|---|---|
| 智普LLM | GLM-4.6 | https://open.bigmodel.cn/api/anthropic | ANTHROPIC_AUTH_TOKEN | Chat, Code Generation, Chinese Support |
| MiniMax | MiniMax-M2 | https://api.minimaxi.com/anthropic | ANTHROPIC_AUTH_TOKEN | Chat, Code Generation, Multi-language |
| Kimi | kimi-for-coding | https://api.kimi.com/coding/ | ANTHROPIC_API_KEY | Chat, Long Context, Code Generation |
| Claude | claude-3-5-sonnet-20241022 | Official | ANTHROPIC_API_KEY | Chat, Code Generation, Analysis, Multimodal |
How It Works
- Configuration Management: Stores provider settings in
~/.cckit/config.json - Claude Integration: Updates Claude's
settings.jsonwith environment variables - Switching: Changes the active provider and updates Claude's configuration
- Testing: Sends test messages to verify provider connectivity
Requirements
- Rust 1.70 or higher
- Claude Code installed
- Valid API keys for the providers you want to use
Development
# Install dependencies
# Run tests
# Check formatting
# Run clippy
# Build release version
License
This project is licensed under the MIT License - see the LICENSE file for details.
Contributing
- Fork the repository
- Create a feature branch
- Make your changes
- Add tests if applicable
- Submit a pull request
Support
If you encounter any issues or have questions, please open an issue on the GitHub repository.