Claude API Exporter

Export Claude conversations, artifacts and projects

您需要先安装一个扩展,例如 篡改猴Greasemonkey暴力猴,之后才能安装此脚本。

您需要先安装一个扩展,例如 篡改猴暴力猴,之后才能安装此脚本。

您需要先安装一个扩展,例如 篡改猴暴力猴,之后才能安装此脚本。

您需要先安装一个扩展,例如 篡改猴Userscripts ,之后才能安装此脚本。

您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey,才能安装此脚本。

您需要先安装用户脚本管理器扩展后才能安装此脚本。

(我已经安装了用户脚本管理器,让我安装!)

您需要先安装一款用户样式管理器扩展,比如 Stylus,才能安装此样式。

您需要先安装一款用户样式管理器扩展,比如 Stylus,才能安装此样式。

您需要先安装一款用户样式管理器扩展,比如 Stylus,才能安装此样式。

您需要先安装一款用户样式管理器扩展后才能安装此样式。

您需要先安装一款用户样式管理器扩展后才能安装此样式。

您需要先安装一款用户样式管理器扩展后才能安装此样式。

(我已经安装了用户样式管理器,让我安装!)

作者
carrot4522
日安装量
0
总安装量
5
评分
0 0 0
版本
4.10.0
创建于
2025-11-08
更新于
2025-11-08
大小
158.6 KB
许可证
MIT
适用于

📦 Claude API Exporter - Tampermonkey Userscript

📋 Overview

Claude API Exporter is a Tampermonkey userscript designed to export Claude.ai conversations, artifacts, and projects with complete control and flexibility. It provides professional-grade conversation exports by intelligently handling conversation branches, artifact versions, and project organization, ensuring you never lose track of your AI interactions.

Export your Claude conversations with full control and professional formatting.


✨ Key Features

📊 Multiple Export Modes
→ Choose from 5 different export modes for maximum flexibility

🌿 Intelligent Branch Detection
→ Automatically detects and tracks conversation branches with proper labeling

📝 Artifact Version Tracking
→ Tracks all artifact versions with full history and change descriptions

🎨 Customizable Filenames
→ Use powerful template variables to create custom filename patterns

📦 ZIP Archive Support
→ Export conversations with optional ZIP archiving and automatic folder organization

🔄 Mass Export Compatible
→ Works with Claude Mass Exporter library for batch exports

📄 Raw API Export
→ Export raw conversation data in JSON format for advanced analysis

⚙️ Comprehensive Settings
→ Fine-tune every aspect through an intuitive tabbed settings interface

✍️ Markdown Formatting
→ Clean, readable exports with proper metadata and timestamps

🔍 Branch Filtering
→ Export only main branch or include all alternative branches


🎯 Perfect Use Cases

💻 Developers
→ Archive conversations with code artifacts and track version history

🔬 Researchers
→ Export conversation data for analysis with complete context

✍️ Content Creators
→ Save AI-generated content with full edit history and metadata

📊 Project Managers
→ Export and archive project conversations with proper organization

⚡ Power Users
→ Fine-tune export settings and customize filename patterns


🚀 How It Works

Export Mode System

📄 Conversation Only

  • Exports pure conversation text
  • Optionally includes artifacts based on settings
  • Perfect for lightweight text-only exports

🔴 Final Artifacts

  • Exports conversation with only final version of each artifact
  • Reduces clutter while preserving latest state
  • Ideal for production-ready outputs

📁 All Artifacts

  • Exports conversation with complete artifact version history
  • Includes create, update, and rewrite commands
  • Perfect for tracking changes and understanding evolution

💬 Latest Per Message

  • Exports only latest artifact version per message
  • Balances completeness with organization
  • Great for conversations with multiple iterations

🌿 Main Branch Only

  • Exports only the main conversation path
  • Filters out alternative branches and responses
  • Ideal for linear conversation exports

Artifact Export Modes

Three artifact export strategies available:

📝 Embed Only
→ Include artifacts in conversation file only

📁 Files Only
→ Export artifacts as separate files only

🔄 Both
→ Include in conversation AND export as separate files


Archive Creation Workflow

