一键扫描、备份、导出 AI 编码工具对话数据,支持 26+ 主流 Agent,数据可转换为 Markdown/JSON/训练格式,赋能 AI 训练与跨工具迁移。
AI Exporter 是一款强大的 AI 编码工具对话数据扫描、备份、导出和分析工具。它帮助开发者保存 AI 交互历史,并将其转换为适合训练、分析或在不同的 AI 编码工具之间迁移的格式。
- 多源扫描: 自动发现和扫描多种 AI 编码工具的数据
- 格式识别: 智能识别各种数据格式
- 统一 Schema: 导出为标准化 JSON 格式
- 多种导出格式:
- JSON / JSONL (机器处理)
- Markdown (人类可读)
- 训练数据格式 (SFT, ShareGPT)
- 导入功能: 将数据导入到指定的 AI 编码 Agent
- Web 界面: 用户友好的 Web 操作界面
- 实时进度: 使用 SSE 推送扫描进度
| 工具 | 目录 | 状态 |
|---|---|---|
| Cursor | .cursor/ |
✅ |
| Claude Code | .claude/ |
✅ |
| OpenCode/Codex | .opencode/, .codex/ |
✅ |
| Antigravity | .antigravity/ |
✅ |
| Cline | .cline/ |
✅ |
| Windsurf | .windsurf/ |
✅ |
| CodeBuddy | .codebuddy/ |
✅ |
| Kiro | .kiro/ |
✅ |
| iFlow | .iflow/ |
✅ |
| Qoder | .qoder/ |
✅ |
| Trae | .trae/ |
✅ |
| Augment | .augment/ |
✅ |
| Zed | .zed/ |
✅ |
| Aider | .aider/ |
✅ |
| Continue | .continue/ |
✅ |
| GitHub Copilot | .github/copilot/ |
✅ |
| Tabnine | .tabnine/ |
✅ |
| Amazon Q | .aws/amazonq/ |
✅ |
| DeepSeek | .deepseek/ |
✅ |
| 通义灵码 | .tongyi/ |
✅ |
| 讯飞 iFlyCode | .iflycode/ |
✅ |
| Fitten Code | .fitten/ |
✅ |
| Devin | .devin/ |
✅ |
| Replit | .replit/ |
✅ |
| Lovable/Bolt/v0 | .lovable/, .bolt/, .v0/ |
✅ |
# 克隆仓库
git clone https://github.com/zhyr/Al-exporter.git
cd ai-exporter
# 安装依赖
npm install# 扫描所有支持的工具
node index.js scan
# 导出数据
node index.js export
# 启动 Web 服务
node open-viewer.js
npm run serve- 启动 Web 服务器:
node open-viewer.js
- 在浏览器中打开
http://127.0.0.1:8080 - 使用 Web 界面:
- 选择工作区并扫描
- 预览数据
- 导出为各种格式
- 将数据导入到指定的 Agent
默认存储位置 (macOS):
- 数据输出:
./agent-backup/ - Web 服务:
http://127.0.0.1:8080
AI-exporter/
├── core/ # 核心扫描和处理逻辑
│ ├── scan.js # 多源扫描
│ ├── normalize.js # 数据标准化
│ ├── convert.js # 格式转换
│ └── import.js # Agent 特定导入
├── src/ # CLI 和服务器
│ ├── server/ # Express 服务器和 REST API
│ └── cli.js # 命令行接口
├── viewer/ # Web 界面
├── tests/ # 单元测试
└── adapter/ # 格式适配器
| 方法 | 端点 | 描述 |
|---|---|---|
| GET | /api/health |
健康检查 |
| POST | /api/scan |
开始扫描 |
| GET | /api/scan/status |
扫描状态 |
| POST | /api/export |
导出数据 |
| POST | /api/import-file |
导入文件 |
| POST | /api/import-to-agent |
导入到 Agent |
| GET | /api/agents |
支持的 Agent 列表 |
| GET | /api/stats |
统计数据 |
# 运行测试
npm test
# 运行测试并生成覆盖率报告
npm run test:covMIT License
One-click tool to scan, backup, and export AI coding assistant conversations. Supports 26+ popular agents, converts data to Markdown/JSON/training formats for AI training and cross-tool migration.
- Multi-Source Scanning: Automatically discover and scan AI coding tool data from multiple sources
- Format Recognition: Intelligent identification of various data formats
- Unified Schema: Export to standardized JSON format with consistent structure
- Multiple Export Formats:
- JSON / JSONL for machine processing
- Markdown for human-readable documentation
- Training data formats (SFT, ShareGPT)
- Import Functionality: Import data into specific AI coding agents
- Web Interface: User-friendly web UI for easy operation
- Real-time Progress: Live scanning progress with SSE updates
| Tool | Directory | Status |
|---|---|---|
| Cursor | .cursor/ |
✅ |
| Claude Code | .claude/ |
✅ |
| OpenCode/Codex | .opencode/, .codex/ |
✅ |
| Antigravity | .antigravity/ |
✅ |
| Cline | .cline/ |
✅ |
| Windsurf | .windsurf/ |
✅ |
| CodeBuddy | .codebuddy/ |
✅ |
| Kiro | .kiro/ |
✅ |
| iFlow | .iflow/ |
✅ |
| Qoder | .qoder/ |
✅ |
| Trae | .trae/ |
✅ |
| Augment | .augment/ |
✅ |
| Zed | .zed/ |
✅ |
| Aider | .aider/ |
✅ |
| Continue | .continue/ |
✅ |
| GitHub Copilot | .github/copilot/ |
✅ |
| Tabnine | .tabnine/ |
✅ |
| Amazon Q | .aws/amazonq/ |
✅ |
| DeepSeek | .deepseek/ |
✅ |
| 通义灵码 | .tongyi/ |
✅ |
| 讯飞 iFlyCode | .iflycode/ |
✅ |
| Fitten Code | .fitten/ |
✅ |
| Devin | .devin/ |
✅ |
| Replit | .replit/ |
✅ |
| Lovable/Bolt/v0 | .lovable/, .bolt/, .v0/ |
✅ |
# Clone the repository
git clone https://github.com/zhyr/Al-exporter.git
cd ai-exporter
# Install dependencies
npm install# Scan all supported tools
node index.js scan
# Export data
node index.js export
# Start web server
node open-viewer.js
npm run serve- Start the web server:
node open-viewer.js
- Open your browser to
http://127.0.0.1:8080 - Use the web UI to:
- Select workspace and scan
- Preview data
- Export in various formats
- Import data to specific agents
Default storage locations by platform (macOS):
- Data Output:
./agent-backup/ - Web Server:
http://127.0.0.1:8080
AI-exporter/
├── core/ # Core scanning and processing logic
│ ├── scan.js # Multi-source scanning
│ ├── normalize.js # Data normalization
│ ├── convert.js # Format conversion
│ └── import.js # Agent-specific import
├── src/ # CLI and server
│ ├── server/ # Express server with REST API
│ └── cli.js # Command line interface
├── viewer/ # Web UI
├── tests/ # Unit tests
└── adapter/ # Format adapters
| Method | Endpoint | Description |
|---|---|---|
| GET | /api/health |
Health check |
| POST | /api/scan |
Start scanning |
| GET | /api/scan/status |
Scan status |
| POST | /api/export |
Export data |
| POST | /api/import-file |
Import file |
| POST | /api/import-to-agent |
Import to agent |
| GET | /api/agents |
List supported agents |
| GET | /api/stats |
Statistics |
# Run tests
npm test
# Run with coverage
npm run test:covMIT License

