SuperAPI AI Directory

ChatCrystal

Local-first memory loop for AI coding conversations, with MCP search, task recall, writeback, and installable Agent Skills.

Open website

About this tool

ChatCrystal is a local-first AI PKM (personal knowledge management) application for developers who use tools such as Claude Code, Cursor, Codex CLI, Trae, and GitHub Copilot to solve real problems. Its goal is to organize conversations scattered across various AI programming tools into structured, searchable, reusable knowledge.

Purpose ChatCrystal is used to manage the knowledge produced by AI programming conversations. It imports conversations from local tool data directories, distills them into structured notes, and provides semantic search, a tag knowledge graph, Markdown export, and MCP memory for agents to reuse later.

Main capabilities

  • Import AI programming conversations from local tool data directories.
  • Distill conversations into structured notes containing titles, summaries, conclusions, code snippets, and tags.
  • Use embedding vectors for semantic search, with relation-aware result expansion.
  • Build a tag knowledge graph: knowledge points are tags, and edges represent normalized co-occurrence relationships.
  • Provide CLI and MCP tools so agents can recall and write back reusable experience.
  • Run locally, with both LLM and embedding providers configurable.

How to use Desktop application (recommended): download the latest Windows installer from GitHub Releases, install it, launch ChatCrystal, configure the LLM and embedding providers in settings, then click Import. After that, open in your browser http://localhost:3721。

An LLM provider is required for summary generation, and an embedding provider is required for semantic search. The LLM and embedding providers are configured separately; large language models such as Claude, GPT, and Qwen are not embedding models. ChatCrystal has built-in first-class support for OrcaRouter for LLM generation. OrcaRouter is OpenAI-compatible, its Base URL is built in, you only need to enter the API Key, and obtain and select an available model in settings.

Local development: the development server port is API/server http://localhost:3721,Vite client http://localhost:13721。架构、测试、构建和发布细节见 docs/DEVELOPMENT.md.

Docker cloud deployment: the default Compose deployment runs only the ChatCrystal service, with data stored in the chatcrystal-data volume mounted to /data inside the container. The default docker-compose.yml pulls ghcr.io/zengliangyi/chatcrystal:latest from the GitHub Container Registry; you can pin a released version by setting CHATCRYSTAL_IMAGE_TAG; if you need to build from source, run docker compose -f docker-compose.yml -f docker-compose.build.yml up -d --build. To update an existing Docker deployment, run docker compose pull && docker compose up -d. By default, Compose binds ChatCrystal to 0.0.0.0:3721 so that other devices can access the cloud core via the host IP; you can change the host port with CHATCRYSTAL_HOST_PORT, or set BIND_ADDRESS=127.0.0.1 when fronting it with a local reverse proxy. For public access, it is recommended to use an HTTPS reverse proxy to transmit tokens more securely. On Windows Docker Desktop, the published port may also require additional host network configuration to be accessible via the host LAN IP; when testing cloud mode, first verify http://<host-ip>:<host-port>/api/health on the client device. If it cannot connect, configure Windows port forwarding/firewall rules, or deploy the cloud core on a real remote host. On first startup, if CHATCRYSTAL_API_TOKEN is not set, open the Web UI and enter the setup code printed in the container logs or stored at /data/setup-code, then choose a shared API token for your device. To rotate or reset the Docker cloud token: if the deployment sets CHATCRYSTAL_API_TOKEN, that environment variable is the active token source; after modifying it in .env or the Compose environment, use docker compose up -d --force-recreate to recreate the container. To use an existing Ollama or external API, configure the provider URL in the Web UI or via environment variables; in Docker, localhost refers to the inside of the container, and you can use CHATCRYSTAL_DOCKER_LLM_BASE_URL and CHATCRYSTAL_DOCKER_EMBEDDING_BASE_URL to override the provider URL at Compose time. Docker Desktop can be accessed via http://host.docker.internal:11434 to access the host's Ollama, or you can use a remote HTTPS/OpenAI-compatible API.

Importing from a device to a cloud instance: install or run the CLI on a device that has Claude Code, Cursor, Codex CLI, Trae, or GitHub Copilot history. The CLI scans local history, parses it locally, and uploads the normalized conversations to the cloud; the cloud does not scan your local filesystem. Imported conversations are not automatically summarized; when ready, you can use the Web UI or crystal summarize --all. HTTPS is recommended for cloud access, but it also works when you choose an HTTP deployment.

Use cases Suitable for developers who want to turn AI coding conversations into a private, local-first knowledge base; suitable for teams or individuals who need to manage AI working memory across devices (self-hosted via Docker); suitable for scenarios where you want agents to recall and write back reusable experience via MCP.

Limitations The materials do not provide specific information on pricing, cost, supported platform scope, or performance metrics. LLM and embedding providers must be configured by the user; imported conversations are not automatically summarized and must be triggered manually. Docker cloud deployment on Windows Docker Desktop may require additional network configuration.