Step-by-step process:

  1. ⚙️ Settings Check
    → Determines if ZIP archive should be created

  2. 📁 File Collection
    → Gathers conversation markdown and artifact files

  3. 📂 Folder Organization
    → Creates folders using customizable templates

  4. 📦 Archive Generation
    → Packages all files into ZIP with compression

  5. ⬇️ Download
    → Initiates automatic download with custom name


📸 Interface Preview

The Tampermonkey menu shows available export options:

  • ⚙️ Settings - Configure all export preferences
  • 📄 Export Conversation Only - Text-only export
  • 📁 Export + Final Artifacts - Latest versions only
  • 📁 Export + All Artifacts - Complete history
  • 📁 Export + Latest Per Message - Latest per message
  • 🌿 Export Main Branch Only - Main conversation path
  • ✨ Modern, clean interface with emoji indicators

💡 Benefits

🎯 Complete Control
→ Fine-tune every aspect of export behavior through comprehensive settings

🔒 Never Lose Context
→ Track conversation branches, artifact versions, and project relationships

✨ Professional Exports
→ Clean Markdown formatting with proper metadata and timestamps

🎨 Flexible Organization
→ Customize filename patterns, archive structure, and folder naming

⚡ Batch Processing
→ Compatible with mass export library for entire project collections

📝 Version History
→ Track artifact changes with create, update, and rewrite commands

🌿 Branch Awareness
→ Understand conversation flow with automatic branch detection

⏱️ Time Savings
→ Automate conversation archiving with ZIP export and folders


🔧 Installation

  1. Install Tampermonkey browser extension
  2. Add Claude API Exporter userscript
  3. Visit claude.ai - script activates automatically
  4. Look for new menu options in Tampermonkey icon
  5. Start exporting - choose your preferred export mode

📝 Usage Tips

For Best Results:

⚙️ Configure First:

  • Open Settings to configure filename templates
  • Set export preferences before first export
  • Review all options in tabbed interface

📄 Quick Exports:

  • Use "Conversation Only" for quick text exports
  • Skip artifacts for simple conversation backups

📦 Complete Archives:

  • Use "All Artifacts" for complete version history
  • Enable ZIP archives for multi-file exports

🎨 Organization:

  • Customize filename templates with date/time variables
  • Use chat folders for better organization

Recommended Settings Configurations:

⚡ Quick Export:

Mode: Conversation Only
Artifacts: none
ZIP: disabled

📦 Complete Archive:

Mode: All Artifacts
Export: Both (embed + files)
ZIP: enabled with chat folders

🚀 Production Ready:

Mode: Final Artifacts
Export: Files only
ZIP: optional

🔬 Research Mode:

Mode: All Artifacts
Export: Both
ZIP: enabled with metadata

⚙️ Customization

Extensive Options Available:

📝 Filename Templates
→ 40+ template variables for custom naming

📅 Date Format Options
→ Compact, readable, or ISO timestamp formats

📦 Archive Settings
→ Control ZIP creation, folder structure, naming patterns

✍️ Content Formatting
→ Remove double newlines, exclude attachments, control metadata

🌿 Branch Export Options
→ Export current branch only or full tree structure

🎛️ Menu Configuration
→ Show/hide export options in Tampermonkey menu


Template Variables Examples:

Date/Time:

  • {date} → 2024-11-08
  • {time} → 14-30-00
  • {timestamp} → 20241108-143000

Conversation Info:

  • {title} → Conversation title
  • {uuid} → Conversation ID
  • {branch} → Branch identifier

Project Info:

  • {project} → Project name
  • {project_uuid} → Project ID

🎓 Why This Matters

❌ Problem Statement

Claude.ai doesn't provide built-in tools to export conversations with artifacts in an organized format. Users lose track of:

  • Conversation branch history when exploring alternatives
  • Artifact version changes and edit history
  • Project organization and conversation relationships
  • Complete context including metadata and timestamps
  • Tool usage and command history

✅ Solution Statement

Claude API Exporter solves these problems by:

  • Automatic branch detection with proper labeling
  • Complete artifact history with change descriptions
  • Organized exports with customizable filenames and ZIP archives
  • Preserved metadata including timestamps and conversation context
  • Flexible formatting in clean, readable Markdown

