Skip to main content

WeChat DevTools Setup Guide

CloudBase AI ToolKit helps you build, debug, and deploy Mini Programs with natural language. Start with Write WeChat Mini Programs with AI. WeChat guide: DevTools Skills.

Examples:

  • "Build a Mini Program ordering app with CloudBase" — AI scaffolds pages, database, and cloud functions, then guides preview
  • "Build a booking system with status updates" — AI models data, sets permissions, and wires frontend/backend
  • "Add phone-number login to a Web app" — AI enables auth and integrates the CloudBase SDK

No need to switch to the cloud console — use natural language in your AI IDE.

Prerequisites

Before you start, make sure you have:

WeChat Developer Tools Nightly installed

AI preview / debug ships with Nightly; Stable often does not. Nightly only affects local development — not a different publish channel.

CloudBase environment ready

CloudBase environment: See Create a CloudBase environment. New users can start for free.


Connect DevTools to your AI

Two paths: built-in DevTools AI, or an external Agent (CodeBuddy, Cursor, etc.) with the Skill imported. Steps: Write WeChat Mini Programs with AI. Menus and versions follow WeChat’s DevTools Skills.

Choose and configure your AI tool

Client

Configure your AI tool to connect with CloudBase capabilities. Supports local and hosted connection. See connection modes.

Step 1: Install / Configure CloudBase

Step 2: Chat with AI

Enter the following in your AI chat in order:

prompt
Install CloudBase Skills: run npx skills add tencentcloudbase/cloudbase-skills -y
Use CloudBase Skills: Check whether DevTools is signed in; then build a WeChat Mini Program sample with CloudBase login and a list page, and preview it

External Agents: import the DevTools Skill

  1. Nightly signed in and open.
  2. Menu → Export DevTools Skill → import into the Agent; or run wechatide and give the printed path to the Agent.
  3. Allow the first auth popup.
  4. Ask: “Check whether DevTools is signed in, and preview this Mini Program.”

If you use the selector’s built-in WeChat DevTools entry, you usually do not need to export the Skill.

Local CLI (troubleshooting)
wechatide

wechatide -c CodeBuddy -t check_devtools_status --skill-version <versionFromSkillYaml>

wechatide -c CodeBuddy -t cloud_env_list --help

Replace CodeBuddy with your Agent name.

Tips

Permission modes

CodeBuddy provides permission modes for tool approval. Toggle with:

ShortcutNotes
Shift+Tab (macOS/Linux)Cycle permission modes
Alt+M (Windows)Cycle permission modes

Order: defaultbypassPermissionsacceptEditsauto (when available) → plandelegate

See interactive modes.

Sample prompts

  • "Create a product list page with image, title, price, and add-to-cart"
  • "Improve error handling for cloud function calls"

Configure CloudBase AI models for CodeBuddy

  1. Enable a model in the AI console and copy Base URL / API Key
  2. In CodeBuddy, open Agents
  3. Choose Configure custom model
  4. Paste Base URL, API Key, and model name

FAQ

Q: AI ToolKit does not work? A: Install and sign in to Nightly, import the Skill via Export DevTools Skill (or wechatide) into your Agent, and allow the first auth popup. You can also ask the Agent to “check whether DevTools is signed in.”

Q: I have DevTools but the Agent cannot connect / no Skills? A: Use Nightly from the download page (not Stable alone), import the Skill for external Agents, and confirm the first auth popup was allowed. Version requirements: DevTools Skills.

Q: How do I switch permission modes? A: Shift+Tab (macOS/Linux) or Alt+M (Windows).

More: FAQ

相关资源