LightHistory — AI skill for Claude Code
⚡ 本地优先的 AI 对话资产管理器 Local-first AI chat history manager — archive, search & export your Claude / Claude Code conversations.
How to install LightHistory
This entry records only its repository, not the path inside it, so there is no
exact command to give. Open yzfly/LightHistory and copy the folder into
~/.claude/skills/, or the file into ~/.claude/agents/.
What LightHistory does
⚡ 本地优先的 AI 对话资产管理器 | Local-first AI chat history manager — archive, search & export your Claude / Claude Code conversations. 账号是平台的,对话是你的。
Alternatives in AI
- Deepseek Pp — DeepSeek Web browser extension: AI agent workspace with MCP tools, memory, Skills, automation, web search, and 1.7k ★
- Registry Broker Skills — AI agent skills for the Universal Registry - search, chat, and register 72,000+ agents across 14+ protocols 410 ★
- Claude Chat Exporter — Claude Chat Exporter is a JavaScript tool that allows you to export your conversations with Claude AI into a w 407 ★
README
LightHistory
**本地优先的 AI 对话资产管理器 · Local-first AI Chat History Manager**
账号是平台的,对话是你的。
把 Claude、Claude Code(未来还有 ChatGPT、Codex)的对话记录收归本地——永久留存、全文检索、随时导出。
[](https://creativecommons.org/licenses/by-nc/4.0/) [](https://tauri.app) [](https://vuejs.org) [](https://www.rust-lang.org) [](#-快速开始) [](#-贡献)
[功能](#-功能特性) · [截图](#-界面预览) · [快速开始](#-快速开始) · [路线图](#-路线图) · [English](#english)
💡 为什么需要它
你和 AI 的每一次深度对话,都是思考的沉淀。但这些数据有三重风险:
- 封号即清零 — claude.ai 账号被封,网页对话无法再访问
- 平台会清理 — Claude Code 会定期删除本地会话正文,只留一行索引
- 数据在别处 — 服务关停、政策变更、区域限制,都不由你决定
LightHistory 把它们统统收进你自己电脑上的 SQLite——**数据不经过任何服务器,不离开这台机器**。
📸 界面预览
**会话库 · 全文检索 · 对话还原**
| 数据统计 | 多源导入 |
|---|---|
![]() |
![]() |
✨ 功能特性
| 功能 | 说明 | |
|---|---|---|
| 📦 | 导入 claude.ai 导出包 | 官方 Export data 的 zip 直接导入,无需解压 |
| ⌨️ | 导入 Claude Code 会话 | 一键扫描 ~/.claude/projects/,按项目归档 |
| 🚑 | 索引抢救 | 正文已被 Claude Code 清理的会话,自动从 sessions-index.json 抢回摘要与首条提问 |
| 🔍 | 中文全文检索 | SQLite FTS5 + CJK 分词,命中高亮、直接定位到具体消息 |
| 🔁 | 增量去重 | 重复导入自动跳过未变化的会话,只更新有变动的 |
| 👥 | 多账号管理 | 自动识别导出包中的账号信息,多账号数据一库收纳、按账号筛选 |
| 📄 | 多格式导出 | 单会话 Markdown |
Related Skills
Ctk
Conversation Toolkit - Unified CLI for managing AI conversations from ChatGPT, Claude, Gemini, and more. Impor
Telegram Business MCP
Give AI agents access to an authorized Telegram archive via the official Telegram Business API: search convers
Chathist
📜 A lightweight CLI tool to view and export your AI coding agent's chat history.
Chat History Importer
Import AI conversation exports (OpenAI ChatGPT and Anthropic Claude) into your agent's episodic memory. Parses
Aitracker
Open-source, local-first AI workspace that tracks tokens & spend across Claude Code, Codex, Cursor and more —
Agent Export
Archive and governance workbench for AI agent transcripts, archive shells, and evidence routing.
Related Agents
Chat Tracker
Read job-related conversations from WhatsApp Web and LinkedIn messaging by driving the user's logged-in Chrome
Search Conversations
Use when searching Claude Code and Codex history for information learned in past conversations or prior experi
Xcode Release Manager
Use this agent when you need to create a new release build of the iOS app. This includes building the app for

