🚀 现代化 Claude Code 配置管理神器 - 零配置启动,多端同步,安全加密,厂商快速配置
Project description
🚀 QCC - Quick Claude Config
✨ 核心特性
🎯 智能启动
🔐 安全可靠
|
☁️ 多端同步
⚡ 现代架构
|
🎮 快速开始
🌟 零安装体验(推荐)
# 🔥 一行命令,立即体验
curl -LsSf https://astral.sh/uv/install.sh | sh && uvx qcc
💫 首次运行自动完成以下魔法
- ⬇️ 自动下载最新版本
- 🔧 智能选择存储后端(GitHub/云盘/本地)
- 🔐 安全认证(GitHub 设备流,无需本地服务器)
- ☁️ 创建云存储,安全加密
- 🔄 同步配置档案
- 🎯 智能选择配置(3秒超时)
- 🚀 启动 Claude Code
📦 传统安装
# 🛠️ 使用 uv(推荐)
uv tool install qcc
# 📎 或使用 pip
pip install qcc
🎪 厂商快速配置
🌈 一键配置任意 AI 厂商
qcc fc # 🎭 Fast Config - 厂商配置向导
graph LR
A[🎯 选择厂商] --> B[🌐 浏览器注册]
B --> C[🔑 输入 API Key]
C --> D[✅ 确认配置]
D --> E[🚀 启动 Claude]
style A fill:#ff6b6b
style B fill:#4ecdc4
style C fill:#45b7d1
style D fill:#f9ca24
style E fill:#6c5ce7
🎨 支持的厂商(云端实时更新)
- 🏢 Anthropic 官方 - 原生 Claude API
- 🌟 Claude Plus - 第三方增强服务
- 🔄 更多厂商 - 云端配置实时更新
🎯 核心命令
🚀 快速操作qcc # 🌟 智能启动
qcc fc # 🎭 厂商快速配置
qcc init # 🔧 初始化设置
qcc add work # ➕ 添加配置
|
📋 管理命令qcc list # 📜 查看所有配置
qcc use work # 🎯 使用指定配置
qcc status # 📊 系统状态
qcc sync # 🔄 手动同步
|
🛠️ 高级管理
qcc default work # ⭐ 设置默认配置
qcc config # ⚙️ 配置管理(更改存储方式)
qcc remove old # 🗑️ 删除配置
qcc uninstall # 🧹 清理本地数据(保留云端)
🏗️ 存储后端
| 🌐 GitHub | ☁️ 云盘同步 | 🏠 本地存储 |
|---|---|---|
| 🔄 全平台通用 | 📱 平台特定 | 🔒 完全私有 |
| 🛡️ 设备流认证 | 📁 文件同步 | 💾 本地缓存 |
| 🌍 随处可用 | ⚡ 快速同步 | 🚫 无需网络 |
🌟 GitHub 跨平台
- 🔐 安全认证:设备流,无需本地服务器
- 🌍 全平台:Windows、macOS、Linux 通用
- 📊 数据主权:存储在你的 GitHub 账户
📁 智能云盘检测
- 🍎 macOS:自动检测 iCloud Drive
- 🪟 Windows:自动检测 OneDrive
- 🐧 Linux:自动检测 Dropbox
🏠 本地模式
- 🔒 完全私有:无云端同步
- 📂 本地存储:
~/.fastcc/ - 🚀 极速启动:无网络依赖
🛡️ 安全架构
graph TD
A[🔑 用户数据] --> B[🔐 端到端加密]
B --> C[☁️ 用户自有存储]
C --> D[🛡️ 零信任架构]
E[🚫 无中心化数据库] --> F[🔒 本地文件权限 600]
F --> G[🔐 OAuth 设备流]
G --> H[✅ 完全安全]
style A fill:#ff6b6b
style B fill:#4ecdc4
style C fill:#45b7d1
style D fill:#6c5ce7
style E fill:#f9ca24
style F fill:#26de81
style G fill:#fd79a8
style H fill:#00b894
🏛️ 系统架构
🏗️ QCC 模块化架构
┌─────────────────────────────────────┐
│ 🎮 CLI Interface (Click) │
├─────────────────────────────────────┤
│ 🧠 Core Logic │
│ ├── 📋 ConfigManager │
│ └── 👤 ConfigProfile │
├─────────────────────────────────────┤
│ 🎭 Providers (New!) │
│ ├── 🌐 ProvidersManager │
│ └── 🔗 Browser Integration │
├─────────────────────────────────────┤
│ 💾 Storage Backends │
│ ├── 🐙 GitHub (OAuth/Simple) │
│ ├── ☁️ Cloud Files │
│ └── 🏠 Local Storage │
├─────────────────────────────────────┤
│ 🔐 Security & Utils │
│ ├── 🔑 Cryptography │
│ ├── 🔐 OAuth Authentication │
│ └── 🎨 UI Components │
└─────────────────────────────────────┘
🎯 设计原则
- 🔌 插件化:存储后端可扩展
- 🛡️ 安全第一:端到端加密,用户数据自主
- 🎨 用户友好:智能默认,最少交互
- 🚀 现代化:支持 uvx,零安装体验
🔧 开发指南
🏗️ 开发环境
# 🚀 快速搭建开发环境
git clone <repository>
cd qcc
python -m venv fastcc_env
source fastcc_env/bin/activate # Windows: fastcc_env\Scripts\activate
# 📦 安装开发依赖
pip install -e .
# 🧪 运行开发版本
python -m fastcc.cli --help
🧪 测试套件
# 🔬 运行测试
source fastcc_test_env/bin/activate
# 🎯 单个测试
python3 tests/test_providers.py # 厂商配置测试
python3 tests/test_fc_command.py # FC 命令测试
python3 tests/test_simplified_fc.py # 简化流程测试
# 🎪 全部测试
python3 -m pytest tests/ -v
📦 构建发布
# 🔨 构建包
pip install build twine
python -m build
# 🚀 发布到 PyPI
python -m twine upload dist/*
🎨 配置文件
| 📁 文件 | 📍 位置 | 📝 说明 |
|---|---|---|
| 💾 本地缓存 | ~/.fastcc/cache.json |
配置档案缓存 |
| 🔑 GitHub Token | ~/.fastcc/github_token.json |
认证令牌 |
| ⚙️ Claude 设置 | ~/.claude/settings.json |
Claude Code 配置 |
📋 系统要求
| 🐍 Python | 📦 依赖 | 🖥️ 平台 |
|---|---|---|
| 3.7+ | click, requests, cryptography | Windows, macOS, Linux |
🤝 贡献指南
📄 开源协议
MIT License - 自由使用,欢迎贡献!
🌟 如果这个项目对你有帮助,请给个 Star!⭐
让 AI 配置管理变得简单而优雅 ✨
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
qcc-0.2.1.tar.gz
(33.9 kB
view details)
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
qcc-0.2.1-py3-none-any.whl
(38.1 kB
view details)
File details
Details for the file qcc-0.2.1.tar.gz.
File metadata
- Download URL: qcc-0.2.1.tar.gz
- Upload date:
- Size: 33.9 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.9.6
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
bd1a142eb1e15613632e458c43fecbd31fef4f905d2934fc91034f79ce2d544a
|
|
| MD5 |
35e170bd70908905e26a2d051b0472ce
|
|
| BLAKE2b-256 |
2e77384e0d12d0231ff9c3d299e37e32ce18513d9650bddaf18a32506d703a59
|
File details
Details for the file qcc-0.2.1-py3-none-any.whl.
File metadata
- Download URL: qcc-0.2.1-py3-none-any.whl
- Upload date:
- Size: 38.1 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.9.6
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
10bc6764a97ed3d825fbf2ed75bb8f3cd2b9497e032d6a58bc06147d1cd39572
|
|
| MD5 |
4b99097cc51bd44ec39a8f78601a2bea
|
|
| BLAKE2b-256 |
7aca8c90c272db632c14c2ed9e709688b3defef2078b3a41315167e7cfa34b52
|