md2wechat is a command-line tool that converts Markdown to WeChat Official Account formatting, with support for styling, cover generation, and multi-platform draft publishing.
The tool addresses the friction in WeChat content publishing by breaking the workflow into discrete, verifiable CLI commands. Users write Markdown locally, then use the tool to convert it to WeChat-compatible HTML with professional styling, generate cover images and infographics, inspect the output before publishing, and push drafts to the WeChat backend. The tool supports over 40 styling templates and custom syntax for layout control. For automation, it exposes discovery commands that allow AI agents to query capabilities, available themes, and layout options, enabling stable integration with Claude Code, Codex, and other agent platforms through JSON responses. A paid API mode provides stable conversion with coverage of advanced styling scenarios.
The tool suits content creators and teams managing WeChat Official Accounts who want to author in Markdown and automate publishing workflows. It is particularly valuable for those using AI agents to assist with content creation, as the CLI is designed around agent integration patterns. The free tier supports basic conversion and preview, while the professional API unlocks batch publishing, multi-account management, and guaranteed output stability. A recent addition enables cross-platform draft synchronization, allowing a single Markdown file to be saved as drafts on Zhihu, CSDN, and Toutiao through browser automation by agents.
The project maintains active development with regular feature additions, as evidenced by the recent multi-platform draft sync capability. The codebase is written in Go and includes comprehensive documentation covering installation, configuration, WeChat credential setup, and agent workflow patterns. The tool provides explicit commands for content generation tasks like title suggestions, humanization, and infographic creation, indicating ongoing investment in the authoring experience beyond format conversion alone.