Optimized Docker deployment for OpenClaw with Moonshot AI (Kimi) support. Ideal for local development, web automation, and remote-safe access.
OpenClaw operates with several key services exposed on your host:
- Dashboard / Control UI (Port 18789): The main interface for chat and agent management.
- CDP Relay / Browser Control (Port 18791): The interface for agents to pilot the underlying browser.
- Gateway (WebSocket): Handles core agent communication and skill execution.
- Clone & Setup:
git clone https://github.com/Ayoub-BOUCHACHIA/openclaw cd openclaw make setup - Configure: Edit
.envand add yourMOONSHOT_API_KEY. - Run:
make run - Access: http://localhost:18789
We provide pre-optimized templates for different use cases. To use one, copy it to openclaw_data/openclaw.json:
| Profile | File | Description |
|---|---|---|
| Dev / Debug | openclaw.json.kimi-dev.template |
Full power, native command execution enabled (Kimi). |
| Chat Assistant | openclaw.json.kimi-chat.template |
Safe, general-purpose chat focus (Kimi). |
| Browser Runner | openclaw.json.kimi-browser.template |
Optimized for web research (Kimi). |
| OpenRouter | openclaw.json.openrouter.template |
Multi-model support via OpenRouter (Gemini, etc.). |
| Gemini (Free) | openclaw.json.gemini.template |
Cost-free testing using Google AI Studio. |
- Goal: A fast, reliable personal chat assistant.
- Steps: Lancer
make run, copierkimi-chattemplate, and start chatting. - Try it: "Aide-moi à organiser ma journée" or "Explique-moi la relativité".
- Goal: An agent that browses the web to find specific information.
- Steps: Lancer
make run, copierkimi-browsertemplate. - Try it: "Trouve les 5 derniers articles sur l'IA générative et fais-moi un résumé".
| Feature | Development (Host Mode) | Production (Remote/Safe) |
|---|---|---|
| Deployment | make run |
make run-remote |
| Network | network_mode: host |
bridge |
| SSL | Insecure (Bypassed) | Secure (Mandatory) |
| Auth | Bypassed | Enabled |
Caution
Safety First: Never expose port 18789 directly to the internet. We recommend using a Cloudflare Tunnel or Localtonet for secure remote access.
make setup: Initialize environment and data folders.make run: Run in development (host) mode.make run-remote: Run in bridge (port-mapping) mode.make shell: Open a bash shell inside the container.make backup: Create a timestamped backup of your data.make update: Pull latest images and restart.
Contributions are welcome! Please see CONTRIBUTING.md and SECURITY.md for more details.
Created with ❤️ for the OpenClaw community.