{"id":51026871,"url":"https://github.com/gitstq/agentconfig-cli","last_synced_at":"2026-06-21T20:02:27.941Z","repository":{"id":363694506,"uuid":"1264508450","full_name":"gitstq/agentconfig-cli","owner":"gitstq","description":"🤖 AgentConfig-CLI - Lightweight AI Agent Unified Configuration Manager | 轻量级AI Agent统一配置管理器 — Zero Dependencies, Cross-Platform","archived":false,"fork":false,"pushed_at":"2026-06-10T00:24:16.000Z","size":13,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2026-06-10T02:11:24.339Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/gitstq.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2026-06-10T00:20:26.000Z","updated_at":"2026-06-10T00:23:12.000Z","dependencies_parsed_at":null,"dependency_job_id":null,"html_url":"https://github.com/gitstq/agentconfig-cli","commit_stats":null,"previous_names":["gitstq/agentconfig-cli"],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/gitstq/agentconfig-cli","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gitstq%2Fagentconfig-cli","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gitstq%2Fagentconfig-cli/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gitstq%2Fagentconfig-cli/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gitstq%2Fagentconfig-cli/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/gitstq","download_url":"https://codeload.github.com/gitstq/agentconfig-cli/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gitstq%2Fagentconfig-cli/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":34623906,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-26T15:22:16.424Z","status":"online","status_checked_at":"2026-06-21T02:00:05.568Z","response_time":54,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2026-06-21T20:02:27.285Z","updated_at":"2026-06-21T20:02:27.933Z","avatar_url":"https://github.com/gitstq.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"\u003cdiv align=\"center\"\u003e\n\n# 🤖 AgentConfig-CLI\n\n**轻量级AI Agent统一配置管理器**\n\n**Lightweight AI Agent Unified Configuration Manager**\n\n[![Python](https://img.shields.io/badge/Python-3.8%2B-blue)](https://www.python.org/)\n[![License](https://img.shields.io/badge/License-MIT-green)](LICENSE)\n[![Platform](https://img.shields.io/badge/Platform-Cross--Platform-lightgrey)]()\n[![Dependencies](https://img.shields.io/badge/Dependencies-Zero-brightgreen)]()\n\n[简体中文](#简体中文) | [繁體中文](#繁體中文) | [English](#english)\n\n\u003c/div\u003e\n\n---\n\n## 简体中文\n\n### 🎉 项目介绍\n\nAgentConfig-CLI 是一款**零依赖、纯Python**的轻量级命令行工具，专为解决多AI Agent开发者的配置管理痛点而生。\n\n随着 Claude Code、Cursor、Windsurf、Goose、Aider 等AI编程工具爆发式增长，开发者的配置散落在 `~/.claude/`、`~/.cursor/`、`~/.windsurf/` 等不同目录中，团队协作时配置同步困难，新机器初始化繁琐。**AgentConfig-CLI** 让你一键备份、切换、同步所有Agent配置，像管理dotfiles一样管理AI工具配置！\n\n**灵感来源**：GitHub Trending 上的 `cc-switch` (90k+ stars) 项目虽然功能强大但过于复杂，AgentConfig-CLI 追求**极简、零依赖、开箱即用**的极致体验。\n\n**自研差异化亮点**：\n- 🚀 **零第三方依赖** - 纯Python标准库实现，pip都不需要\n- 🎯 **多Agent统一** - 支持6种主流AI Agent工具，而非仅管理编码工具\n- 🔄 **场景化模板** - 内置开发/写作/研究/极简4种一键切换模板\n- 💾 **安全恢复** - 每次切换自动备份，误操作可秒级回滚\n- 📦 **跨平台** - Windows/macOS/Linux 全兼容\n\n### ✨ 核心特性\n\n| 特性 | 说明 |\n|------|------|\n| 🔍 **自动检测** | 智能扫描系统中已安装的AI Agent工具 |\n| 💾 **一键备份** | 将所有Agent配置打包备份，支持自定义命名 |\n| 📂 **安全恢复** | 恢复前自动备份当前配置，防止数据丢失 |\n| 🔄 **模板切换** | 内置4种场景模板，一键切换不同工作模式 |\n| 📤 **导入导出** | 支持配置跨机器迁移，便于团队协作 |\n| 🧹 **自动清理** | 智能清理旧备份，保留最近N个版本 |\n| 🎨 **彩色终端** | 美观的终端输出，支持跨平台颜色显示 |\n| 🌍 **多语言** | 简体中文、繁体中文、English 完整文档 |\n\n**支持的Agent工具**：\n- ✅ Claude Code (`~/.claude`)\n- ✅ Cursor (`~/.cursor`)\n- ✅ Windsurf (`~/.windsurf`)\n- ✅ Goose (`~/.config/goose`)\n- ✅ Aider (`~/.aider`)\n- ✅ Continue (`~/.continue`)\n\n### 🚀 快速开始\n\n#### 环境要求\n\n- **Python** \u003e= 3.8\n- **操作系统**: Windows / macOS / Linux\n- **权限**: 对用户主目录的读写权限\n\n#### 安装步骤\n\n**方式一：直接下载使用（推荐）**\n\n```bash\n# 克隆仓库\ngit clone https://github.com/gitstq/agentconfig-cli.git\n\n# 进入目录\ncd agentconfig-cli\n\n# 直接运行（无需安装任何依赖！）\npython3 agentconfig.py --help\n```\n\n**方式二：通过 pip 安装**\n\n```bash\npip install agentconfig-cli\n```\n\n**方式三：全局安装**\n\n```bash\n# 安装到系统PATH\npip install -e .\n\n# 现在可以直接使用\nagentconfig --help\n```\n\n#### 一键运行命令\n\n```bash\n# 检测已安装的Agent工具\npython3 agentconfig.py detect\n\n# 备份当前配置\npython3 agentconfig.py backup --name my-backup\n\n# 切换到开发模式\npython3 agentconfig.py switch dev\n\n# 查看所有备份和模板\npython3 agentconfig.py list\n\n# 导出配置到指定目录\npython3 agentconfig.py export ./my-agent-configs\n\n# 从指定目录导入配置\npython3 agentconfig.py import ./my-agent-configs\n\n# 清理旧备份，只保留最近5个\npython3 agentconfig.py clean --keep 5\n```\n\n### 📖 详细使用指南\n\n#### 配置模板说明\n\n| 模板 | 适用场景 | 核心配置 |\n|------|---------|---------|\n| **dev** | 代码开发 | 低temperature、注重代码质量、建议单元测试 |\n| **writing** | 文档写作 | 高temperature、注重可读性、结构化输出 |\n| **research** | 信息研究 | 平衡temperature、要求引用来源、多角度分析 |\n| **minimal** | 默认行为 | 不修改任何配置，保持Agent原始设置 |\n\n#### 典型使用场景\n\n**场景1：新机器初始化**\n```bash\n# 在老机器上导出配置\nagentconfig export ./agent-configs\n\n# 将 ./agent-configs 复制到新机器\n# 在新机器上导入\nagentconfig import ./agent-configs\n```\n\n**场景2：团队协作同步**\n```bash\n# 导出标准团队配置\nagentconfig export ./team-configs\n\n# 提交到团队Git仓库\ngit add ./team-configs \u0026\u0026 git commit -m \"更新Agent配置\"\n\n# 团队成员拉取后导入\nagentconfig import ./team-configs\n```\n\n**场景3：工作模式切换**\n```bash\n# 上午写代码\nagentconfig switch dev\n\n# 下午写文档\nagentconfig switch writing\n\n# 晚上做研究\nagentconfig switch research\n```\n\n### 💡 设计思路与迭代规划\n\n**技术选型原因**：\n- **纯Python标准库**：确保零依赖，任何有Python的环境都能直接运行\n- **argparse**：内置模块，无需click/typer等第三方库\n- **pathlib**：跨平台路径处理，替代os.path\n- **json + shutil**：配置存储和文件操作的标准方案\n\n**后续迭代计划**：\n- [ ] Web UI 配置编辑器\n- [ ] 自定义模板创建与管理\n- [ ] 配置差异对比 (diff)\n- [ ] Git 集成自动同步\n- [ ] 配置加密存储\n- [ ] 更多Agent工具支持 (Cline, Klein, etc.)\n\n**社区贡献方向**：\n- 提交新的Agent工具支持\n- 分享你的配置模板\n- 改进多语言文档\n- 报告Bug和功能建议\n\n### 📦 打包与部署指南\n\n**本地开发**\n```bash\n# 克隆仓库\ngit clone https://github.com/gitstq/agentconfig-cli.git\ncd agentconfig-cli\n\n# 直接运行测试\npython3 agentconfig.py detect\n```\n\n**打包发布**\n```bash\n# 构建分发包\npython3 setup.py sdist bdist_wheel\n\n# 上传到PyPI\ntwine upload dist/*\n```\n\n**单文件分发**\n```bash\n# 整个工具只有一个 agentconfig.py 文件\n# 可直接复制到任何位置使用\ncp agentconfig.py /usr/local/bin/agentconfig\nchmod +x /usr/local/bin/agentconfig\n```\n\n### 🤝 贡献指南\n\n1. Fork 本仓库\n2. 创建你的特性分支 (`git checkout -b feature/amazing-feature`)\n3. 提交更改 (`git commit -m 'feat: add amazing feature'`)\n4. 推送到分支 (`git push origin feature/amazing-feature`)\n5. 创建 Pull Request\n\n**提交规范**：\n- `feat:` 新功能\n- `fix:` 修复问题\n- `docs:` 文档更新\n- `refactor:` 代码重构\n\n### 📄 开源协议\n\n本项目采用 [MIT License](LICENSE) 开源协议。\n\n---\n\n## 繁體中文\n\n### 🎉 項目介紹\n\nAgentConfig-CLI 是一款**零依賴、純Python**的輕量級命令列工具，專為解決多AI Agent開發者的配置管理痛點而生。\n\n隨著 Claude Code、Cursor、Windsurf、Goose、Aider 等AI編程工具爆發式增長，開發者的配置散落在 `~/.claude/`、`~/.cursor/`、`~/.windsurf/` 等不同目錄中，團隊協作時配置同步困難，新機器初始化繁瑣。**AgentConfig-CLI** 讓你一鍵備份、切換、同步所有Agent配置，像管理dotfiles一樣管理AI工具配置！\n\n**自研差異化亮點**：\n- 🚀 **零第三方依賴** - 純Python標準庫實現\n- 🎯 **多Agent統一** - 支援6種主流AI Agent工具\n- 🔄 **場景化模板** - 內建開發/寫作/研究/極簡4種一鍵切換模板\n- 💾 **安全恢復** - 每次切換自動備份，誤操作可秒級回滾\n- 📦 **跨平台** - Windows/macOS/Linux 全相容\n\n### ✨ 核心特性\n\n| 特性 | 說明 |\n|------|------|\n| 🔍 **自動檢測** | 智能掃描系統中已安裝的AI Agent工具 |\n| 💾 **一鍵備份** | 將所有Agent配置打包備份 |\n| 📂 **安全恢復** | 恢復前自動備份當前配置 |\n| 🔄 **模板切換** | 內建4種場景模板 |\n| 📤 **匯入匯出** | 支援配置跨機器遷移 |\n| 🧹 **自動清理** | 智能清理舊備份 |\n\n### 🚀 快速開始\n\n#### 環境要求\n\n- **Python** \u003e= 3.8\n- **作業系統**: Windows / macOS / Linux\n\n#### 安裝步驟\n\n```bash\n# 克隆倉庫\ngit clone https://github.com/gitstq/agentconfig-cli.git\ncd agentconfig-cli\n\n# 直接運行（無需安裝任何依賴！）\npython3 agentconfig.py --help\n```\n\n#### 一鍵運行命令\n\n```bash\n# 檢測已安裝的Agent工具\npython3 agentconfig.py detect\n\n# 備份當前配置\npython3 agentconfig.py backup --name my-backup\n\n# 切換到開發模式\npython3 agentconfig.py switch dev\n\n# 查看所有備份和模板\npython3 agentconfig.py list\n```\n\n### 📖 詳細使用指南\n\n#### 配置模板說明\n\n| 模板 | 適用場景 |\n|------|---------|\n| **dev** | 程式碼開發 |\n| **writing** | 文件寫作 |\n| **research** | 資訊研究 |\n| **minimal** | 預設行為 |\n\n### 💡 設計思路與迭代規劃\n\n**技術選型原因**：\n- **純Python標準庫**：確保零依賴\n- **argparse**：內建模組，無需第三方庫\n- **pathlib**：跨平台路徑處理\n\n**後續迭代計劃**：\n- [ ] Web UI 配置編輯器\n- [ ] 自定義模板創建\n- [ ] 配置差異對比\n- [ ] Git 集成自動同步\n\n### 🤝 貢獻指南\n\n1. Fork 本倉庫\n2. 創建你的特性分支\n3. 提交更改\n4. 創建 Pull Request\n\n### 📄 開源協議\n\n本項目採用 [MIT License](LICENSE) 開源協議。\n\n---\n\n## English\n\n### 🎉 Introduction\n\nAgentConfig-CLI is a **zero-dependency, pure Python** lightweight CLI tool designed to solve the configuration management pain points for multi-AI Agent developers.\n\nAs AI coding tools like Claude Code, Cursor, Windsurf, Goose, and Aider explode in popularity, developer configurations are scattered across `~/.claude/`, `~/.cursor/`, `~/.windsurf/` and other directories. Team collaboration becomes difficult, and new machine setup is tedious. **AgentConfig-CLI** lets you backup, switch, and sync all Agent configurations with one command, managing AI tool configs like dotfiles!\n\n**Differentiation Highlights**:\n- 🚀 **Zero Third-Party Dependencies** - Pure Python standard library\n- 🎯 **Multi-Agent Unified** - Supports 6 mainstream AI Agent tools\n- 🔄 **Scenario Templates** - Built-in dev/writing/research/minimal templates\n- 💾 **Safe Recovery** - Auto-backup before switching, instant rollback\n- 📦 **Cross-Platform** - Windows/macOS/Linux compatible\n\n### ✨ Core Features\n\n| Feature | Description |\n|---------|-------------|\n| 🔍 **Auto Detect** | Smart scan for installed AI Agent tools |\n| 💾 **One-Click Backup** | Package all Agent configurations |\n| 📂 **Safe Restore** | Auto-backup before restore |\n| 🔄 **Template Switch** | 4 built-in scenario templates |\n| 📤 **Import/Export** | Cross-machine config migration |\n| 🧹 **Auto Clean** | Smart old backup cleanup |\n\n### 🚀 Quick Start\n\n#### Requirements\n\n- **Python** \u003e= 3.8\n- **OS**: Windows / macOS / Linux\n\n#### Installation\n\n```bash\n# Clone repository\ngit clone https://github.com/gitstq/agentconfig-cli.git\ncd agentconfig-cli\n\n# Run directly (no dependencies needed!)\npython3 agentconfig.py --help\n```\n\n#### Quick Commands\n\n```bash\n# Detect installed Agent tools\npython3 agentconfig.py detect\n\n# Backup current configs\npython3 agentconfig.py backup --name my-backup\n\n# Switch to development mode\npython3 agentconfig.py switch dev\n\n# List all backups and templates\npython3 agentconfig.py list\n```\n\n### 📖 Usage Guide\n\n#### Template Reference\n\n| Template | Use Case |\n|----------|----------|\n| **dev** | Code development |\n| **writing** | Documentation writing |\n| **research** | Information research |\n| **minimal** | Default behavior |\n\n### 💡 Design \u0026 Roadmap\n\n**Tech Choices**:\n- **Pure Python stdlib**: Zero dependencies guarantee\n- **argparse**: Built-in, no third-party CLI libs\n- **pathlib**: Cross-platform path handling\n\n**Roadmap**:\n- [ ] Web UI config editor\n- [ ] Custom template creation\n- [ ] Config diff viewer\n- [ ] Git auto-sync integration\n\n### 🤝 Contributing\n\n1. Fork this repository\n2. Create your feature branch\n3. Commit your changes\n4. Create a Pull Request\n\n### 📄 License\n\nThis project is licensed under the [MIT License](LICENSE).\n\n---\n\n\u003cdiv align=\"center\"\u003e\n\nMade with ❤️ by AgentConfig Team\n\n\u003c/div\u003e\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgitstq%2Fagentconfig-cli","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fgitstq%2Fagentconfig-cli","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgitstq%2Fagentconfig-cli/lists"}