ChatLab — Chat History Analyzer

Local-first AI chat history analysis tool that puts your conversations back in your hands.

Source repo
ChatLab/ChatLab
Stars
★ 7.7k
Last updated
3d ago v0.37.9
FARS reviewed
Nov 08, 2026 +2 new
License
AGPL-3.0
Primary language
TypeScript

At a glance

How it runs
Desktop appCLI
Works with
Universal · cross-platform
Cost
Free software; you pay for model usage
Setup effort
Low · running in minutes
You'll need
Node.js >= 20Shell / CLILocal filesystem
Typical use
A social media researcher analyzing millions of WhatsApp or Telegram messages to identify interaction patterns and trends.
Not a fit if
  • Users who need Messenger or KakaoTalk analysis, which are not yet supported
  • Teams planning closed-source commercial use or unable to accept AGPL-3.0 copyleft terms
Website
chatlab.fun ↗ set on GitHub
Maintenance
Commits in the last 30 dayslast commit 2026-11-30latest release v0.37.9 (2026-11-30)+4.1 ★/day over 7 days
Source review
70/100 · Some gaps

What does this agent do, and when should you use it?

ChatLab is an open-source desktop app for understanding your social conversations. It combines a flexible SQL engine with AI agents to explore patterns, ask better questions, and extract insights from chat data, all on your own machine. It supports WhatsApp, LINE, QQ, Discord, Instagram, Telegram, iMessage, and Google Chat, with Messenger and KakaoTalk on the roadmap. Data stays local by default, and no raw conversations are uploaded to the cloud. Its AI features use an Agent + Function Calling workflow with 24+ tools for search, summarization, and analysis. The app provides insight-rich visual views for trends, time patterns, interaction frequency, rankings, and more. It normalizes different export formats into a unified model for consistent analysis. Both a desktop app and a CLI are available.

ChatLab provides both a desktop app (Electron-based) and a CLI. The CLI command chatlab start launches the API and Web UI, with options like --no-open and --headless for scripting. It reads chat export files from supported platforms, performs format detection, stream parsing, local persistence, then SQL and AI query stages, and finally visualizes results using the Web UI. The core operation involves a flexible SQL engine for custom queries and an AI agent system with 24+ tools that can search, summarize, and analyze chat records with context. It supports cross-platform normalization by mapping different export formats into a unified model. The CLI can run as a persistent background service using chatlab start --daemon, with chatlab status and chatlab stop for management. The data flow is: format detection → stream parsing → local persistence → SQL + AI query → visualization.

  1. A social media researcher analyzing millions of WhatsApp or Telegram messages to identify interaction patterns and trends.
  2. An individual seeking to understand their own chat history, such as frequency of interactions and active hours with friends.
  3. A customer support team extracting common issues and feedback from Discord or Instagram chat logs.
  4. A data analyst who wants to run custom SQL queries on their chat data and combine them with AI-powered summaries.
  5. A privacy-conscious user analyzing chat records locally without uploading data to the cloud.

Key setup facts

Pulled from the install and usage notes below. The project README has the current values.

Install / run
  • npm i chatlab-cli -g
Runtime
Node.js 20+
Install notes cover
macOS · Linux

How do you install or deploy this agent?

