Skip to content

docs: add multi-tenant / multi-account section to README - #92

Merged
jiweiyuan merged 1 commit into
mainfrom
docs/multi-tenant-readme
Jul 2, 2026
Merged

jiweiyuan merged 1 commit into
mainfrom
docs/multi-tenant-readme

Conversation

@jiweiyuan

Copy link
Copy Markdown
Collaborator

Summary

Adds a Multi-Tenant / Multi-Account section to both README.md and README.EN.MD, between the features tables and the architecture diagram.

The SDK already supports running multiple WeChat accounts in one backend process — every bot instance is fully isolated (own HTTP client, events, poller; no global state, no local ports) — but this was undocumented. The new section covers:

  • One instance per tenant with per-tenant credential storage (storageDir or a custom Storage such as PostgreSQL)
  • QR delivery via the onQrUrl login callback so each user scans from their own web page
  • Three operational caveats: storage isolation, single poller per account across the fleet, and restart recovery without rescanning

Companion docs (full PostgreSQL storage example) already live on the landing site: jiweiyuan/wechatbot-landing@ca8053f.

🤖 Generated with Claude Code

Documents running multiple WeChat accounts in one backend process:
per-tenant instances with isolated storage, QR delivery via onQrUrl
callback for web-based scanning, and the single-poller-per-account
constraint for multi-machine deployments.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
@jiweiyuan
jiweiyuan merged commit ce33e4d into main Jul 2, 2026
12 checks passed
@jiweiyuan
jiweiyuan deleted the docs/multi-tenant-readme branch July 2, 2026 07:57
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant