claude-conversation-extractor

by ZeroSumQuantVerified

Extract clean conversation logs from Claude Code's internal storage

662
Stars
88
Forks
Python
Language
8/23/2026
Added
View on GitHubDownload ZIP

⚠️ Third-Party Software Notice

This skill is third-party open-source software developed and hosted independently on GitHub. SkillTip is an informational directory and does not control or maintain the underlying repository. Any security checks displayed are automated and limited in scope. Review the source code before installing.

Read the Terms of Service

Installation

Add to your Claude Code skills directory:

# Add to your Claude Code skills
git clone https://github.com/ZeroSumQuant/claude-conversation-extractor

Getting Started

Guides for using skills like claude-conversation-extractor.

Security Report

Verified

Last scanned: —

{
  "status": "PASSED",
  "issues": []
}

README.md

Claude Conversation Extractor - Export Claude Code Conversations to Markdown | Save Chat History

🚀 The ONLY tool to export Claude Code conversations. Extract Claude chat history from ~/.claude/projects, search through logs, and backup your AI programming sessions.

🎮 Two Ways to Use

  • claude-start - Interactive UI with ASCII art logo, real-time search, and menu-driven interface (recommended)

  • claude-extract - Plain CLI for command-line operations and scripting

Python 3.8+ License: MIT PyPI version Downloads GitHub stars Export Claude Code Claude Code Logs

Export Claude Code conversations with the #1 extraction tool. Claude Code stores chats in ~/.claude/projects as JSONL files with no export button - this tool solves that.

🔥 What users search for: Export Claude conversations | Claude Code logs location | Backup Claude sessions | Claude JSONL to Markdown

📸 How to Export Claude Code Conversations - Demo

Export Claude Code conversations demo - Claude Conversation Extractor in action

🎯 Can't Export Claude Code Conversations? We Solved It.

Claude Code has no export button. Your conversations are trapped in ~/.claude/projects/ as undocumented JSONL files. You need:

  • Export Claude Code conversations before they're deleted

  • Search Claude Code chat history to find that solution from last week

  • Backup Claude Code logs for documentation or sharing

  • Convert Claude JSONL to Markdown for readable archives

✅ Claude Conversation Extractor: The First Export Tool for Claude Code

This is the ONLY tool that exports Claude Code conversations:

  • Finds Claude Code logs automatically in ~/.claude/projects

  • Extracts Claude conversations to clean Markdown files

  • Searches Claude chat history with real-time results

  • Backs up all Claude sessions with one command

  • Works on Windows, macOS, Linux - wherever Claude Code runs

✨ Features for Claude Code Users

  • 🔍 Real-Time Search: Search Claude conversations as you type - no flags needed

  • 📝 Claude JSONL to Markdown: Clean export without terminal artifacts

  • ⚡ Find Any Chat: Search by content, date, or conversation name

  • 📦 Bulk Export: Extract all Claude Code conversations at once

  • 🎯 Zero Config: Just run claude-extract - we find everything automatically

  • 🚀 No Dependencies: Pure Python - no external packages required

  • 🖥️ Cross-Platform: Export Claude Code logs on any OS

  • 📊 97% Test Coverage: Reliable extraction you can trust

📦 Install Claude Conversation Extractor

Quick Install (Recommended)

# Using pipx (solves Python environment issues)
pipx install claude-conversation-extractor

# OR using pip
pip install claude-conversation-extractor

Platform-Specific Setup

# Install pipx first
brew install pipx
pipx ensurepath

# Then install the extractor
pipx install claude-conversation-extractor
# Install pipx
py -m pip install --user pipx
py -m pipx ensurepath
# Restart terminal, then:

# Install the extractor
pipx install claude-conversation-extractor
# Ubuntu/Debian
sudo apt install pipx
pipx ensurepath

# Install the extractor
pipx install claude-conversation-extractor

🚀 How to Export Claude Code Conversations

Quick Start - Export Claude Conversations

# Run the interactive UI with ASCII art logo and real-time search
claude-start

# Run the standard CLI interface
claude-extract

# Search for specific content directly
claude-search "API integration"

# Note: claude-logs also works for backward compatibility

That's it! The tool will:

  • Find your Claude Code conversations in ~/.claude/projects

  • Show an interactive menu to search or export

  • Convert Claude JSONL files to readable Markdown, JSON, or HTML

Export Claude Code Logs - All Methods

# Interactive mode with UI - easiest way to export Claude conversations
claude-start

# CLI mode - command-line interface
claude-extract

# List all Claude Code conversations
claude-extract --list

# Export specific Claude chats by number
claude-extract --extract 1,3,5

# Export recent Claude Code sessions
claude-extract --recent 5

# Backup all Claude conversations at once
claude-extract --all

# Save Claude logs to custom location
claude-extract --output ~/my-claude-backups

📄 Export Formats - NEW in v1.1.1!

Export conversations in multiple formats:

# Export as JSON for programmatic processing
claude-extract --format json --extract 1

# Export as HTML with beautiful formatting
claude-extract --format html --all

# Include tool use, MCP responses, and system messages
claude-extract --detailed --extract 1

