Quick Start
Step 1: Install ChatLab
ChatLab offers two ways to install:
Option 1: Download from the website
Go to the ChatLab website to download the installer for your operating system, then run it. You can also download from GitHub Releases.
Option 2: CLI
npm i chatlab-cli -gRequires Node.js ≥ 20. The CLI is suited for server-side deployments or pairing with an AI Agent (e.g., Claude Desktop).
After installation, start ChatLab with:
chatlab start # Start API + Web UI and open in browser
chatlab start --no-open # Start API + Web UI without auto-opening the browser
chatlab start --headless # API-only mode, no Web UI (for scripts / AI Agents)Common options: --port <port> (default 3110), --host <address>, --token <token>.
To keep ChatLab running persistently (auto-start on login + crash recovery), add the --daemon flag:
chatlab start --daemon # Install as a system service (macOS / Linux)
chatlab status # Check service status
chatlab stop # Stop and remove the serviceStep 2: Import chat records
ChatLab provides three import methods for different scenarios:
| Method | Use case |
|---|---|
| File import | Drag exported chat record files directly into the ChatLab homepage — ideal for one-time imports |
| Auto sync | Configure external platform data sources for periodic automatic sync to ChatLab |
| API push | Enable the local API service to let third-party tools/plugins/scripts push chat records to ChatLab |
Regular users
Use file import — you need to:
- Export your chat records using a third-party tool. See Export Chat Records for details.
- Drag the exported files into the ChatLab homepage. If you run into issues, see Import Chat Records Guide.
Developers
If you're a developer looking to integrate auto sync or API push, see:
- ChatLab Format — understand the data format specification
Step 3: Configure AI
ChatLab has a built-in AI Agent feature. Connect an AI model to explore your chat history using natural language.
See How to Configure AI for detailed setup steps.