Deploy and Host Openclaw on Sealos
Openclaw is an AI agent gateway with multi-channel support including WhatsApp, Telegram, and Discord integration. This template deploys a production-ready Openclaw instance with persistent storage on Sealos Cloud.
About Hosting Openclaw
Openclaw runs as a single-node AI agent gateway service that provides a unified interface for deploying and managing AI agents across multiple messaging platforms. The Sealos template automatically provisions persistent storage for your agent configurations, workspace data, and WhatsApp session files, ensuring your data is safely stored and survives restarts.
The gateway architecture allows you to connect OpenAI-compatible AI models (like Claude, GPT-4, etc.) to popular messaging platforms including Telegram, Discord, WhatsApp, and Slack. The deployment includes automatic SSL certificate provisioning, domain management, and integrated monitoring through the Sealos dashboard.
Common Use Cases
- Multi-Platform AI Assistant: Deploy a single AI assistant across Telegram, Discord, WhatsApp, and Slack simultaneously
- Customer Support Automation: Build intelligent chatbots that handle customer inquiries across multiple channels
- Team Collaboration: Create AI-powered productivity bots for team communication platforms
- Community Management: Automate community moderation and engagement with AI agents
- Personal AI Assistant: Run your own personal AI assistant accessible from any messaging platform
Dependencies for Openclaw Hosting
The Sealos template includes all required dependencies: runtime environment, persistent storage volumes for configuration and workspace data.
Deployment Dependencies
Implementation Details
Architecture Components:
This template deploys the following services:
- Openclaw Gateway: Main AI agent gateway service running on port 18789
- Persistent Storage: Two persistent volumes are automatically provisioned:
- Configuration storage (1Gi): Stores agent configurations, model settings, and channel credentials
- Workspace storage (1Gi): Stores agent workspace data and generated files
Configuration:
The Openclaw gateway is configured through environment variables and a configuration file generated during initialization:
- Base URL: OpenAI-compatible API endpoint (default: Sealos AI Proxy)
- API Key: Authentication key for your AI model provider
- Model: Default AI model to use (e.g., claude-opus-4-6)
- Gateway Token: Authentication token for accessing the gateway control UI
- Channel Tokens: Optional tokens for Discord, Telegram, WhatsApp, and Slack
The control UI is enabled by default and accessible through the gateway URL with the gateway token parameter. The UI allows you to manage agents, configure channels, and monitor activity without modifying configuration files.
Channel Support:
- Telegram: Fully supported, enabled by default
- Discord: Add your Discord bot token to enable
- WhatsApp: Session data stored in persistent storage
- Slack: Configure with bot token and app token
License Information:
Openclaw is open-source software. Check the GitHub repository for specific licensing terms.
Why Deploy Openclaw on Sealos?
Sealos is an AI-assisted Cloud Operating System built on Kubernetes that unifies the entire application lifecycle, from development in cloud IDEs to production deployment and management. It is perfect for building and scaling modern AI applications, SaaS platforms, and complex microservice architectures. By deploying Openclaw on Sealos, you get:
- One-Click Deployment: Deploy Openclaw with a single click. No YAML configuration, no container orchestration complexity - just point, click, and deploy.
- Auto-Scaling Built-In: Your AI agents automatically scale up and down based on demand. Handle traffic spikes from multiple messaging platforms without manual intervention.
- Easy Customization: Configure AI models, API keys, and channel connections with intuitive forms. Customize your setup without touching a single line of code.
- Zero Kubernetes Expertise Required: Get all the benefits of Kubernetes - high availability, service discovery, and container orchestration - without becoming a Kubernetes expert.
- Persistent Storage Included: Built-in persistent storage solutions ensure your agent configurations, workspace data, and WhatsApp sessions are safe and accessible across deployments and scaling events.
- Instant Public Access: Each deployment gets an automatic public URL with SSL certificates. Share your AI agent gateway instantly without complex networking setup.
- Integrated AI Proxy: Seamlessly connect to Sealos AI Proxy for easy access to Claude, GPT-4, and other OpenAI-compatible models.
Deploy Openclaw on Sealos and focus on building intelligent AI agents instead of managing infrastructure.
Deployment Guide
- Open the OpenClaw template and click Deploy Now.
- Configure the parameters in the popup dialog:
- provider_kind: Select
openai_compat or anthropic_compat
- base_url: Compatible provider base URL (default:
https://aiproxy.usw-1.sealos.io/v1)
- api_key: Provider API key
- model: Default model ID (for example
claude-opus-4-6 or gpt-5.2)
- Wait for deployment to complete (typically 2-3 minutes). After deployment, you will be redirected to the Canvas. For later changes, describe your requirements in the AI dialog or click resource cards to modify settings.
- Access your application via the provided URLs:
- Control UI: Open the generated URL from App resources (includes token and
gatewayUrl query parameters)
- Gateway Endpoint: Use
https://<your-domain>/ as the OpenClaw gateway base endpoint
Configuration
After deployment, you can configure Openclaw through multiple methods:
Control UI
Access the control UI at:
https://[your-app-url]/?token=[gateway-token]
The gateway token is automatically generated and included in the App access URL shown on the Canvas App card after deployment. The UI provides a web-based interface for:
- Managing AI agents
- Configuring messaging channels (Telegram, Discord, WhatsApp, Slack)
- Monitoring agent activity
- Adjusting model settings
Environment Variables
Modify application settings after deployment through Canvas: use the AI dialog for intent-based changes, or open the StatefulSet resource card to edit environment variables directly:
- DISCORD_BOT_TOKEN: Your Discord bot token
- TELEGRAM_BOT_TOKEN: Your Telegram bot token
- SLACK_BOT_TOKEN: Your Slack bot token
- SLACK_APP_TOKEN: Your Slack app token (for socket mode)
Channel Setup
Each messaging platform requires specific setup:
Telegram:
- Create a bot via @BotFather on Telegram
- Copy the bot token
- Add the token to the TELEGRAM_BOT_TOKEN environment variable via Canvas resource card or via the control UI
- Start a conversation with your bot
Discord:
- Create a Discord application at Discord Developer Portal
- Create a bot user and copy the token
- Add the token to the DISCORD_BOT_TOKEN environment variable via Canvas resource card or via the control UI
- Invite the bot to your server
WhatsApp:
- WhatsApp session data is stored in persistent storage at
/home/node/.openclaw/whatsapp
- Follow the WhatsApp Web QR code authentication process through the control UI
- Session data persists across container restarts
Slack:
- Create a Slack app at Slack API
- Enable bot scopes and install the app to your workspace
- Add bot token and app token (for socket mode) via environment variables or control UI
Scaling
To scale your Openclaw deployment:
- Open the Canvas for your Openclaw deployment
- Open the StatefulSet resource card
- Adjust CPU/Memory resources:
- Minimum: 100m CPU, 256Mi memory
- Maximum: 1000m CPU, 2Gi memory
- Increase replica count if needed (currently set to 1)
- Apply the changes in the dialog
Note: Openclaw uses StatefulSet for deployment. For production use with high traffic, consider deploying multiple instances behind a load balancer.
Troubleshooting
Common Issues
Issue: Agents not responding on messaging platforms
- Cause: Missing or incorrect bot tokens for the platform
- Solution: Verify that the correct bot token is configured in environment variables or via the control UI
Issue: AI model errors
- Cause: Invalid API key, incorrect base URL, or model name
- Solution: Check that your API key is valid, the base URL is correct, and the model ID is supported by your provider
Issue: WhatsApp session lost after restart
- Cause: Session data not persisted properly
- Solution: The template includes persistent storage for WhatsApp sessions. Ensure the storage volume is mounted correctly
Issue: Cannot access control UI
- Cause: Incorrect gateway token or URL
- Solution: Use the App URL from the Canvas App card (it already includes token parameters), or append
?token=[gateway-token] to your gateway URL manually
Getting Help
Additional Resources
License
This Sealos template is provided under the same license as Openclaw. Please refer to the Openclaw GitHub repository for specific licensing terms.