Weixin Agent SDK is an unofficial bridging framework for connecting arbitrary AI agents to Weixin through a simple programming interface. Developers implement an Agent interface that receives conversation identifiers, text, and optional media and returns text or media responses. An included ACP adapter can connect compatible agents such as Claude Code, Codex, and other command-line agents without custom integration code. QR-code login handles account authentication, while a message loop manages incoming and outgoing conversations. The SDK supports text, images, audio, video, files, quoted content, and voice transcription data. Bots can also proactively send messages after the required conversation context has been established. Long polling eliminates the need for a public server, while media is automatically downloaded, decrypted, processed, and transferred through Weixin's CDN.
Features
- Simple custom Agent integration interface
- ACP support for compatible coding and AI agents
- QR-code Weixin account authentication
- Text, image, audio, video, and file messaging
- Proactive bot messages through the Bot interface
- Long polling, encrypted media transfer, and session recovery