工具 & 技能 • 5 分钟阅读
浏览器登录
浏览器自动化的手动登录 + X/Twitter 发布
Tutorial.step
手动登录(推荐)
当网站需要登录时,在主机浏览器配置文件(openclaw browser)中手动登录。
不要将您的凭据提供给模型。自动登录通常会触发反机器人防御,并可能导致账户被锁定。
返回主浏览器文档:''浏览器''。
Tutorial.step
使用哪个 Chrome 配置文件?
OpenClaw 控制一个''专用 Chrome 配置文件''(名为 ''openclaw'',橙色主题 UI)。这与您的日常浏览器配置文件分开。
两种简单的访问方式:
1. 让代理打开浏览器,然后您自己登录。
2. 通过 CLI 打开:
Bash
openclaw browser start openclaw browser open https://x.com
如果您有多个配置文件,请传递 ''--browser-profile <name>''(默认为 ''openclaw'')。
Tutorial.step
X/Twitter:推荐流程
- 阅读/搜索/话题:使用 bird CLI 技能(无浏览器,稳定)。
- 仓库:https://github.com/steipete/bird
- 发布更新:使用主机浏览器(手动登录)。
Tutorial.step
沙盒 + 主机浏览器访问
沙盒浏览器会话更有可能触发机器人检测。对于 X/Twitter(和其他严格的网站),优先使用主机浏览器。
如果代理是沙盒化的,浏览器工具默认为沙盒。要允许主机控制:
Json5
{
agents: {
defaults: {
sandbox: {
mode: "non-main",
browser: {
allowHostControl: true,
},
},
},
},
}然后针对主机浏览器:
Bash
openclaw browser open https://x.com --browser-profile openclaw --target host
或者为发布更新的代理禁用沙盒。