WeChat DevTools Setup Guide
After setup, you can operate CloudBase services directly from the CodeBuddy extension inside WeChat DevTools.
Examples:
- "Create a users collection" - AI creates database collections automatically
- "Deploy this function" - AI uploads and configures cloud functions
- "Deploy the frontend to CDN" - AI uploads files and configures hosting
No need to switch to the Cloud console — you can do everything in CodeBuddy with natural language.
Prerequisites
Before you start, make sure you have:
Node.js and a CloudBase environment ready
Node.js: Install Node.js v18.15.0 or later:
node --version
If you don’t have it installed, download it from the Node.js website.
CloudBase environment: See Create a CloudBase environment. New users can start for free.
Configure your AI tool to connect with CloudBase capabilities. Supports local and hosted connection. See connection modes.
Step 1: Install / Configure CloudBase
搜索并安装插件
1. 在微信开发者工具中,点击顶部菜单栏的「扩展」 2. 在扩展商店中搜索「微信云开发 AI ToolKit」 3. 找到插件后点击安装并启用
打开 AI 开发功能
安装完成后,选中任意文件,点击左上角打开 AI 开发功能即可使用。
Step 2: Chat with AI
Enter the following in your AI chat in order:
Install CloudBase Skills: run npx skills add tencentcloudbase/cloudbase-skills -yUse CloudBase Skills: 帮我实现一个云函数,验证用户身份并获取用户信息FAQ
Q: MCP connection failed?
A: Ensure the CodeBuddy extension is installed correctly, restart WeChat DevTools, and confirm your network.
Q: Tool count shows 0?
A: See the FAQ.
More: FAQ