# Dafeiyu Life — AI Companion QQ Bot Setup

> Replicate the 12-day dafeiyu-life DeepSeek QQ bot on Windows or Linux (auto-detected) with LivingMemory, persona, and 3 fix plugins — using cloud image & voice via Agensi MCP or local ComfyUI & Breeze-TTS-2.

Dafeiyu Life — AI Companion QQ Bot Setup is a free AI agent skill on Agensi by 飞, in Agents & Orchestration. It loads into your AI agent through the Agensi MCP server, always in its latest approved version.

- Price: Free
- Creator: [飞](https://www.agensi.io/creators/creator-1566)
- Category: [Agents & Orchestration](https://www.agensi.io/skills/agents-orchestration)
- Version: 1.3
- Last updated: 2026-12-03
- Security: scan passed (2026-12-03); every new listing is also reviewed by a person
- Listing: https://www.agensi.io/skills/dafeiyu-life-ai-companion-qq-bot-setup
- Tags: ai-agents, windows, danbooru, tts, deepseek, comfyui

## What it does

- Builds a bot that remembers details across weeks of chat instead of just the last few lines
- Installs a detailed personality that makes the bot talk like a real friend rather than a service bot
- Sets up voice messaging so your bot can talk back to you in chat
- Configures image generation so the bot can send "selfies" or pictures you ask for
- Works on both Windows computers and Linux servers with custom setup paths for each
- Includes three special fixes to ensure audio and messages send correctly every time

## Who it's for

- **People wanting a personalized chat companion on QQ:** Give your bot a lifelike personality and a memory that actually sticks around. Try: "Set up a QQ bot with DeepSeek and long-term memory on my Windows PC."
- **Tech-savvy users with a Linux home server or VPS:** Run a high-end AI bot 24/7 with images and voice using Docker. Try: "Deploy the dafeiyu-life bot on my Linux server using Docker Compose."
- **Users without a powerful computer or GPU:** Get high-quality AI images and voice without buying expensive hardware. Try: "Set up the bot using cloud tools for images and voice."

## About this skill

Build a persistent DeepSeek-powered QQ companion bot on **Windows or Linux (auto-detected)** with long-term memory, a 3,431-character persona, and pluggable cloud or local image & voice backends. **Dafeiyu Life** packages a complete 12-day verified production stack (960 user messages, 963 replies, 329 voice clips, 54 selfies, 79 long-term memories) plus an adapted Linux Docker Compose path.

### Core Stack (All Included)
- **Auto-Selected Windows or Linux Setup**: Native Windows Launcher or Linux Docker Compose (`docker-compose.linux.yml`), with a bare-metal `uv` + Python 3.12 fallback when Docker is unavailable.
- **Dual-Route Long-Term Memory (`LivingMemory` + `bge-m3`)**: Document (0.65) + graph (0.35) RRF retrieval, FAISS indexing, 20-round summaries, daily consolidation, and 30-day archive retention.
- **Persona & Anti-Impersonation Rules**: Short casual QQ-style replies, daily routines, and strict owner verification.
- **3 Bundled Fix Plugins (Verified on AstrBot v4.30)**: `astrbot_plugin_tts_wav_fix` (WAV header repair + EOS tail retry), `astrbot_plugin_local_media_uri` (bypasses 50 MB WebSocket limit for >3 MB audio), and `astrbot_plugin_meme_marker_fix`.
- **NapCat Anti-Disconnect & Secret Scanner**: Verified OneBot heartbeat/reconnect values, proxy `DIRECT` bypass, QZone cookie-TTL fixes to prevent `[KickedOffLine]` drops, plus `check_no_secrets.py` (`python3 -B`) for credential safety.

### Pluggable Image & Voice Backends (Steps 8–9)
- **Option A — Cloud via Agensi MCP (Recommended for New Users / No GPU):** Drop `mcp_server.agensi.example.json` into AstrBot to connect `FLUX`, `GPT Image`, `Nano Banana`, `ElevenLabs`, `MiniMax`, and `Search the web` directly — no 15+ GB local model downloads and seconds per generation.
- **Option B — Local GPU (Zero Marginal Cost):** Run ComfyUI (`moss_t2i_api.json`) and Breeze-TTS-2 locally on an 8 GB+ VRAM GPU with zero per-call fees and no watermarks.

---
Based on the open-source GitHub repository **le12377/dafeiyu-life** (full 12-day production metrics, docs, and redacted configs).

## Requires

- Python
- Remote MCP
- Node.js
- Git

## Known limitations

Requires Windows 10/11 for full bot deployment. Local image generation requires 8GB+ VRAM. Character memory is global and not separated by user ID.

## Technical details

Built for AstrBot v4.29+ and NapCat OneBot v11. Supports Windows native install or Linux via Docker Compose. Uses LivingMemory for RAG-based long-term storage with FAISS and Ollama (bge-m3) embeddings. Integrates with DeepSeek API for chat and either Agensi MCP or local ComfyUI/Breeze-TTS for media generation. Includes custom Python fix plugins for WAV headers and large file handling via file URIs.

## How to use this skill

1. Connect your AI agent to Agensi once: add the MCP server https://mcp.agensi.io/mcp/auth and sign in with your Agensi account (OAuth, no API key). Steps for Claude, ChatGPT, Claude Code, Codex, Cursor, VS Code and other agents: https://www.agensi.io/docs/mcp-setup
2. Ask your agent: "Use the Dafeiyu Life — AI Companion QQ Bot Setup skill from Agensi" and describe your task.
3. Your agent loads the skill from Agensi when it needs it. Nothing is downloaded.

## Frequently asked questions

### What specific problems does this skill solve for someone building an AI companion?

This skill provides a complete pipeline for creating a lifelike AI companion. It solves the problem of robotic interactions by offering a 3400-character persona system and a dual-route memory retrieval logic that prevents the bot from forgetting past conversations.

### Do I need a high-end GPU or specific accounts to use this?

Users can choose between a cloud-first mode that requires no local hardware or a full Windows deployment mode. For the cloud-first option, you only need your agent and an Agensi balance. For the full 24/7 QQ bot, you will need a Windows 10 or 11 PC, a spare QQ account, and a DeepSeek API key.

### What files and configurations are included in this skill?

You receive verified persona templates, configuration files for long-term memory systems, and specialized fix plugins for audio and image transfers. It also includes optimized prompt engineering for anime-style images and workflows for synthesizing casual, character-aligned voice lines.

### How do I ask my agent to start using these companion features?

You can ask your agent to generate a character selfie using Danbooru-style prompts or to synthesize a casual voice reply. If you want a permanent presence, ask your agent to guide you through the 12-step setup for a persistent QQ bot using the provided Windows orchestration files.

### Are there any limitations on where the bot can be hosted?

This skill does not host the 24/7 bot on Agensi servers; the persistent version must run on the user's own Windows hardware. Additionally, it does not provide the actual local model weights, API keys, or pre-existing chat databases from the creator.

---

Source: [Agensi](https://www.agensi.io), the marketplace of skills for AI agents. Any MCP-compatible agent (Claude, ChatGPT, Claude Code, Codex, Cursor, VS Code and more) connects at https://mcp.agensi.io/mcp/auth and signs in with an Agensi account; setup for every agent: https://www.agensi.io/docs/mcp-setup. Append .md to any skill, guide or docs address on agensi.io for its markdown version.
