# xiaobei

> A self-hosted team of AI agents that writes, publishes and tracks social-media content for small businesses, driven entirely from a WeChat chat

- Category: AI Productivity & Writing / Writing & Marketing
- Language: Python
- Licence: Modified Apache 2.0 (commercial licence required for multi-tenant use; commercial crawling and unauthorised scraping prohibited)
- Repository: https://github.com/TeamWiseFlow/xiaobei
- Website: https://openclaw-for-business.com/
- Canonical page: https://ai-tldr.dev/tools/xiaobei/
- Updated: 2026-09-20

## In short

xiaobei is a social-media customer-acquisition agent built by the Wiseflow team for one-person companies and small businesses. It runs on top of the openclaw agent runtime and you talk to it through WeChat on your phone (Feishu and WeCom are also supported). It sits in the Writing & Marketing category of the AI Productivity & Writing tools and is open-source, written in Python and licensed Modified Apache 2.0 (commercial licence required for multi-tenant use; commercial crawling and unauthorised scraping prohibited).

## Overview

xiaobei is a social-media customer-acquisition agent built by the Wiseflow team for one-person companies and small businesses. It runs on top of the openclaw agent runtime and you talk to it through WeChat on your phone (Feishu and WeCom are also supported). From that one chat window it writes, formats and pushes WeChat Official Account articles, creates and publishes Xiaohongshu image posts, generates posters and videos and distributes them to WeChat Channels, Douyin and Xiaohongshu, and posts to Twitter/X, Weibo and Zhihu. It can also break down trending videos from Douyin, Bilibili and Xiaohongshu links for rewriting, model the style of leading accounts in a niche, monitor the data of published posts with a daily scheduled review, and work comment sections for leads.

Behind the single chat sits a crew of agents. The default xiaobei agent handles content operations; a built-in IT Engineer sub-agent handles operations and troubleshooting; a content producer runs the video and visual production line; and an optional sales-and-customer-service agent (sales-cs) answers pre-sales questions from a knowledge base. When one agent hits a problem it cannot solve — the README's example is an expired WeChat access token during publishing — it calls the right sub-agent itself and resumes the task, without asking the user for help.

Platform automation runs on a reworked browser stack: a fork of camoufox-cli (the anti-detect Firefox build) with added upload, fail-first session queuing and identity export, plus a set of browser skills for login management, web form filling and per-platform publishing. A built-in Smart Search skill covers 18 kinds of sources, from Xiaohongshu, Douyin and Weibo to GitHub, news and academic sites, without any API key. Models default to an Alibaba Cloud Bailian (Model Studio) plan that covers chat, image generation, text-to-speech, speech recognition and video generation from one key; Volcano Engine Ark and MiniMax are supported for video. The code is published under a modified Apache 2.0 licence that forbids commercial crawling and requires a commercial licence for multi-tenant use.

## What it does

- One WeChat chat controls everything — also works over Feishu and WeCom
- Writes, formats and publishes to WeChat Official Accounts, Xiaohongshu, Douyin, WeChat Channels, Twitter/X, Weibo and Zhihu, and can post to WeChat Moments through WeCom
- Trending-video breakdown and rewriting from Douyin, Bilibili and Xiaohongshu links, plus style modelling of leading accounts on Xiaohongshu, WeChat Channels, Douyin and WeChat Official Accounts
- Tracks the data of published posts and runs a scheduled daily review
- A crew of cooperating agents — xiaobei, IT Engineer, content producer and an optional sales-cs customer-service agent — that hand problems to each other without user involvement
- Browser automation on a forked camoufox-cli with persistent login sessions, plus a keyless Smart Search skill across 18 source types
- One-line installer for macOS, Linux and Windows that bundles a portable Node and pnpm, with a China-hosted mirror route

## Getting started

The project recommends its one-line installer, which downloads a prebuilt tarball with a portable Node and pnpm, so nothing needs to be preinstalled. Have an Alibaba Cloud Bailian Token Plan key ready: the only manual input after the script runs is AWK_API_KEY. Recommended system is Ubuntu 22.04; WSL2, macOS (arm64 and x64) and Windows 10 1803+ are supported, with at least 8 GB RAM and 40 GB of free disk.

1. Install on macOS or Linux

   Use the GitHub route if GitHub is reachable, or the atomgit route for networks in mainland China. Both install the same program to ~/xiaobei/ and keep runtime data in ~/.openclaw/.

```bash
# GitHub route
bash -c "$(curl -fsSL https://raw.githubusercontent.com/TeamWiseFlow/xiaobei/master/scripts/install.sh)"
# atomgit route (mainland China)
bash -c "$(curl -fsSL https://raw.atomgit.com/wiseflow/xiaobei/raw/master/scripts/install-atomgit.sh)"
```

2. Or install on Windows

   Install Git Bash first (tick "Add to PATH"), because the crew setup script needs bash, then run PowerShell as administrator. Turning on Developer Mode lets the installer create skill symlinks instead of copies.

```text
irm https://raw.githubusercontent.com/TeamWiseFlow/xiaobei/master/scripts/install.ps1 | iex
```

3. Bind WeChat

   At the end of the install the script prints a WeChat binding QR code; scan it with WeChat on your phone and confirm. To bind another account later, re-run the channel login.

```bash
~/xiaobei/bin/openclaw channels login --channel openclaw-weixin
```

4. Run in the foreground for testing, and upgrade by re-running the installer

   Debug mode starts the gateway once in the foreground instead of as a launchd/systemd service. Re-running the install script on a machine that already has ~/.openclaw/openclaw.json upgrades the program directory and leaves your data alone.

```bash
~/xiaobei/bin/openclaw gateway run
```

## When to use it

- A one-person company that wants its WeChat Official Account, Xiaohongshu and short-video channels kept up without hiring an operations team
- Turning a trending Douyin, Bilibili or Xiaohongshu video into a breakdown and a new video of your own, then publishing it to several platforms at once
- Watching how published posts perform with an automatic daily review instead of checking each platform by hand
- Adding an AI pre-sales customer-service agent that answers from your own knowledge base

## Version history

- 2026-09-20 v5.7.2: The v5.7.1–5.7.2 updates moved the Xiaohongshu, Douyin and WeChat Channels account-modelling system to a 2.0 architecture, turned the content producer into an expert system that xiaobei can direct, added Douyin image-and-music post publishing, and let video generation run on Alibaba Cloud Bailian's Agent Plan.
