Skip to main content

claude-conversation-export-html

将 Claude Code 的 .jsonl 会话导出为自包含 HTML。

命令名:claude-html-start

安装

pipx install claude-conversation-export-html
claude-html-start --help

快速开始

默认读取 ~/.claude/projects:

claude-html-start

非交互导出单个会话:

claude-html-start -i /path/to/session.jsonl --non-interactive -o session.html

非交互导出目录中指定会话:

claude-html-start -i ~/.claude/projects --non-interactive -s 1,3-5 -o export.html

导出全部会话:

claude-html-start -i ~/.claude/projects --non-interactive --all -o export.html

参数

  • -i, --input:输入文件或目录(默认 ~/.claude/projects)
  • -o, --output:输出 HTML 路径
  • -s, --select:会话编号选择,如 1,3-5
  • --all:导出全部会话
  • --title:HTML 标题
  • --non-interactive:关闭交互(目录输入需配合 --all 或 --select)

交互快捷键

  • ↑/↓ 或 j/k:移动
  • n / p:翻页
  • Enter / Space:勾选
  • /:筛选
  • a:勾选当前页
  • c:清空
  • e:导出
  • q:退出

发布(GitHub + PyPI)

仓库已包含:

  • pyproject.toml
  • .github/workflows/ci.yml
  • .github/workflows/publish.yml

发布步骤:

  1. 在 PyPI 创建项目 claude-conversation-export-html
  2. 在 GitHub Actions Secrets 设置 PYPI_API_TOKEN
  3. 更新 pyproject.toml 的 version
  4. 打 tag 并推送:
git tag v0.1.1
git push origin main
git push origin v0.1.1

Metadata

Release files for claude-conversation-export-html 0.1.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for claude-conversation-export-html 0.1.0
File Size Uploaded
claude_conversation_export_html-0.1.0.tar.gz 15.5 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for claude-conversation-export-html 0.1.0
File Interpreter ABI Platform
claude_conversation_export_html-0.1.0-py3-none-any.whl Python 3 none any Details

Total release size: 30.6 kB

Release files / claude_conversation_export_html-0.1.0.tar.gz

Download URL claude_conversation_export_html-0.1.0.tar.gz
Size 15.5 kB
Tags Source
SHA-256 checksum
How to use checksums
c9e3faafcb29e581b39726c0e1dfede90f9317c07765f5c86aba1b3a37ec998c
BLAKE2b-256 checksum
How to use checksums
2da96582bd2453ec29d6c83319c9e7fe63c929af206420b31a505ffabe23ffb2
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.1.0 CPython/3.13.7

Release files / claude_conversation_export_html-0.1.0-py3-none-any.whl

Download URL claude_conversation_export_html-0.1.0-py3-none-any.whl
Size 15.1 kB
Tags Python 3
SHA-256 checksum
How to use checksums
6b172158077d8f644453479cab49dd6c835335613313b57ddd78f5cc2aae6857
BLAKE2b-256 checksum
How to use checksums
8d17fd49cf7b9211ab81d6e4a343b79544daccb55dcc932fd440ac64e959bd1e
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.1.0 CPython/3.13.7

Release history Release notifications | RSS feed

This release

0.1.0 This release

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page