# Combine options for complete exports
claude-extract --format html --detailed --recent 5

Supported Formats:

  • Markdown (default) - Clean, readable text format

  • JSON - Structured data for analysis and processing

  • HTML - Beautiful web-viewable format with syntax highlighting

Detailed Mode (--detailed): Includes complete conversation transcript with:

  • Tool use invocations and parameters

  • MCP server responses

  • System messages and errors

  • Terminal command outputs

  • All metadata from the conversation

🔍 Search Claude Code Chat History

Search across all your Claude conversations:

# Method 1: Direct search command
claude-search                    # Prompts for search term
claude-search "zig build"        # Search for specific term
claude-search "error handling"   # Multi-word search

# Method 2: From interactive menu
claude-extract
# Select "Search conversations" for real-time search

Search features:

  • Fast full-text search across all conversations

  • Case-insensitive by default

  • Finds exact matches, partial matches, and patterns

  • Shows match previews and conversation context

  • Option to extract matching sessions directly

📁 Where Are Claude Code Logs Stored?

Claude Code Default Locations:

  • macOS/Linux: ~/.claude/projects/*/chat_*.jsonl

  • Windows: %USERPROFILE%\.claude\projects\*\chat_*.jsonl

  • Format: Undocumented JSONL with base64 encoded content

Exported Claude Conversation Locations:

~/Desktop/Claude logs/claude-conversation-2025-06-09-abc123.md
├── Metadata (session ID, timestamp)
├── User messages with 👤 prefix
├── Claude responses with 🤖 prefix
└── Clean Markdown formatting

Frequently Asked Questions

What is claude-conversation-extractor?

claude-conversation-extractor is an open-source cli tools skill for AI coding assistants such as Claude Code, Codex CLI, and ChatGPT, built by ZeroSumQuant. Extract clean conversation logs from Claude Code's internal storage. It has 662 GitHub stars.

Is claude-conversation-extractor safe to use?

Yes. claude-conversation-extractor passed SkillsLLM's automated security scan — a dependency vulnerability audit plus prompt-injection heuristics — with no high-severity issues. You can read the full report in the Security Report section on this page.

How do I install claude-conversation-extractor?

Clone the repository with "git clone https://github.com/ZeroSumQuant/claude-conversation-extractor" and add it to your Claude Code skills directory (see the Installation section above).

What programming language is claude-conversation-extractor written in?

claude-conversation-extractor is primarily written in Python. It is open-source under ZeroSumQuant on GitHub, so you can review or fork the full source.

Are there alternatives to claude-conversation-extractor?

Yes. SkillsLLM lists many other CLI Tools skills you can browse and compare side by side. Open the CLI Tools category from the badge at the top of this page, or use the Related Skills and comparison links further down to weigh claude-conversation-extractor against similar tools.

Comments (0)

No comments yet. Be the first to share your thoughts!

ui-ux-pro-max-skill

by nextlevelbuilder

12

An AI skill that provides design intelligence for building professional UI/UX across multiple platforms.

119,92012,870Python
CLI Toolsai-skillsantigravity
View details

happy

by slopus

Mobile and Web client for Codex and Claude Code, with realtime voice, encryption and fully featured

23,4501,980TypeScript
CLI Tools
View details

claudecodeui

by siteboon

Use Claude Code, OpenCode, Cursor CLI, and Codex on mobile and web with CloudCLI (aka Claude Code UI). CloudCLI is a free open source webui/GUI that helps you manage your Claude Code session and projects remotely.

13,3941,866TypeScript
CLI Tools
View details

CRS-自建Claude Code镜像,一站式开源中转服务,让 Claude、OpenAI、Gemini、Droid 订阅统一接入,支持拼车共享,更高效分摊成本,原生工具无缝使用。

12,5471,869JavaScript
CLI Tools
View details

ccstatusline

by sirmalloc

🚀 Beautiful highly customizable statusline for Claude Code CLI with powerline support, themes, and more.

12,508545TypeScript
CLI Tools
View details

Developers Also Liked

Based on votes and bookmarks from developers who liked this skill

ECC

by affaan-m

10

The agent harness performance optimization system. Skills, instincts, memory, security, and research-first development for Claude Code, Codex, Opencode, Cursor and beyond.

242,21936,702JavaScript
AI Agentsai-agentsanthropicclaude-code
View details
15

An agentic skills framework & software development methodology that works.

234,96620,863Shell
AI Agentsai-agentsbrainstorming
View details

n8n

by n8n-io

12

Fair-code workflow automation platform with native AI capabilities. Combine visual building with custom code, self-host or cloud, 400+ integrations.

201,88160,308TypeScript
MCP Serversapisai-tools
View details

The agent harness performance optimization system. Skills, instincts, memory, security, and research-first development for Claude Code, Codex, Opencode, Cursor and beyond.

185,94028,768JavaScript
AI Agentsai-agentsanthropicclaude-code
View details

cc-switch

by farion1231

3

A cross-platform desktop All-in-One assistant for Claude Code, Codex, OpenCode, OpenClaw, Grok Build & Hermes Agent. Only official website: ccswitch.io

128,8688,826Rust
AI Agentsclaude-codeai-tools
View details