| name | openclaw-installer-deployment |
| description | Deploy and configure OpenClaw AI assistant with multi-model support and messaging channel integrations |
| triggers | ["install openclaw ai assistant","deploy openclaw bot","configure openclaw with anthropic claude","set up openclaw telegram bot","openclaw multi-channel configuration","troubleshoot openclaw installation","manage openclaw gateway service","configure openclaw with custom api"] |
OpenClaw Installer & Deployment
Skill by ara.so — Hermes Skills collection.
OpenClaw is a private AI assistant deployment tool supporting multiple AI models (Claude, GPT, Gemini, etc.) and messaging platforms (Telegram, Discord, WhatsApp, Slack, WeChat, iMessage, Feishu). This skill covers installation, configuration, service management, and troubleshooting.
What OpenClaw Does
- Multi-Model AI: Supports Anthropic Claude, OpenAI GPT, Google Gemini, OpenRouter, Groq, Mistral AI, and Ollama
- Multi-Channel: Integrates with Telegram, Discord, WhatsApp, Slack, WeChat, iMessage (macOS), and Feishu
- Persistent Memory: Cross-conversation, cross-platform long-term memory
- Proactive Features: Scheduled reminders, morning briefings, alerts
- Custom Skills: Define capabilities via Markdown files
- Remote Control: Execute system commands, file operations, web browsing
Installation
One-Line Install (Recommended)
curl -fsSL https://raw.githubusercontent.com/miaoxworld/OpenClawInstaller/main/install.sh | bash
The installer automatically:
- Detects OS and installs dependencies (Node.js v22+)
- Installs OpenClaw globally via npm
- Guides core configuration (AI model, identity)
- Tests API connections
- Auto-starts OpenClaw gateway service
- Optional: Opens configuration menu for channels
Manual Installation
git clone https://github.com/miaoxworld/OpenClawInstaller.git
cd OpenClawInstaller
chmod +x install.sh config-menu.sh
./install.sh
npm install -g openclaw
Desktop Manager (Alternative)
For GUI-based management, use OpenClaw Manager (Tauri 2.0 + React + TypeScript + Rust):
System Requirements
- OS: macOS 12+ / Ubuntu 20.04+ / Debian 11+ / CentOS 8+
- Node.js: v22 or higher
- Memory: Minimum 2GB, recommended 4GB+
- Disk: Minimum 1GB
Configuration
Directory Structure
~/.openclaw/
├── openclaw.json # Core configuration (auto-managed)
├── env # Environment variables (API keys)
├── config-menu.sh # Interactive configuration script
├── backups/ # Config backups
└── logs/ # Log files
Environment Variables (~/.openclaw/env)
export ANTHROPIC_API_KEY=sk-ant-xxxxx
export ANTHROPIC_BASE_URL=https://custom-api.example.com
export OPENAI_API_KEY=sk-xxxxx
export OPENAI_BASE_URL=https://custom-api.example.com/v1
export GEMINI_API_KEY=xxxxx
export OPENROUTER_API_KEY=sk-or-xxxxx
export TELEGRAM_BOT_TOKEN=123456:ABC-DEF...
export TELEGRAM_USER_ID=123456789
export DISCORD_BOT_TOKEN=xxxxx
export DISCORD_CHANNEL_ID=123456789
export FEISHU_APP_ID=cli_xxxxx
export FEISHU_APP_SECRET=xxxxx
Interactive Configuration Menu
bash ~/.openclaw/config-menu.sh
curl -fsSL https://raw.githubusercontent.com/miaoxworld/OpenClawInstaller/main/config-menu.sh | bash
Menu options:
- User Identity: Name, timezone, language preferences
- AI Model: Configure provider (Anthropic, OpenAI, Gemini, etc.)
- Message Channels: Telegram, Discord, WhatsApp, Feishu, etc.
- Quick Tests: API connectivity, channel verification
- Advanced: Backup/restore, view config, diagnostics
AI Model Configuration
Anthropic Claude (with Custom API Support)
Environment setup:
export ANTHROPIC_API_KEY=sk-ant-xxxxx
export ANTHROPIC_BASE_URL=https://your-oneapi-proxy.com
Config file (~/.openclaw/openclaw.json):
{
"models": {
"providers": {
"anthropic-custom": {
"baseUrl": "https://your-oneapi-proxy.com",
"apiKey": "${ANTHROPIC_API_KEY}",
"models": [
{
"id": "claude-sonnet-4-5-20250929",
"name": "claude-sonnet-4-5-20250929",
"api": "anthropic-messages",
"input": ["text"],
"contextWindow": 200000,
"maxTokens": 8192
}
]
}
}
}
}
OpenAI GPT (with Custom API Support)
Important: Custom API must support OpenAI Responses API (v1/responses), not just Chat Completions API.
export OPENAI_API_KEY=sk-xxxxx
export OPENAI_BASE_URL=https://your-api-proxy.com/v1
Ollama (Local Deployment)
curl -fsSL https://ollama.com/install.sh | sh
ollama pull llama3
Channel Configuration
Telegram Bot
export TELEGRAM_BOT_TOKEN=123456:ABC-DEF...
export TELEGRAM_USER_ID=123456789
Discord Bot
export DISCORD_BOT_TOKEN=xxxxx
export DISCORD_CHANNEL_ID=123456789
Feishu (Lark) Bot
export FEISHU_APP_ID=cli_xxxxx
export FEISHU_APP_SECRET=xxxxx
Full guide: docs/feishu-setup.md
WhatsApp (QR Code Login)
Service Management
Core Commands
openclaw gateway start
openclaw gateway stop
openclaw gateway restart
openclaw gateway status
source ~/.openclaw/env && openclaw gateway
openclaw logs
openclaw logs --follow
Configuration Commands
openclaw config
openclaw onboard
openclaw doctor
openclaw health
Data Management
openclaw export --format json
openclaw memory clear
openclaw backup
Common Patterns
Post-Install Startup
source ~/.openclaw/env
openclaw gateway start
openclaw gateway status
Adding a New AI Model
bash ~/.openclaw/config-menu.sh
openclaw gateway restart
Adding a New Channel
bash ~/.openclaw/config-menu.sh
openclaw gateway restart
Testing API Connection
bash ~/.openclaw/config-menu.sh
openclaw health
Switching AI Models
nano ~/.openclaw/env
export ANTHROPIC_API_KEY=new-key
export ANTHROPIC_BASE_URL=https://new-proxy.com
openclaw models set anthropic-custom claude-sonnet-4-5-20250929
openclaw gateway restart
Troubleshooting
Installation Issues
node --version
curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.39.0/install.sh | bash
source ~/.bashrc
nvm install 22
nvm use 22
npm install -g openclaw
Gateway Won't Start
openclaw gateway status
openclaw gateway stop
lsof -i :3000
kill -9 <PID>
openclaw doctor
source ~/.openclaw/env
openclaw gateway
API Connection Failures
source ~/.openclaw/env
env | grep ANTHROPIC
curl -H "x-api-key: $ANTHROPIC_API_KEY" \
-H "anthropic-version: 2023-06-01" \
-H "content-type: application/json" \
-d '{"model":"claude-sonnet-4-5-20250929","max_tokens":1024,"messages":[{"role":"user","content":"Hi"}]}' \
${ANTHROPIC_BASE_URL:-https://api.anthropic.com}/v1/messages
openclaw doctor
Channel Not Responding
curl https://api.telegram.org/bot${TELEGRAM_BOT_TOKEN}/getMe
openclaw logs --follow
WhatsApp QR Code Not Showing
openclaw gateway restart
Custom API Proxy Issues
curl -H "Authorization: Bearer $OPENAI_API_KEY" \
${OPENAI_BASE_URL}/responses
Configuration Reset
openclaw backup
rm -rf ~/.openclaw/openclaw.json ~/.openclaw/env
openclaw onboard
curl -fsSL https://raw.githubusercontent.com/miaoxworld/OpenClawInstaller/main/config-menu.sh | bash
Memory/Performance Issues
openclaw health
openclaw memory clear
openclaw gateway restart
export NODE_OPTIONS="--max-old-space-size=4096"
openclaw gateway start
Real-World Examples
Complete Setup Flow
curl -fsSL https://raw.githubusercontent.com/miaoxworld/OpenClawInstaller/main/install.sh | bash
bash ~/.openclaw/config-menu.sh
openclaw gateway start
Multi-Channel Setup
source ~/.openclaw/env
export TELEGRAM_BOT_TOKEN=xxxxx
export TELEGRAM_USER_ID=xxxxx
export DISCORD_BOT_TOKEN=xxxxx
export DISCORD_CHANNEL_ID=xxxxx
export FEISHU_APP_ID=cli_xxxxx
export FEISHU_APP_SECRET=xxxxx
openclaw gateway restart
Custom Skills Definition
OpenClaw supports custom skills via Markdown files. Example structure:
# Custom Skill: Weather Check
Trigger phrases:
- "what's the weather"
- "check weather"
Actions:
1. Call weather API
2. Format response
3. Send to user
Skills are typically stored in ~/.openclaw/skills/ (check OpenClaw documentation for exact format).
Key Takeaways
- Use the installer script for automatic environment setup
- Configure via menu (
config-menu.sh) for interactive guided setup
- Load environment (
source ~/.openclaw/env) before manual commands
- Custom APIs: Anthropic/OpenAI support custom base URLs (OneAPI, NewAPI, etc.)
- OpenAI proxies: Must support
v1/responses endpoint (Responses API)
- Feishu: Use long connection mode (no webhook needed)
- WhatsApp: Only one Web session allowed per account
- Service management: Use
openclaw gateway start/stop/restart/status
- Troubleshooting: Run
openclaw doctor for diagnostics
- Multi-channel: All channels share the same AI backend and memory
For latest updates and issues: https://github.com/miaoxworld/OpenClawInstaller