WeLink
Turn your decrypted WeChat history into a local, askable analytics platform with AI personas, portraits and exportable skills.
- Source repo
- runzhliu/welink
- Stars
- ★ 329
- Last updated
- 9d ago
- FARS reviewed
- Nov 26, 2026
- License
- AGPL-3.0
- Primary language
- TypeScript
- FA score
- 71/100 · Some gaps
At a glance
- How it runs
- Works with
- Universal · cross-platformCodex · Claude Code · OpenAI API · Claude API
- Cost
- Free software; you pay for model usage
- Setup effort
- Medium · a few setup steps
- You'll need
- Typical use
- A person asking 'how did this relationship peak and what changed afterwards', using per-contact AI analysis, relationship reports and sentiment curves.
- Not a fit if
- Users who expect a turnkey tool and won't handle WeChat database decryption themselves
- Privacy-sensitive users who can't allow chat snippets to reach a cloud LLM provider
- Linux desktop users who don't want to run Docker
- Website
- welink.click ↗ set on GitHub
- Maintenance
- Commits in the last 30 dayslast commit 2026-11-16
- Source review
- 71/100 · Some gaps
What does this agent do, and when should you use it?
WeLink is a local-first analytics platform for WeChat chat history. Its backend is a single Go + Gin binary; the frontend is React 18 + TypeScript + Tailwind; SQLite (modernc, pure Go, no CGO) holds both the decrypted WeChat databases and a separate ai_analysis.db. Before anything works you must sync your phone history to a computer and decrypt it into a decrypted/ directory containing contact/contact.db and message/message_N.db. WeLink ships as a Docker Compose stack (frontend on port 3418) or as macOS / Windows desktop apps, and bundles adapters for 25+ LLM providers, an FTS5 + pure-Go vector hybrid RAG pipeline, memory distillation, AI image generation, an export hub and a SQL workbench. Beyond the web UI it provides a standalone mcp-server binary so MCP clients such as Claude Code can query your chats in natural language, plus a Skill workflow that distils conversations into files for Claude Code, Codex, Cursor and friends. Data stays on your machine unless you explicitly trigger a cloud AI call or a remote training run.
WeLink reads the decrypted WeChat SQLite databases, builds an FTS5 full-text index and a pure-Go cosine-similarity vector index, then runs a statistics service that produces message rankings, sentiment trends, word clouds, 24-hour activity distributions, calendar heatmaps, reply-latency breakdowns, red-packet/transfer totals and group small-community detection (Louvain with a modularity-Q fallback). The AI layer offers three retrieval modes — full-context analysis, hybrid FTS5 + vector retrieval, and a single-day 'time machine' aggregation — and streams conversations through any of 25+ providers (DeepSeek, Doubao, Kimi, OpenAI, Claude, Gemini, Vertex AI, AWS Bedrock, Ollama, OpenRouter and more). The AI Clone feature extracts a contact's own text messages from private chats and shared groups (filtered by sender_id) to learn their phrasing, caches it as a session for multi-turn chat, and is complemented by a cross-contact Q&A loop that parses intent, calls search/calendar APIs, then answers from retrieved snippets. Rounding it out are an SFT workbench (JSONL export, Mac MLX or NVIDIA LLaMA-Factory worker training, blind A/B evaluation), Skill distillation into seven output formats (claude-skill, claude-agent, codex, opencode, cursor, generic, lora-jsonl), relationship trend prediction, 21 'labs' mini-tools, the MCP server, an export hub targeting Markdown / Notion / Feishu / WebDAV / S3 / Dropbox / Google Drive / OneDrive, and a natural-language-to-SQL database console.
- A person asking 'how did this relationship peak and what changed afterwards', using per-contact AI analysis, relationship reports and sentiment curves.
- A group owner who wants to know who actually drives a chat, using group portraits, Louvain small-community detection and the group influence index.
- A developer who wants their own or a contact's writing style packaged as a Claude Code / Codex / Cursor skill, distilled with one Sparkles click into a downloadable zip.
- An MCP user asking Claude Code 'what were the action items in yesterday's group chat', via the standalone mcp-server or the WeLink DSH plugin.
- A tinkerer who wants a personal-style model and walks the SFT workbench to curate samples and attach a Mac MLX or NVIDIA GPU worker.
- Someone archiving annual recaps or chat logs to Notion, Feishu or S3 through the eight export targets.
Key setup facts
Pulled from the install and usage notes below. The project README has the current values.
- Install / run
docker compose up
- Ports
3418- Config files
docker-compose.demo.ymldocker-compose.ymlpreferences.json- Install notes cover
- Windows · macOS · Docker
How do you install or deploy this agent?
First sync and decrypt your WeChat databases: WeChat → Settings → General → Chat History Migration, copy the history to a computer, then decrypt with a tool compatible with your OS and WeChat version to produce a decrypted/ directory containing contact/contact.db and message/message_N.db. The README states the original ylytdeng/wechat-decrypt repository is no longer available and points to the community project WeinanHu/wechat-decrypt as a reference, noting its output compatibility with WeLink has not been verified.
Docker mode — place decrypted/ inside the repository root, then:
cd welink
docker compose upOpen http://localhost:3418. To try the synthetic demo data instead:
docker compose -f docker-compose.demo.yml upDesktop apps — download from GitHub Releases. macOS requires 12 (Monterey) or newer; Windows requires 10 1903 or newer and may need the WebView2 Evergreen Bootstrapper. If macOS refuses to open the app:
xattr -cr /Applications/WeLink.appHow do you use this agent?
After launching, open Settings and fill in the provider, Base URL, API key and model name — for example DeepSeek defaults to deepseek-v4-pro, Claude to claude-opus-5-5, Gemini to gemini-3.8-flash; a local Ollama endpoint keeps everything offline. For the first index run, start with 'last 6 months'. Use ⌘K / Ctrl+K to search contacts and AI conversations, ⌘1..⌘9 to switch main tabs, and the AI home page for contact analysis, cross-contact Q&A or the 'reply in my voice' assistant.
To change the Docker port, edit docker-compose.yml:
ports:
- "5000:80"In App mode, edit the port in Settings or in preferences.json:
{ "port": "9090" }For MCP clients such as Claude Code, run the standalone mcp-server binary; configuration is documented in mcp-server/README.md. DeepSeek Harness users can install the WeLink DSH plugin described in plugins/dsh-welink/README.md — it authorises no sessions and exposes no raw chat text by default. Swagger API docs are served at http://localhost:3418/swagger/ once the app is running.
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)
Can run terminal commands; pair with approval gates or container/OS sandboxing.
Modifies local files; work on a clean Git branch or dedicated worktree.
Makes outbound requests; verify telemetry settings and model data routing on private repos.
Inherits capabilities of connected MCP servers; audit third-party servers before enabling.
FARS trust-control audit
- data-flow disclosure
What are this agent's strengths and limitations?
- Local-first by design: databases are decrypted, indexed and queried on your machine; snippets leave only when you explicitly fire an AI request.
- Broad deployment coverage from a single Go binary with embedded frontend — Docker Compose, macOS App and Windows App — with a Docker image under 50MB and zero CGO.
- Very wide model choice: native adapters for 25+ providers including Vertex AI, AWS Bedrock, Ollama and any OpenAI-compatible endpoint, with separate model selection for chat vs. memory distillation.
- Analysis depth far beyond dashboards: AI Clone, cross-contact Q&A, relationship trend prediction, Louvain group detection and 21 lab mini-tools span statistics to narrative.
- Reusable by other AI tools: a standalone
mcp-server, a DSH plugin, and seven Skill output formats wire your chat data into Claude Code, Codex and Cursor. - Concrete privacy controls: pre-send disclosure of data range and row counts, automatic masking of phone/email/ID/card/wxid before distillation, lock-screen PIN and contact blocking.
- The hardest step lives outside WeLink: you must find a decryption tool matching your OS and WeChat version, and the README says the original repo is gone while the replacement's output compatibility is unverified.
- Cloud models still cost money per call: the software is free but you supply DeepSeek/Claude/Gemini keys, and AI image generation runs roughly ¥0.05–0.2 per image.
- Desktop apps cover only macOS 12+ and Windows 10 1903+; Linux users are limited to Docker or building from source.
- Heavy histories need real hardware: 2M+ messages are recommended 8GB+ RAM and 3–10 minutes for the first index.
- The SFT workbench assumes Apple Silicon or a Linux/NVIDIA GPU worker plus extra setup, and the README itself notes SFT learns phrasing, not memorised facts.
- Rapidly evolving (v0.4.0) with migration friction: legacy lora-jsonl jobs and the new SFT workbench are stored separately and do not auto-migrate.
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 |
|---|---|---|---|---|---|---|
| WeLink This agent | 71 · Some gaps | Self-hosted serviceFree + model costs | ★ 329 | 9d ago | TypeScript | Codex · Claude Code · OpenAI API · Claude API |
| Nocturne Memory: Long-Term Memory Server for MCP Agents | 63 · Some gaps | MCP serverFree | ★ 1.4k | 22d ago | Python | — |
| WhoDB | 54 · Major gaps | Self-hosted serviceFreemium | ★ 5.1k | today | Go | — |
| Tabularis: Open-Source Desktop SQL Workspace | 73 · Some gaps | Desktop appFree + model costs | ★ 5.5k | 1d ago | TypeScript | ChatGPT · Codex · Claude Code · Claude.ai |
How does FollowAgents rate this agent?
Why each dimension lost points
least_privilege: backend binds 127.0.0.1 by default, LAN requires explicit WELINK_LISTEN_LAN=1, worker root is created 0700 and artifact downloads are SHA-256 verified — reasonable least privilege; but FAQ/SECURITY openly state there is no built-in auth, so enabling LAN exposes chat data and API-key management to the whole network, hence the deduction. user_confirmation: AI analysis shows data scope, message count and target model before sending, dual-model comparison requires confirmation, exports/shares are explicit actions; however scheduled tasks, memory extraction and Skill distillation call LLMs automatically per configuration without per-run confirmation, so 2. data_flow_transparency: README and FAQ describe per-feature what is sent (sampled snippets, ≤10k tokens, ≤50k chars, redacted fields), the cloud/remote-trainer/export destinations, and the fully offline Ollama option — the strongest area, 3. sensitive_data_handling: phone/email/ID/card/wxid redaction, __HAS_KEY__ placeholders and [REDACTED] logging, bcrypt PIN, lock screen and screen-record mode; but docs admit redaction covers only some common fields, the lock is visual only and the local DB is unencrypted, so 2. dependency_security: only commitlint/DCO workflows and a docker-publish badge are visible; no lockfiles, SCA/audit or vulnerability-handling record, while SECURITY.md lists supply chain as an attack surface without mitigation — thin evidence, 1. external_effects: exports to Notion/Feishu/S3/Dropbox/GDrive/OneDrive, OAuth grants and MCP/DSH queries are real external side effects; documented with OAuth callback registration requirements, but no uniform confirmation or impact preview, 2. rollback: VACUUM INTO AI-data snapshots, SFT rollback to default model, per-chapter rollback in the visual novel, 30-day soft-delete GC for images, and downloads refuse to overwrite existing files; no undo for exports/external writes, 2. source_attribution: README cites the third-party decrypt tool, notes the original repo is unavailable and the replacement's compatibility is unverified — honest; but SECURITY.md still contains the placeholder '[fill maintainer email]' and publisher identity is unverified, so 1.
self_consistency: README features broadly match docs/install, faq and frontend types (ForecastEntry, TaskRun, ReplyRhythm, etc.), and port/data-dir/env-var descriptions agree; but README default model names (deepseek-v4-pro, gpt-6-astra, claude-opus-5-5) are plainly unverifiable, weakening consistency, 2. dependency_availability: install docs state Go 1.22+/Node 22.12+/TDM-GCC and WebView2 requirements, but no go.mod/package-lock evidence is in the packet, and Docker/DSH test images depend on external ghcr artifacts, so availability cannot be statically confirmed, 1. failure_messages: the worker CLI gives explicit Chinese errors with exit 1 for existing pairing, malformed artifact ID/SHA, existing output file and unpaired directory; FAQ provides a diagnostics panel, log paths and troubleshooting; but there is no systematic backend error-code or frontend error-surfacing description, 2.
audience_and_scenarios: clearly layered for ordinary WeChat users (one-click macOS/Windows install, demo data) and advanced users (Docker, MCP, DSH plugin, SQL workbench, SFT training), covering analysis, cloning, export and labs, 3. capability_boundaries: explicitly states AI clones do not represent the real person, SFT does not guarantee factual recall, cross-contact Q&A 'not found does not mean absent', the lock screen is not encryption, and the demo forbids uploading training data — boundaries are well stated, 3. trigger_precision: scheduled tasks define type/scope/period, and MCP/DSH default to no authorized conversations with explicit allowlists (WELINK_ALLOWED_CONVERSATIONS); but natural-language SQL and cross-contact Q&A rely on prompt-level constraints for trigger and recall boundaries, 2. environment_fit: macOS 12+/Windows 10 1903+/Docker paths, automatic fallback across 20 ports, universal binary, WebView2-missing guidance, CJK/space path support — environment fit is well documented, 3.
information_architecture: README is organized by feature domain and docs/ splits install/install-macos/install-windows/faq/sft/api/labs/ux with complete cross-links, 3. install_notes: three deployment paths each have dedicated docs covering system requirements, Gatekeeper/SmartScreen bypass, data locations, port customization, upgrade and source builds, 3. naming_stability: version numbers v0.2.x/v0.3.x/v0.4.0 map to feature increments, but README default model names and some feature naming (Lab counts, tab names) drift across versions and no stable API versioning policy is stated, 2. examples_and_faq: README has many example questions and screenshot GIFs; faq.md covers privacy, install, features and troubleshooting, 3. known_limitations: explicitly lists no notarization/code signing, no built-in auth, lock screen not encryption, incomplete redaction, SFT not guaranteeing facts, unverified replacement decrypt tool, and demo restrictions, 3. license: full AGPL-3.0 LICENSE text is present and matches the README badge, 3. versioning_changelog: README describes increments per version and SECURITY.md supports only the latest release tag, but there is no standalone CHANGELOG or semver commitment, 2. maintenance_responsibility: SECURITY.md promises 48h/7d/30d response and a private disclosure channel, but the contact email is a placeholder, the publisher is unverified and there is no maintainer list or governance statement, so the responsible party is unclear, 1.
output_usability: outputs are rich and directly usable — shareable long images, CSV/TXT export, Markdown inbox, Skill zips, LoRA JSONL, MCP tool results, editable drafts, 3. marginal_value: provides an integrated statistics+LLM+export+training stack for the niche of WeChat chat analysis, which is genuine added value; but many Labs are entertainment cards and comparable WeChat-analysis tools exist, so marginal value is moderate, 2. cost_benefit: token costs are stated (cross-contact Q&A ~4000 tokens, distillation 5-15k, 1.5-3k per chapter, 0.05-0.2 CNY per image) and zero-LLM statistical paths plus local Ollama exist; but the feature surface is very broad and deployment/decryption is high-friction, so the trade-off is left to the user, 2.
claim_traceability: most README features trace to specific docs sections and source files (types, cli.py, workflows) and a test-record doc is linked; but key parameters such as default model names cannot be verified, 2. cross_source_corroboration: README, faq and install docs corroborate each other well, but the code sample covers only the worker CLI, frontend types and one DSH probe test, so most functional claims lack cross-source support, 1. fact_inference_separation: docs repeatedly separate fact from inference — 'simulated results do not represent the real person', 'numbers are for cross-checking, inferences may be wrong', 'not found does not mean absent', 'compatibility not yet verified'; but some marketing-style claims (e.g. forecast accuracy) lack quantitative backing, 2.
- The backend has no built-in auth; once WELINK_LISTEN_LAN=1 is set or the Docker port mapping is opened, anyone on the same network can reach chat data and the API-key management surface — pair it with a reverse proxy, HTTPS/Basic Auth and network restrictions.
- Decrypted WeChat databases and preferences.json are plaintext and the lock-screen PIN is only a visual overlay; rely on FileVault/BitLocker full-disk encryption and protect the decrypted/ directory.
- Automatic redaction covers only common fields (phone/email/ID/card/wxid); manually review content before sending to cloud LLMs, remote trainers or third-party export targets.
- Default model names in the README (e.g. deepseek-v4-pro, gpt-6-astra, claude-opus-5-5) cannot be verified; check each vendor's current API for actually available models.
- SECURITY.md still contains the placeholder '[fill maintainer email]' and the publisher is unverified, so the responsible party and response commitments for security incidents should be treated with caution.
- The third-party WeChat decrypt tool (WeinanHu/wechat-decrypt) has unverified compatibility and safety; review its source and permissions before use.
- Scheduled tasks, memory extraction and Skill distillation call LLMs automatically per configuration and may send chat snippets without per-run confirmation.
FAQ
Does WeLink decrypt my WeChat database itself?
decrypted/ directory with an external tool compatible with your system and WeChat version, and WeLink only reads it.Where does my chat data go?
What extra pieces do Claude Code or Codex need?
mcp-server binary, which reverse-proxies the local backend HTTP API. Skill distillation needs nothing extra — it writes files such as ~/.claude/skills/<name>/SKILL.md, AGENTS.md or .cursor/rules/<name>.mdc. The DSH plugin additionally requires a WeLink backend that exposes the agent query endpoints.What does it actually cost to run?
Can AI Clone or the visual-novel output be mistaken for the real person?
Is WeLink open source?
Is WeLink safe to use?
Is WeLink still maintained?
Who makes WeLink?
What is WeLink's official website?
Thanks — we use this to improve the page.
Subscribe to the FollowAgents RSS feed, or save this agent to your browser shortlist to compare on your next visit.