# openclawCliChat **Repository Path**: ereddate2017/openclaw-cli-chat ## Basic Information - **Project Name**: openclawCliChat - **Description**: openclaw一键部署工具 - **Primary Language**: Unknown - **License**: MIT - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2026-03-07 - **Last Updated**: 2026-03-07 ## Categories & Tags **Categories**: Uncategorized **Tags**: openclaw ## README # OpenClaw Deploy OpenClaw One-Click Deployment Tool - Automated setup for OpenClaw with support for domestic/international LLMs and 7*24 operation. ## Features - 🚀 One-click deployment script - 🌐 Support for domestic and international large models - 🛠️ Support for local models (Ollama, vLLM) - ⚡ 7*24 gateway service - 📦 Easy skill management with ClawHub ## Prerequisites - Node.js 22 or higher - pnpm package manager - Git ## Quick Start ### Windows ```powershell # Navigate to the script directory cd E:\work\202603051726\openclaw-cli-chat # Run the deployment script .\deploy-openclaw-auto.ps1 ``` ### Linux/macOS ```bash # Navigate to the script directory cd /path/to/openclaw-cli-chat # Make the script executable chmod +x deploy-openclaw.sh # Run the deployment script ./deploy-openclaw.sh ``` ## Deployment Scripts ### PowerShell (Recommended for Windows) - **[deploy-openclaw-auto.ps1](./deploy-openclaw-auto.ps1)** - Fully automated deployment (no user interaction) - **[deploy-openclaw.bat](./deploy-openclaw.bat)** - Interactive deployment - **[deploy-openclaw-auto.bat](./deploy-openclaw-auto.bat)** - Automated deployment (batch version) ### Bash (Linux/macOS) - **[deploy-openclaw.sh](./deploy-openclaw.sh)** - Automated deployment ## Supported Model Providers ### Domestic Large Models 1. **Alibaba Cloud DashScope (Qwen)** - Qwen-Max, Qwen-Plus, Qwen-VL-Max 2. **Baidu Qianfan** - ERNIE-Bot, DeepSeek 3. **ByteDance Doubao** - Doubao-1.5, Doubao-VL 4. **Volcengine** - Spark, ChatPro ### International Large Models 5. **OpenAI** - GPT-4, GPT-3.5-Turbo ### Local Models 6. **Ollama** - Llama, Qwen, Mistral (local) 7. **vLLM** - High-performance local model service ## 7*24 Operation ### Windows Service (Recommended) ```batch # Install NSSM (Non-Sucking Service Manager) # Download: https://nssm.cc/download # Extract to: C:\Program Files\nssm\ # Install OpenClaw service cd E:\work\202603051726\openclaw-cli-chat setup-openclaw-service.bat # Start service nssm start openclaw-gateway # Stop service nssm stop openclaw-gateway # Restart service nssm restart openclaw-gateway ``` ### Linux systemd See [README-724.md](./README-724.md) for detailed instructions. ## Usage After deployment, you can use the following commands: ```bash # Run CLI chat pnpm openclaw tui # Send message pnpm openclaw message send --to +1234567890 --message "Hello" # Run agent pnpm openclaw agent --message "your message" ``` ## Directory Structure ``` openclaw-cli-chat/ ├── openclaw/ # OpenClaw core code (auto-cloned) │ ├── src/ │ ├── dist/ │ └── package.json ├── skills/ # Social APP integration skills │ ├── dingtalk/ # DingTalk integration │ ├── wecom/ # WeChat Work integration │ ├── feishu/ # Feishu integration │ └── wechat/ # WeChat integration ├── deploy-openclaw.bat ├── deploy-openclaw-auto.ps1 ├── deploy-openclaw-auto.bat ├── setup-openclaw-service.bat ├── openclaw-daemon.sh ├── config-template.json # Configuration template ├── DEPLOY.md ├── README-724.md └── package.json ``` ## Configuration ### Set API Keys #### Method 1: Environment Variables ```powershell # Windows PowerShell $env:DASHSCOPE_API_KEY='your-api-key' $env:QIANFAN_API_KEY='your-api-key' $env:DOUBAO_API_KEY='your-api-key' $env:VOLCENGINE_API_KEY='your-api-key' $env:OPENAI_API_KEY='your-api-key' ``` #### Method 2: Manual Configuration ```bash # Configure Alibaba Cloud DashScope pnpm openclaw config set models.providers.dashscope.apiKey 'your-api-key' # Configure Baidu Qianfan pnpm openclaw config set models.providers.qianfan.apiKey 'your-api-key' # Configure ByteDance Doubao pnpm openclaw config set models.providers.doubao.apiKey 'your-api-key' # Configure Volcengine pnpm openclaw config set models.providers.volcengine.apiKey 'your-api-key' # Configure OpenAI pnpm openclaw config set models.providers.openai.apiKey 'your-api-key' ``` ### One-Click Deployment Auto-Copy Skills When using the one-click deployment script, the system will automatically: 1. **Detect environment variables**: Check if social app related environment variables are set 2. **Auto-copy skills**: When environment variables are detected, automatically copy corresponding skills to `openclaw/skills/` directory 3. **Supported skills**: - DingTalk: When `DINGTALK_WEBHOOK` is set - WeChat Work: When `WECOM_CORP_ID`, `WECOM_SECRET`, `WECOM_AGENT_ID` are set - Feishu: When `FEISHU_APP_ID`, `FEISHU_APP_SECRET` are set - WeChat: When `WECHAT_WEBHOOK` is set ### Set Up Social Apps #### DingTalk ```powershell # Set DingTalk webhook $env:DINGTALK_WEBHOOK='https://oapi.dingtalk.com/robot/send?access_token=xxx' ``` #### WeChat Work ```powershell # Set WeChat Work credentials $env:WECOM_CORP_ID='wwxxxxxxxx' $env:WECOM_SECRET='xxxxxxxx' $env:WECOM_AGENT_ID=123456 ``` #### Feishu ```powershell # Set Feishu credentials $env:FEISHU_APP_ID='cli_xxxxxxxxx' $env:FEISHU_APP_SECRET='xxxxxxxx' ``` #### WeChat ```powershell # Set WeChat webhook $env:WECHAT_WEBHOOK='https://qyapi.weixin.qq.com/cgi-bin/webhook/send?key=xxx' ``` ### Using Social Apps After configuration, you can send messages to various social platforms through OpenClaw: ```bash # Send to DingTalk pnpm openclaw skill dingtalk send --message "Hello from OpenClaw" # Send to WeChat Work pnpm openclaw skill wecom send --user "userId" --message "Hello from OpenClaw" # Send to Feishu pnpm openclaw skill feishu send --user "userId" --message "Hello from OpenClaw" # Send to WeChat pnpm openclaw skill wechat send --message "Hello from OpenClaw" ``` ## Troubleshooting ### Gateway Not Connecting If you see "not connected to gateway" error: ```bash # Check if gateway is running netstat -ano | findstr :18789 # Start gateway manually cd openclaw pnpm openclaw gateway run --port 18789 --verbose ``` ### Deployment Failed Check the log file for errors: ```bash # PowerShell script log type C:\Temp\openclaw-gateway.log # Batch script log type C:\Temp\openclaw-gateway.log ``` ## License This project is licensed under the MIT License - see the [LICENSE](LICENSE) file for details. Copyright (c) 2026 ereddate ## Repository - Gitee: https://gitee.com/ereddate2017/openclaw-cli-chat ## Contributing Contributions are welcome! Please submit issues and pull requests to the Gitee repository. ## Support - OpenClaw Documentation: https://docs.openclaw.ai - OpenClaw GitHub: https://github.com/openclaw/openclaw - This Project Gitee: https://gitee.com/ereddate2017/openclaw-cli-chat