Wink Pings

Running WeChat in Docker and opening it directly in a browser—what's the point?

Some people think putting WeChat in Docker is pointless, until they need to send automated reminders to WeChat groups. This project runs the official WeChat Linux client in a container and lets you operate it through a browser, opening the door to automating desktop apps that have no API.

Some think it's overkill

Putting WeChat in Docker and opening it through a browser. First reaction: pointless. Until a concrete need appears: automatically sending reminders to a group.

The poster @weichen_ink tried a bunch of options and finally landed on nickrunning/wechat-selkies. The official WeChat Linux client runs in a container, Selkies WebRTC pushes the UI to a browser, and with Hermes it can be operated seamlessly. No local install, no web-version protocol, and WeChat itself is still the official version.

Project screenshot shared by the poster

What the project does

WeChat Selkies packages the official WeChat/QQ Linux clients into Docker images and lets you operate them in a browser via Selkies WebRTC. Data is mounted at ./config, so chat history and configuration won't be lost when the container is rebuilt.

The feature list is real: Chinese support, local input methods, image copying, file transfer, hardware acceleration, and both AMD64 and ARM64. There is also a minimal tag that includes only WeChat and is smaller.

Deployment is a single command:

docker run -it -p 3001:3001 -v ./config:/config --device /dev/dri:/dev/dri ghcr.io/nickrunning/wechat-selkies:latest

Open https://localhost:3001 in a browser. With default settings, WeChat starts automatically; just scan the QR code to log in. More environment variables and details are in the README.

Project screenshot: WeChat

Project screenshot: QQ

The comments are better than the project itself

Some people's first reaction is the risk of account bans. @猫投鹰 put it well: an isolated container environment is indeed useful, but WeChat's risk control mainly looks at operation patterns; for long-term group reminders, it's best to randomize behavior and rotate multiple accounts. The poster also admitted they'd first run it and see.

Some directly asserted it would definitely get banned. But the poster explained the mechanism: underneath it is the native Linux WeChat client; the web page is only an intermediary, not the web-version protocol. This makes the risk different from using a purely third-party protocol.

Someone asked how Hermes operates it. The poster said you can just hand it the web page; reading web information doesn't use many tokens.

@LeisureLinux pointed out a more general angle: any desktop app with only a GUI and no API, once stuffed into a Selkies-like container, becomes a web page that can be handed to a browser agent to operate. This use case is closer to the essence than simply opening WeChat remotely; the author probably didn't even think of it.

This angle opens up the project. WeChat has no API, but it has a browser. Put the app in a container, stream the UI out via WebRTC, and automation tools can operate it like a web page. The group reminders the poster wanted to build are just one scenario.

Is it worth trying?

Some use it to solve the problem of not wanting to install WeChat on their own machine; some suggest adding a heartbeat check so disconnections can be noticed promptly; others ask whether a virtual machine would be better. A VM works, but Docker's advantage is being lighter and easier to deploy and distribute.

If you just want another WeChat on your computer, this solution is a bit heavy. If you don't want to install WeChat locally, need a long-term online WeChat running on a server, or want to use browser automation to operate desktop apps, this project already provides a complete and feasible path.

Running WeChat in Docker—not a wasted effort.

发布时间: 2026-11-24 04:55