✨ 核心特性 ✨ Key Features
多配置管理 Multi-Configuration
存储和管理多个 Claude Code 配置,支持不同的 API 端点和认证令牌 Store and manage multiple Claude Code configurations with different API endpoints and auth tokens
快速切换 Quick Switching
一键切换不同的环境配置,立即生效无需重启 Switch between different environments with one command, instant effect without restart
跨平台支持 Cross-Platform
支持 Windows、macOS 和 Linux 系统 Support for Windows, macOS, and Linux systems
简单易用 Easy to Use
直观的命令行界面,简单的命令即可完成复杂操作 Intuitive command-line interface with simple commands for complex operations
安全存储 Secure Storage
本地安全存储敏感配置信息,保护您的隐私 Securely store sensitive configuration information locally to protect your privacy
即时生效 Instant Effect
配置更改立即生效,提高工作效率 Configuration changes take effect immediately, improving work efficiency
📦 安装指南 📦 Installation Guide
全局安装 (推荐) Global Installation (Recommended)
使用 Yarn Using Yarn
验证安装 Verify Installation
快速上手 Quick Start
💡 模型参数说明 💡 Model Parameter
CCMA 支持在添加配置时指定可选的模型参数。当配置包含模型信息时
CCMA
会自动设置
ANTHROPIC_MODEL 环境变量。
CCMA supports specifying an optional model parameter
when adding configurations. When a configuration includes model information
CCMA automatically sets the ANTHROPIC_MODEL environment variable.
🎯 支持的模型 以服务商提供为准 🎯 The supported models are subject to the service provider's provision
claude-3-haiku
最快速、最经济的模型Fastest and most economical modelclaude-3-sonnet
平衡性能与成本的模型Balanced performance and cost modelclaude-3-5-sonnet
最新、最强大的模型Latest and most powerful modelclaude-3-opus
最高质量的模型Highest quality model
🚀 使用示例 🚀 Usage Examples
# 环境变量中将包含:ANTHROPIC_MODEL=claude-3-haiku # Environment variables will include: ANTHROPIC_MODEL=claude-3-haiku
# 环境变量中不会包含 ANTHROPIC_MODEL # Environment variables will not include ANTHROPIC_MODEL
📖 命令参考 📖 Command Reference
命令 Command | 描述 Description | 示例 Example |
---|---|---|
ccma add <name> <url> <token> [model] |
添加新配置 Add new configuration | ccma add prod https://api.anthropic.com sk-xxx claude-3-5-sonnet |
ccma del <name> |
删除配置 Delete configuration | ccma del production-test |
ccma use [name] |
切换配置 Switch configuration | ccma use production |
ccma list / ccma ls |
列出所有配置 List all configurations | ccma ls |
ccma current |
显示当前配置 Show current configuration | ccma current |
ccma --version / ccma -V |
显示版本 Show version | ccma -V |
ccma --help / ccma -h |
显示帮助 Show help | ccma -h |