
moltbot/moltbotThis guide covers running Moltbot using Docker containers for both the gateway service and CLI operations.
openssl for generating secure tokensGenerate a ***graphically secure token for gateway authentication:
bashexport CLAWDBOT_GATEWAY_TOKEN="$(openssl rand -hex 32)"
Important: Store this token securely. You'll need it for all gateway operations and client connections.
Start the Moltbot gateway with the following command:
bashdocker run --rm \ --name moltbot \ -p ***:*** \ -p ***:*** \ -e CLAWDBOT_GATEWAY_TOKEN="${CLAWDBOT_GATEWAY_TOKEN}" \ -v clawdbot_config:/home/node/.clawdbot \ -v clawdbot_workspace:/home/node/clawd \ moltbot/moltbot:latest
Port Mappings:
***: Gateway API (HTTP/WebSocket)***: Gateway control planeVolume Mounts:
clawdbot_config: Persistent configuration and credentialsclawdbot_workspace: Agent workspace and session dataFor first-time setup, run the interactive onboarding:
bashdocker run -it --rm \ --name moltbot-cli \ -v clawdbot_config:/home/node/.clawdbot \ moltbot/moltbot:latest onboard
For production deployments, run the gateway as a background service:
bashdocker run -d \ --name moltbot-gateway \ --restart unless-stopped \ -p ***:*** \ -p ***:*** \ -e CLAWDBOT_GATEWAY_TOKEN="${CLAWDBOT_GATEWAY_TOKEN}" \ -v clawdbot_config:/home/node/.clawdbot \ -v clawdbot_workspace:/home/node/clawd \ moltbot/moltbot:latest # View logs docker logs -f moltbot-gateway # Stop the gateway docker stop moltbot-gateway # Remove the container docker rm moltbot-gateway
Create a docker-compose.yml file for easier management:
yamlversion: '3.8' services: moltbot: image: moltbot/moltbot:latest container_name: moltbot-gateway restart: unless-stopped ports: - "***:***" - "***:***" environment: - CLAWDBOT_GATEWAY_TOKEN=${CLAWDBOT_GATEWAY_TOKEN} volumes: - clawdbot_config:/home/node/.clawdbot - clawdbot_workspace:/home/node/clawd volumes: clawdbot_config: clawdbot_workspace:
Start with:
bashdocker compose up -d
## CLI Operations Run any Moltbot CLI command using Docker: ```bash # Check gateway status docker run --rm -it \ -v clawdbot_config:/home/node/.clawdbot \ moltbot/moltbot:latest channels status # Send a message docker run --rm -it \ -v clawdbot_config:/home/node/.clawdbot \ moltbot/moltbot:latest message send --channel *** --to USER_ID "Hello from Docker"






manifest unknown 错误
TLS 证书验证失败
DNS 解析超时
410 错误:版本过低
402 错误:流量耗尽
身份认证失败错误
429 限流错误
凭证保存错误
来自真实用户的反馈,见证轩辕镜像的优质服务