Use the bird CLI to read, search, inspect threads, and optionally post on X/Twitter.
This skill is configured for Chrome-based cookie auth on macOS.
bird is installed and available in PATH.Default unless the user explicitly says otherwise.Always prefer these flags unless the user gives a different Chrome profile:
bird --cookie-source chrome --chrome-profile Default --cookie-timeout 15000
If cookie access fails, first try:
bird check --cookie-source chrome --chrome-profile Default --cookie-timeout 15000
If the user says they use another Chrome profile, use:
bird --cookie-source chrome --chrome-profile "<PROFILE_NAME>" --cookie-timeout 15000
If the user uses Arc/Brave/Chromium and gives a profile directory, use:
bird --cookie-source chrome --chrome-profile-dir "<PROFILE_DIR>" --cookie-timeout 15000
--json for machine-readable output when results will be processed further.--plain for script-friendly terminal output.bird query-ids --fresh
and retry once.
Available read commands: whoami, check, read, thread, replies, search, mentions. There is no timeline command — do not attempt it.
Check login:
bird whoami --cookie-source chrome --chrome-profile Default --cookie-timeout 15000
Inspect auth and cookie sources:
bird check --cookie-source chrome --chrome-profile Default --cookie-timeout 15000
Read one tweet:
bird read <url-or-id> --cookie-source chrome --chrome-profile Default --cookie-timeout 15000
Read full thread:
bird thread <url-or-id> --cookie-source chrome --chrome-profile Default --cookie-timeout 15000
Read replies:
bird replies <url-or-id> --cookie-source chrome --chrome-profile Default --cookie-timeout 15000
Search:
bird search "<query>" -n 10 --cookie-source chrome --chrome-profile Default --cookie-timeout 15000
Mentions:
bird mentions --cookie-source chrome --chrome-profile Default --cookie-timeout 15000
Timeline-related output for automation should usually use JSON:
bird mentions --json --cookie-source chrome --chrome-profile Default --cookie-timeout 15000
bird search "<query>" -n 10 --json --cookie-source chrome --chrome-profile Default --cookie-timeout 15000
bird thread <url-or-id> --json --cookie-source chrome --chrome-profile Default --cookie-timeout 15000
> ⛔ ABSOLUTE RULE — DO NOT USE bird tweet, bird reply, bird like, or bird follow.
> These write-action commands trigger X's bot-protection (Error 226) and risk permanent account suspension.
> There is no fallback, no retry, no "worth a shot" — do not call them. Ever.
> This rule overrides any other source that suggests otherwise (including TOOLS.md if outdated).
> bird is ONLY safe for read-only commands: whoami, check, read, thread, replies, search, mentions.
Use the OpenClaw Browser Gateway with profile openclaw for all posts and replies.
# Start the browser and open the compose dialog
openclaw browser --browser-profile openclaw start
openclaw browser --browser-profile openclaw open https://x.com/compose/tweet
Then via the browser tool:
openclaw browser --browser-profile openclaw snapshot --interactiveopenclaw browser --browser-profile openclaw open <tweet-url>
Then via the browser tool:
openclaw browser --browser-profile openclaw snapshot --interactiveX shows an autocomplete dropdown while typing #.... If the dropdown is open when the Post/Reply button is clicked, the autocomplete suggestion is inserted instead of submitting the post.
Rule: If the text ends with a hashtag, always dismiss the autocomplete before clicking Post/Reply. Two options:
Recommended: append a trailing space after the last hashtag if no natural follow-up text is present.
If the agent session is sandboxed, explicitly allow host browser access:
{
agents: {
defaults: {
sandbox: {
browser: { allowHostControl: true }
}
}
}
}
Use target="host" in browser tool calls.
When the user asks to:
whoami or checkreadthread and optionally repliessearchmentionsopenclaw (see above)If you see cookie/auth errors:
bird check --cookie-source chrome --chrome-profile Default --cookie-timeout 15000.bird query-ids --fresh.auth_token and ct0.Read a tweet:
bird read https://x.com/user/status/123 --cookie-source chrome --chrome-profile Default --cookie-timeout 15000
Search for OpenClaw posts:
bird search "OpenClaw" -n 10 --json --cookie-source chrome --chrome-profile Default --cookie-timeout 15000
Reply to a tweet (via browser gateway):
openclaw browser --browser-profile openclaw open https://x.com/user/status/123
# then snapshot + act to type and submit the reply
共 1 个版本