Desktop app: download the installer for your OS from the official website (https://chatlab.fun/) or GitHub Releases, then double-click to install. CLI: ensure Node.js >= 20, then run npm i chatlab-cli -g. For development, use Node.js >= 24 < 25 and pnpm >= 9 < 10, then pnpm install and pnpm dev.

How do you use this agent?

CLI usage: run chatlab start to start the API + Web UI and auto-open in the browser; use chatlab start --no-open to skip auto-open; use chatlab start --headless for API only. Common options: --port <port> (default 3110), --host <address>, --token <token>. To run as a persistent background service (auto-start on login + auto-restart on crash), use chatlab start --daemon (macOS/Linux), then chatlab status and chatlab stop. The desktop app allows importing chat export files directly and following the guided setup.

Safety boundaries, hardening & integrations

Operational blast radius, source-verified safety controls, and first-run hardening steps before connecting this agent to real workspaces.

Declared capability surface (blast radius)

Local shell command execution

Can run terminal commands; pair with approval gates or container/OS sandboxing.

Local filesystem read/write

Modifies local files; work on a clean Git branch or dedicated worktree.

FARS trust-control audit

Verified present in source (3/3)
  • sensitive-data handling

What are this agent's strengths and limitations?

Pros
  • Local-first design keeps chat data on-device by default, enhancing privacy.
  • Supports a wide range of chat platforms with unified data normalization.
  • Combines a flexible SQL engine with AI tools for powerful, flexible analysis.
  • Stream parsing and multi-worker processing handle million-message scales smoothly.
Limitations
  • AGPL-3.0 license may not suit certain commercial use cases.
  • CLI requires Node.js 20+, and development requires Node.js 24 and pnpm 9, which can be a high setup bar.
  • AI features depend on external model providers, potentially incurring API costs.
  • Messenger and KakaoTalk are not yet supported, limiting coverage.

How does this agent compare with similar options?

Key facts side by side with the most closely related agents.

Agent Source review Form / cost Stars Updated Language Full support on
ChatLab — Chat History Analyzer This agent 70 · Some gaps Desktop appFree + model costs ★ 7.7k 3d ago TypeScript —
Bough Work and Cost Explorer 78 · Good CLIFree ★ 133 14d ago Go Codex · Claude Code
WeLink 71 · Some gaps Self-hosted serviceFree + model costs ★ 336 17d ago TypeScript Codex · Claude Code · OpenAI API · Claude API
Business Analytics Agent 61 · Some gaps Desktop appFree + model costs ★ 2.6k 5d ago JavaScript OpenAI API

How does FollowAgents rate this agent?

FollowAgents source review · FARS-2.1
Some gaps
70/ 100 5-point scale 3.5 / 5
This review covers the source as of Nov 08, 2026. The project has shipped 2 stable release(s) since, which have not been re-reviewed. The score and verdict describe the reviewed version only. Recent releases ↓
Trust 18/29
Reliability 9/14
Adaptability 15/18
Convention 12/18
Effectiveness 10/13
Verifiability 6/8
Why each dimension lost points
Trust18 / 29 · 3.1/5

The analysis skill limits work to read-only queries over imported data, and the import workflow requires a dry run. The skills also prohibit exposing message bodies; the conversion workflow keeps source files read-only, processes data locally, and masks diagnostic samples, supporting a strong sensitive-data score. CLI service startup and import can have effects, and a clear user request permits automatic continuation after preview. Preview and some recovery safeguards exist, but the packet does not establish a complete permission model, general data-flow details, or comprehensive rollback. Dependency-security evidence is thin. Repository and package author details are present, but publisher identity is unverified and maintenance responsibility is unclear.

Reliability9 / 14 · 3.2/5

The skills provide ordered procedures, pagination guidance, and handling for several errors; import and conversion workflows say to stop or report when results are unsafe or ambiguous. The README states large-scale processing support and gives runtime requirements, but the packet does not provide enough static evidence to substantiate performance or availability claims. The supplied skill workflows are broadly consistent; the conversion skill excerpt is truncated, so its full contents cannot be assessed.

Adaptability15 / 18 · 4.2/5

The skills distinguish analysis of imported records, supported-format imports, and conversion of unsupported exports, and cover practical scenarios including language, time ranges, and evidence references. They set boundaries around read-only querying, user-requested imports, and not guessing consequential mappings. Descriptions are specific, though choosing among skills still depends on the caller. CLI and Node requirements are documented; platform-specific fit is only partly shown in this packet.

Convention12 / 18 · 3.3/5

The README organizes product, installation, usage, architecture, and license information. Skills use names, descriptions, steps, and guardrails, with stable CLI terminology. Installation examples are concrete and some errors and conversion limits are covered. AGPL-3.0 appears in metadata, the README, and the license text. A package version is present, but the packet does not show changelog contents or a clear maintenance commitment; links to documentation cannot establish details not included here.

Effectiveness10 / 13 · 3.8/5

The analysis skill starts with dedicated commands, adds context or statistics only when needed, and asks for message-ID citations and separation of observation from interpretation. Import and conversion workflows produce reviewable previews or validation outcomes. The product claims practical value from local analysis of multi-platform chats using SQL and AI tools, but costs, model charges, and benefits at different scales are not quantified, so those scores remain conservative.

Verifiability6 / 8 · 3.8/5

README claims receive limited corroboration from package metadata, skill commands, and some test source. Skills ask the agent to state query scope, cite message IDs, disclose incomplete pagination, and separate observed facts from interpretation, supporting a strong fact-versus-inference score. Several performance, privacy-default, and product-effect claims remain asserted mainly by the README or skills and cannot be independently established from the supplied static material.

Risks and how to mitigate them
  • Chat histories are highly sensitive. Confirm that the data location and AI provider configuration meet your privacy needs; the packet describes local-first and redaction practices but does not establish every runtime data flow.
  • Imports write data. Review the target session and change summary after the required preview, and do not assume every environment has a recoverable backup merely because the import was explicitly requested.
  • Publisher identity is not verified by the curated enterprise registry. This review treats it as unknown, not suspicious, and does not infer safety or maintenance quality from it.
Evidence confidence: Low Reviewed Nov 08, 2026 Reviewed revision c258a139d323 New commits since this review; the score may not cover them
See the full review method →
Maintain this project? Add the FARS badge to your README

The badge shows the current review score and verdict and links back to this page. It refreshes about once an hour after a re-review.

FARS

[![FARS review](https://followagents.com/badge/chatlab.svg)](https://followagents.com/en/agents/chatlab)
<a href="https://followagents.com/en/agents/chatlab"><img src="https://followagents.com/badge/chatlab.svg" alt="FARS review"></a>

Recent releases

Latest entries from the project's GitHub Releases. Notes are quoted from upstream as written, not rewritten or tested by FollowAgents.

  1. v0.37.9 ChatLab v0.37.9
    Release notes excerpt
    What's New Fix WhatsApp imports and sender attribution, and improve the security of AI content rendering and CLI Web access. 更新内容 修复 WhatsApp 导入与消息归属问题,加强 AI 内容展示和 CLI Web 访问安全。 --- Full Changelog: [English](https://github.com/ChatLab/ChatLab/blob/main/changelogs/en.md) | [中文](https://github.com/ChatLab/ChatLab/blob/main/changelogs/cn.md) | [日本語](https://github.com/ChatLab/ChatLab/blob/main/changelogs/ja.md) --- Download | Platform | File | |-----------------|-------------| …
    View on GitHub ↗
  2. v0.37.8 ChatLab v0.37.8
    Release notes excerpt
    What's New Fix WhatsApp date parsing and improve sync progress protection and error reporting when remote data pulls fail. 更新内容 修复 WhatsApp 日期解析问题,完善远程数据源拉取失败后的进度保护与错误提示。 --- Full Changelog: [English](https://github.com/ChatLab/ChatLab/blob/main/changelogs/en.md) | [中文](https://github.com/ChatLab/ChatLab/blob/main/changelogs/cn.md) | [日本語](https://github.com/ChatLab/ChatLab/blob/main/changelogs/ja.md) --- Download | Platform | File | |-----------------|-------------| …
    View on GitHub ↗
  3. v0.37.6 ChatLab v0.37.6
    Release notes excerpt
    What's New Improve guidance for unrecognized import formats, allow Memory as the default session page, and fix MCP array parameter types. 更新内容 完善导入格式失败引导,支持将记忆设为会话默认页面,并修复 MCP 数组参数类型问题。 --- Full Changelog: [English](https://github.com/ChatLab/ChatLab/blob/main/changelogs/en.md) | [中文](https://github.com/ChatLab/ChatLab/blob/main/changelogs/cn.md) | [日本語](https://github.com/ChatLab/ChatLab/blob/main/changelogs/ja.md) --- Download | Platform | File | |-----------------|-------------| …
    View on GitHub ↗

FAQ

Is ChatLab free to use?
Yes, it's open-source under AGPL-3.0, so it's free to use. However, AI features may rely on external models, and using AI could incur third-party API charges.
Is my chat data secure?
By default, ChatLab is local-first; raw chat data, indexes, and settings remain on-device unless you explicitly choose otherwise. However, when using AI features, the data you send to the model leaves your machine.
Which chat platforms are supported?
Currently WhatsApp, LINE, QQ, Discord, Instagram, Telegram, iMessage, and Google Chat are supported. Messenger and KakaoTalk are planned. You need to export chat logs from each platform.
Can ChatLab run on Linux?
Yes, the desktop app supports macOS, Windows, and Linux. The CLI supports background service mode on macOS/Linux. Some systems may require additional setup.
How does it handle very large chat histories?
ChatLab uses stream parsing and multi-worker processing to handle imports and analysis responsively, even at million-message scale, keeping memory usage efficient.
Was this page helpful?
View on GitHub ↗ Install ↓

Related concepts