Browser Login
Browser login + X/Twitter posting
手动登录(推荐)
当网站需要登录时,在 host browser profile(openclaw browser)中手动登录。
不要将你的 credentials 给 model。Automated logins 经常触发 anti-bot defenses 并可能锁定账户。
返回主 browser 文档:Browser。
使用哪个 Chrome profile?
OpenClaw 控制一个专用的 Chrome profile(名为 openclaw,橙色 UI)。这与你的日常 browser profile 是分开的。
两种简单的访问方式:
- 要求 agent 打开 browser 然后你自己登录。
- 通过 CLI 打开:
openclaw browser start
openclaw browser open https://x.com
如果你有多个 profiles,传递 --browser-profile <name>(默认是 openclaw)。
X/Twitter:推荐流程
- 阅读/搜索/threads: 使用 host browser(手动登录)。
- 发布更新: 使用 host browser(手动登录)。
Sandboxing + host browser access
Sandboxed browser sessions 更可能触发 bot detection。对于 X/Twitter(和其他 strict sites),优先使用 host browser。
如果 agent 是 sandboxed,browser tool 默认使用 sandbox。要允许 host control:
{
agents: {
defaults: {
sandbox: {
mode: "non-main",
browser: {
allowHostControl: true,
},
},
},
},
}
然后 targeting host browser:
openclaw browser open https://x.com --browser-profile openclaw --target host
或者为发布更新的 agent 禁用 sandboxing。