WeClone
Build a portrait of your life. Assistants that know you. Clones that talk like you.
Install / Use
claude mcp add xming521 -- npx -y github:xming521/WeCloneIf the server publishes to npm under a different name, use that package instead — check the repo README.
MCP Server
Model Context Protocol server
Quality Score
Category
AI & Machine LearningSupported Platforms
Our assessment of WeClone
WeClone scores 95/100 on our quality scale, 118th of 939 AI & Machine Learning skills we index (top 13%).
Its MCP Server is 20 KB long, well organised into 38 sections with 15 code examples: a thorough specification that gives an agent plenty to work with.
With 18,332 GitHub stars, it is one of the more widely adopted skills in the catalogue.
Maintenance, license and trust
- The repository was last updated today, so WeClone is actively maintained.
- It is released under AGPL-3.0, a copyleft license: you can use it, but modified versions you distribute must carry the same license.
- Its trust signals score 95/100, with 1 caution from licensing, adoption, age or documentation. These come from repository metadata, not a code audit — read the skill file before letting an agent act on it.
WeClone compared with similar skills
All 4 of these similar skills score higher than WeClone; compare them before choosing.
| Skill | Score | Stars | Updated | Format |
|---|---|---|---|---|
| WeClone (this skill)by xming521 | 95 | 18.3k | today | MCP Server |
| Agent-Reachby Panniantong | 100 | 104.8k | 2d ago | CLAUDE.md |
| claude-memby thedotmack | 100 | 103.7k | today | CLAUDE.md |
| Understand-Anythingby Egonex-AI | 100 | 88.6k | 1d ago | CLAUDE.md |
| headroomby headroomlabs-ai | 100 | 78.0k | today | CLAUDE.md |
Frequently asked questions
- How do I install WeClone?
- Run
claude mcp add xming521 -- npx -y github:xming521/WeClone. The install tabs above show the steps for each supported agent. - Which AI agents does WeClone work with?
- It is written for Claude Code and Claude Desktop, as a MCP Server file. Other agents that read the same format can often use it too.
- Is WeClone safe to use?
- It is AGPL-3.0-licensed and scores 95/100 on trust signals. Skills are instructions an agent will follow, so read the file before installing it and do not approve commands you do not understand.
- Is WeClone still maintained?
- The repository was last updated today, so WeClone is actively maintained.
Skill content
View source on GitHub
<a href="https://qm.qq.com/cgi-bin/qm/qr?k=wNdgbOVT6oFOJ2wlMLsolUXErW9ESLpk&jump_from=webapi&authKey=z/reOp6YLyvR4Tl2k2nYMsLoMC3w9/99ucgKMX0oRGlxDV/WbYnvq2QxODoIkfxn" target="_blank" style="text-decoration: none;">
<img src="https://img.shields.io/badge/QQ群-708067078-12B7F5?style=for-the-badge&logo=qq&logoColor=white" alt="WeClone①" title="WeClone①">
</a>
<a href="https://hellogithub.com/repository/12ab209b56cb4cfd885c8cfd4cfdd53e" target="_blank"><img src="https://abroad.hellogithub.com/v1/widgets/recommend.svg?rid=12ab209b56cb4cfd885c8cfd4cfdd53e&claim_uid=RThlPDoGrFvdMY5" alt="Featured|HelloGitHub" style="width: 150px; height: 28px;" /></a> <a href="https://trendshift.io/repositories/13759" target="_blank"><img src="https://trendshift.io/api/badge/repositories/13759" alt="xming521%2FWeClone | Trendshift" style="width: 220px; height: 50px;" /></a> <a href="https://deepwiki.com/xming521/WeClone"><img src="https://deepwiki.com/badge.svg" alt="Ask DeepWiki" style="width: 134px; height: 23px;margin-bottom: 3px;"></a>
</div> <p align="center"> <a href="https://github.com/xming521/WeClone/blob/master/README_zh.md" target="_blank">简体中文</a>| English</a>| <a href="https://www.weclone.love/" target="_blank"> Project Homepage </a> | <a href="https://docs.weclone.love/docs/introduce/what-is-weclone.html" target="_blank"> Documentation </a> </p>✨Core Features
- 💫 Complete end-to-end solution for creating digital avatars, including chat data export, preprocessing, model training, and deployment
- 💬 Fine-tune LLM using chat history with support for image modal data, infusing it with that authentic "flavor"
- 🔗 Integrate with Telegram, WhatsApp (coming soon) to create your own digital avatar
- 🛡️ Privacy information filtering with localized fine-tuning and deployment for secure and controllable data
📋Features & Notes
Data Source Platform Support
| Platform | Text | Images | Voice | Video | Animated Emojis/Stickers | Links (Sharing) | Quote | Forward | Location | Files | |----------|------|--------|-------|-------|-----------------|-----------------|-------|---------|----------|-------| | Telegram | ✅ | ✅ | ❌ | ❌ | ⚠️Convert to Emoji | ❌ | ❌ | ✅ | ✅ | ❌ | | WhatsApp | 🚧 | 🚧 | 🚧 | 🚧 | 🚧 | 🚧 | 🚧 | 🚧 | 🚧 | 🚧 | | Discord | 🚧 | 🚧 | 🚧 | 🚧 | 🚧 | 🚧 | 🚧 | 🚧 | 🚧 | 🚧 | | Slack | 🚧 | 🚧 | 🚧 | 🚧 | 🚧 | 🚧 | 🚧 | 🚧 | 🚧 | 🚧 |
Deployment Platform Support
| Platform | Deployment Support | |----------|--------------------| | Telegram | ✅ | | WhatsApp | 🚧 | | WeChat (Personal Account) |✅ (Based on openclaw-weixin)| | Discord | ✅ | | Slack | ✅ |
[!IMPORTANT]
- WeClone is still in rapid iteration phase, current performance does not represent final results.
- LLM fine-tuning effectiveness largely depends on model size, quantity and quality of chat data. Theoretically, larger models with more data yield better results.
- The performance of the 7B model is average, while models with 14B or more parameters tend to deliver better results.
- Windows environment has not been rigorously tested. You can use WSL as the runtime environment.
Recent Updates
[25/07/10] Data source added Telegram
[25/06/05] Support for image modal data fine-tuning
Hardware Requirements
The project uses Qwen2.5-VL-7B-Instruct model by default with LoRA method for SFT stage fine-tuning. You can also use other models and methods supported by LLaMA Factory.
Estimated VRAM requirements:
| Method | Precision | 7B | 14B | 30B | 70B | xB |
| ------------------------------- | --------- | ----- | ----- | ----- | ------ | ------- |
| Full (bf16 or fp16) | 32 | 120GB | 240GB | 600GB | 1200GB | 18xGB |
| Full (pure_bf16) | 16 | 60GB | 120GB | 300GB | 600GB | 8xGB |
| Freeze/LoRA/GaLore/APOLLO/BAdam | 16 | 16GB | 32GB | 64GB | 160GB | 2xGB |
| QLoRA | 8 | 10GB | 20GB | 40GB | 80GB | xGB |
| QLoRA | 4 | 6GB | 12GB | 24GB | 48GB | x/2GB |
| QLoRA | 2 | 4GB | 8GB | 16GB | 24GB | x/4GB |
Environment Setup
-
CUDA installation (skip if already installed, requires version 12.6 or above)
-
It is recommended to use uv to install dependencies, which is a very fast Python environment manager. After installing uv, you can use the following commands to create a new Python environment and install dependencies.
git clone https://github.com/xming521/WeClone.git && cd WeClone
uv venv .venv --python=3.12
source .venv/bin/activate # windows .venv\Scripts\activate
uv pip install --group main -e .
- Copy the configuration file template and rename it to
settings.jsonc, and make subsequent configuration changes in this file:
cp examples/tg.template.jsonc settings.jsonc
[!NOTE] Training and inference related configurations are unified in the file
settings.jsonc
- Use the following command to test whether the CUDA environment is correctly configured and can be recognized by PyTorch (not needed for Mac):
python -c "import torch; print('CUDA Available:', torch.cuda.is_available());"
- (Optional) Install FlashAttention to accelerate training and inference:
uv pip install flash-attn --no-build-isolation.
Model Download
It is recommended to use Hugging Face to download models, or use the following command:
git lfs install
git clone https://huggingface.co/Qwen/Qwen2.5-VL-7B-Instruct models/Qwen2.5-VL-7B-Instruct
Data Preparation
Please use Telegram Desktop to export chat records. Click the top right corner in the chat interface, then click "Export chat history". Select Photos for message types and JSON for format. You can export multiple contacts (group chat records are not recommended), then place the exported ChatExport_* in the ./dataset/telegram directory, meaning put different people's chat record folders together in ./dataset/telegram.
Data Preprocessing
- First, modify the
language,platform, andinclude_typein the configuration file according to your needs. - If you use telegram, you need to modify the
telegram_args.my_idin the configuration file to your own telegram user ID. - By default, the project uses Microsoft Presidio to remove
phone numbers, email addresses, credit card numbers, IP addresses, geographic location names, international bank account numbers, cryptocurrency wallet addresses, age information, and generic ID numbersfrom the data, but it cannot guarantee 100% identification. - Therefore, a blocklist
blocked_wordsis provided insettings.jsonc, allowing users to manually add words or phrases they want to filter (the entire sentence containing blocked words will be removed by default).
[!IMPORTANT] 🚨 Please be sure to protect personal privacy and do not leak personal information!
- Execute the following command to process the data. You can modify the
make_dataset_argsin settings.jsonc according to your own chat style.
weclone-cli make-dataset
More Parameter Details: Data Preprocessing
Generate a User Profile in One Command
Run from the project root:
weclone-cli build-profile
Choose profiles only (the default) or include events. The results may overlap; choose profiles only to save tokens. You can also select the mode directly:
weclone-cli build-profile --profile-only
weclone-cli build-profile --with-events
Results are saved under dataset/res_csv/agent/profile_runs/, and the profile path is printed on completion. Use --output-dir <new-directory> to choose the result directory. API models require --max-context-tokens <limit> to set the input token limit.
Run weclone-cli server to view and review profiles, or weclone-cli server --source <profile-path> to select a profile.
Data Encryption and Passwords
Set security_args in settings.jsonc:
"security_args": {
"storage_mode": "encrypted"
}
New templates default to encrypted; choose plaintext for plaintext storage. Older configurations without this setting use plaintext. Encrypted mode does not yet support distributed training.
Set a shared password at the first encrypted task or web visit. Use it to unlock later tasks and sign in to the web interface.
Encrypted outputs end in .enc. Protect your original chats and any plaintext exports. Keep the .weclone/ directory: it contains the key needed to read encrypted data.
Export plaintext, change a password, or reset a forgotten password:
weclone-cli decrypt --input <encrypted-file> --output <new-plaintext-file>
weclone-cli security-change-password # Requires the old password; preserves data
weclone-cli server-reset-password # Reset a forgotten password
Encrypted data cannot be recovered without the password. After resetting it or switching storage modes, regenerate data from the original chats in a new output directory.
Configure Parameters and Fine-tune Model
- (Optional) Modify
model_name_or_path,template,lora_targetinsettings.jsoncto select other locally downloaded models. - Modify
per_device_train_batch_sizeandgradient_accumulation_stepsto adjust VRAM usage. - You can modify parameters like
num_train_epochs,lora_rank,lora_dropoutintrain_sft_argsbased on your dataset's quantity and quality.
Single GPU Training
weclone-cli train-sft
Multi-GPU Training
Uncomment the deepspeed line in settings.jsonc and use the following command for multi-GPU training:
uv pip install "deepspeed<=0.16.9"
deepspeed --num_gpus=number_of_gpus weclone/train/train_sft.py
Simple Inference with Browser Demo
Test suitable temperature and top_p values, then modify infer_args in settings.jsonc for subsequent inference use.
weclone-cli webchat-demo
Inference Using API
weclone-cli server --inference --port 8005
Test with Common Chat Questions
Does not include questions asking for personal information, only daily conversation. Test results are in test_result-my.txt.
weclone-cli server --inference --port 8005
weclone-cli test-model
🖼️ Results Showcase
[!TIP] We're looking for interesting examples of native English speakers chatting with WeClone! Feel free to share them with us on Twitter.
🤖 Deploy to Chat Bots
AstrBot
AstrBot is an easy-to-use multi-platform LLM chatbot and development framework ✨ Supports Discord, Telegr
Truncated for display — read the full file on GitHub.
Related Skills
Agent-Reach
104.8kGive your AI agent eyes to see the entire internet. Read & search Twitter, Reddit, YouTube, GitHub, Bilibili, XiaoHongShu — one CLI, zero API fees.
claude-mem
103.7kPersistent Context Across Sessions for Every Agent – Captures everything your agent does during sessions, compresses it with AI, and injects relevant context back into future sessions. Works with Claude Code, OpenClaw, Codex, Gemini, Hermes, Copilot, OpenCode + More
Understand-Anything
88.6kGraphs that teach > graphs that impress. Turn any code into an interactive knowledge graph you can explore, search, and ask questions about. Works with Claude Code, Codex, Cursor, Copilot, Gemini CLI, and more.
headroom
78.0kCompress tool outputs, logs, files, and RAG chunks before they reach the LLM. 20% fewer tokens for coding agents, 60-95% fewer tokens for JSON, same answers. Library, proxy, MCP server.
Languages
Trust signals
From repository metadata: license, adoption, age and documentation. Not a code audit — see the Safety scan above for what the skill file itself contains.
