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