@cloudbase/setup-openclaw
v1.1.1
Published
Configure Moltbot/OpenClaw for CloudBase full-stack development and copy app templates
Readme
Setup CloudBase for OpenClaw/Moltbot
This skill helps you configure your OpenClaw/Moltbot installation for CloudBase full-stack development, including copying app templates to start new projects.
Quick Start
Option 1: Run the Setup Script
npx @cloudbase/setup-openclaw detectOption 2: Copy App Template
npx @cloudbase/setup-openclaw copy-template --dest /path/to/my-projectOption 3: Install Skill Enhancer Plugin
# Install the skill-enhancer plugin (optional but recommended)
npx @cloudbase/setup-openclaw install-pluginThis plugin automatically instructs the model to list available skills and justify their usage before responding.
Option 4: Manual Setup
Follow these steps:
- Find your workspace - Check your config file for the workspace path
- Configure MCP - Add CloudBase MCP to
<workspace>/config/mcporter.json - Update AGENTS.md - Add CloudBase development rules
- Install skill-enhancer plugin (optional) -
npx @cloudbase/setup-openclaw install-plugin - Install skills -
npx skills add tencentcloudbase/skills -y - Copy app template (optional) -
cp -r <workspace>/app <workspace>/my-new-project - Restart gateway -
moltbot gateway restart
See SKILL.md for detailed instructions.
What This Skill Does
- ✅ Detects your OpenClaw/Moltbot installation directory
- ✅ Finds your workspace configuration
- ✅ Checks for existing CloudBase MCP setup
- ✅ Verifies CloudBase skills are installed
- ✅ Installs skill-enhancer plugin (optional) to enforce proper skill usage
- ✅ Copies CloudBase React template for new projects
- ✅ Provides step-by-step guidance for configuration
App Template
The workspace includes a CloudBase + React template that can be copied as a starting point:
Features:
- React 19 + Vite 6 + TypeScript
- Tailwind CSS + DaisyUI
- CloudBase Web SDK integration
- Example project (Swimming Tracker)
- Build configuration and deployment scripts
To copy:
# Using the script
bash scripts/detect-setup.sh copy-template --dest ../my-new-project
# Or manually
cp -r app/ my-new-project/After copying:
- Update
cloudbaserc.jsonwith your Environment ID - Run
npm install - Run
npm run devfor development - Run
npm run buildfor production
Requirements
- OpenClaw or Moltbot installation
- Tencent Cloud account with CloudBase enabled
- Node.js 18+ (for Node.js setup script)
Getting CloudBase Credentials
You'll need three values:
- Environment ID - From CloudBase Console
- SecretId - From CAM API Key Management
- SecretKey - From CAM API Key Management
MCP Configuration Example
{
"mcpServers": {
"cloudbase-mcp": {
"command": "npx",
"args": ["@cloudbase/cloudbase-mcp@latest"],
"env": {
"TENCENTCLOUD_SECRETID": "your_secret_id_here",
"TENCENTCLOUD_SECRETKEY": "your_secret_key_here",
"CLOUDBASE_ENV_ID": "your_env_id_here"
}
}
}
}Verification
To verify everything is working:
Ask the agent: "List available MCP tools"
Should see CloudBase-related toolsTroubleshooting
MCP not showing up
- Verify mcporter.json syntax is valid JSON
- Check credentials are correct (no extra spaces)
- Restart the gateway after config changes
- Run
npx mcporter listto verify MCP servers
Skills not loading
- Check skills are in the correct directory
- Verify SYMLINKS are created correctly
- Restart the gateway after installing skills
Publishing (maintainers)
Publish to the official npm registry (not npmmirror). From this directory:
# Log in to npm (only once)
npm login --registry https://registry.npmjs.org
# Bump version if needed, then publish
npm version patch # or minor/major
npm publish --registry https://registry.npmjs.orgIf your shell uses npmmirror by default, npm publish without --registry will fail with ENEEDAUTH; always pass --registry https://registry.npmjs.org for publish.
Links
License
MIT