🌟 Ideal For

👨‍💻 Developers
→ Building AI-powered applications needing conversation history

🔬 Researchers
→ Analyzing AI interactions and preserving research conversations

✍️ Content Creators
→ Maintaining archives of AI-generated content with edit history

👥 Teams
→ Collaborating on Claude projects with organized exports

⚡ Power Users
→ Complete control over export formatting and organization

📚 Archivists
→ Preserving Claude conversations with full context and metadata


Claude API Exporter transforms how you work with Claude.ai by providing professional-grade conversation exports, complete artifact version tracking, and flexible organization options with intelligent branch detection and customizable filename templates.


🔗 Additional Information

🌐 Compatible With: Chrome, Firefox, Edge, Safari (with Tampermonkey)
📺 Website Support: claude.ai (all conversation pages, project pages, recents)
📦 Version: v4.10.0 (Latest)
🌍 Language: English
📜 License: MIT
🔧 Settings: Tabbed interface with 40+ options
💾 Export Formats: Markdown, JSON (pretty/compact), ZIP archives


📊 Technical Details

Export Capabilities

✓ Conversation Types:

  • Individual conversations
  • Project conversations
  • Recent conversation lists
  • All conversations (with Mass Exporter)

✓ Content Types:

  • Messages (user and assistant)
  • Artifacts (all versions)
  • Tool usage
  • Attachments
  • Metadata

✓ Export Formats:

  • Markdown (.md)
  • JSON (.json)
  • ZIP archives (.zip)

Performance Metrics

⚡ Processing Speed: Near-instant for single conversations
💾 Archive Size: Optimized compression
🔧 Settings: Persistent across sessions
📁 Organization: Automatic folder creation


Supported Export Modes

5 Main Modes:

  1. Conversation Only
  2. Conversation + Final Artifacts
  3. Conversation + All Artifacts
  4. Conversation + Latest Per Message
  5. Main Branch Only

3 Artifact Export Strategies:

  1. Embed Only
  2. Files Only
  3. Both

💪 Advanced Features

Branch Detection

🌿 Automatic Detection:

  • Identifies conversation branches
  • Labels messages with branch membership
  • Tracks branch relationships

📊 Branch Export Options:

  • Export current branch only
  • Export all branches with tree structure
  • Include branch metadata

Artifact Tracking

📝 Version Control:

  • Tracks create commands
  • Monitors update commands
  • Records rewrite commands
  • Maintains change descriptions

📁 Organization:

  • Groups by conversation
  • Timestamps each version
  • Links to source messages

Filename Customization

🎨 Template System:

  • 40+ variables available
  • Date/time formatting
  • Conversation metadata
  • Branch information
  • Project details

📋 Examples:

{date}_{title}_{uuid}.md
{timestamp}_chat_{branch}.md
{project}_{title}_{date}.zip

📞 Support & Feedback

Need Help?

🐛 Bug Reports:

  • Describe the export mode used
  • Note any error messages
  • Share your settings configuration
  • Check browser console for errors

💡 Feature Requests:

  • Suggest new export modes
  • Request additional template variables
  • Share your workflow needs
  • Describe desired features

⭐ Reviews:

  • Share your export workflow
  • Note which modes you use most
  • Help others optimize their exports
  • Suggest improvements

💡 Pro Tips

Maximize Your Exports

📦 Use ZIP Archives:
Enable for multi-artifact conversations to keep organized

🎨 Customize Filenames:
Use date/time variables for automatic chronological sorting

🌿 Track Branches:
Export all branches when exploring multiple responses

📝 Version History:
Use "All Artifacts" mode for complete change tracking

⚡ Batch Export:
Combine with Mass Exporter for project-wide exports

💾 Regular Backups:
Schedule periodic exports of important conversations


🎉 Thank You!

Thank you for using Claude API Exporter!

Export your Claude conversations professionally with complete control.

Happy exporting! 📦✨


Last Updated: November 2025
Version: 4.10.0
Compatible with: Tampermonkey on all major browsers
Works on: claude.ai (all pages)