519 字
3 分钟
浅探 Openclaw
写在前面
安装
安装 openclaw
# Linuxcurl -fsSL https://openclaw.ai/install.sh | bash# Windowsiwr -useb https://openclaw.ai/install.ps1 | iex选择对应的后端 LLM 接入,启用需要的 skills 即可。或者也可以跳过该步骤,后续手动修改。
反向代理
server { listen 80; server_name your_domain; # 替换域名
return 301 https://$host$request_uri;}
server { listen 443 ssl; server_name your_domain; # 替换域名
ssl_certificate /path/to/your/fullchain.pem; # 证书文件 ssl_certificate_key /path/to/your/privkey.pem; # 私钥文件
ssl_protocols TLSv1.2 TLSv1.3; ssl_ciphers HIGH:!aNULL:!MD5; ssl_prefer_server_ciphers on;
location / { # 代理到 OpenClaw 本地端口 proxy_pass http://127.0.0.1:18789;
# 传递客户端真实 IP 与协议等基础头信息 proxy_set_header Host $host; proxy_set_header X-Real-IP $remote_addr; proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; proxy_set_header X-Forwarded-Proto $scheme;
# 启用 WebSocket 支持 proxy_set_header Upgrade $http_upgrade; proxy_set_header Connection "upgrade"; proxy_http_version 1.1;
# 延长超时时间 proxy_read_timeout 86400; proxy_send_timeout 86400; }}接入 QQ
openclaw plugins install @sliverp/qqbot@latestopenclaw channels add --channel qqbot --token "ID:Secret"openclaw restart gatewayFAQ
关于自启动
在 Windows 平台下,openclaw 的自启动是写在 任务计划程序 里的,在任何用户登录时,启动脚本 C:\Users\<user>\.openclaw\gateway.cmd
分享文章
生成精美分享图或复制链接,与更多人分享本文。
继续阅读
换条路线
从其他文章中稳定抽取
最后更新于 ,距今已过 182 天
部分内容可能已过时