
This is an AI agent service based on OpenClaw, integrating multiple AI tools and models, supporting unified management through a gateway.
data directory structure is complete:
data/ ├── openclaw/ ├── .qwen/ ├── .gemini/ └── workspace/
bashdocker compose up -d
Proxy Server Configuration
Proxy server configured in docker-compose.yml:
yamlenvironment: - HTTP_PROXY=http://proxy-server:port - HTTPS_PROXY=http://proxy-server:port - http_proxy=http://proxy-server:port - https_proxy=http://proxy-server:port
Complete docker-compose.yml example:
yamlservices: agent: build: context: . dockerfile: Dockerfile args: - HTTP_PROXY=http://proxy-server:port - HTTPS_PROXY=http://proxy-server:port - http_proxy=http://proxy-server:port - https_proxy=http://proxy-server:port container_name: agent ports: - "18789:18789" volumes: - ./data/openclaw:/home/agent/.openclaw - ./data/.qwen:/home/agent/.qwen - ./data/.gemini:/home/agent/.gemini - ./data/workspace:/home/agent/workspace environment: - NODE_ENV=production - PYTHONPATH=/home/agent - TZ=Asia/Shanghai - HTTP_PROXY=http://proxy-server:port - HTTPS_PROXY=http://proxy-server:port - http_proxy=http://proxy-server:port - https_proxy=http://proxy-server:port - OPENCLAW_GATEWAY_TOKEN=your_gateway_token_here command: ["openclaw","gateway","run", "--verbose"] networks: - ai-agent-network restart: unless-stopped healthcheck: test: ["CMD", "curl", "-f", "http://localhost:18789/"] interval: 30s timeout: 10s retries: 3 start_period: 40s volumes: agent-data: driver: local networks: ai-agent-network: driver: bridge
Gateway Authentication Configuration
Set the same gateway token in the following two configuration files:
data/openclaw/config.yamldata/openclaw/openclaw.jsonIt is critical that the tokens in both files match exactly. If the tokens are inconsistent, the OpenClaw gateway will fail to start properly and you will encounter "gateway token mismatch" errors, preventing proper communication between gateway components. This mismatch will cause the service to be unavailable.
NODE_ENV: Runtime environment (production)PYTHONPATH: Python module search pathTZ: Timezone setting (Asia/Shanghai)OPENCLAW_GATEWAY_TOKEN: Gateway authentication token - This is critical for securing your OpenClaw gateway. Without this token, unauthorized clients could connect to your gateway. If not set correctly, you may encounter "gateway token mismatch" errors, preventing proper communication between gateway components.Enter the container to check service status:
bashdocker compose exec agent openclaw status
View service logs:
bashdocker compose logs -f
Gateway Token Mismatch Error
gateway.auth.token and gateway.remote.token in both config.yaml and openclaw.json are set to the same valueProxy Connection Issues
Permission Issues
/home/agent/.openclaw directorychmod 700 /home/agent/.openclawbashdocker compose down && docker compose up -d
Regularly check and update OpenClaw version:
bashopenclaw update
Regularly backup the data directory to preserve configurations and data.
The service includes integrated support for *** bot communication. To configure *** integration:
data/openclaw/openclaw.json file with your bot token:
json{ "channels": { "telegram": { "enabled": true, "dmPolicy": "pairing", "botToken": "YOUR_BOT_TOKEN_HERE", "groupPolicy": "allowlist", "streamMode": "partial", "proxy": "http://proxy-server:port" } } }
bashopenclaw config set channels.telegram.botToken YOUR_BOT_TOKEN_HERE
Note: The bot token in the default configuration is a placeholder. Replace it with your actual bot token for *** functionality to work properly.




探索更多轩辕镜像的使用方法,找到最适合您系统的配置方式
通过 Docker 登录认证访问私有仓库
无需登录使用专属域名
Kubernetes 集群配置 Containerd
K3s 轻量级 Kubernetes 镜像加速
VS Code Dev Containers 配置
Podman 容器引擎配置
HPC 科学计算容器配置
ghcr、Quay、nvcr 等镜像仓库
Harbor Proxy Repository 对接专属域名
Portainer Registries 加速拉取
Nexus3 Docker Proxy 内网缓存
需要其他帮助?请查看我们的 常见问题Docker 镜像访问常见问题解答 或 提交工单
manifest unknown
no matching manifest(架构)
invalid tar header(解压)
TLS 证书失败
DNS 超时
410 Gone 排查
402 与流量用尽
401 认证失败
429 限流
D-Bus 凭证提示
413 与超大单层
来自真实用户的反馈,见证轩辕镜像的优质服务