Bird
jiulingyun/openclaw-cn/skills/bird/SKILL.md
通过cookie进行读取、搜索、发布和互动的X/Twitter命令行工具。
Skill4.7k starsChanged 9 months ago
- Installs packages
What's in it
- bird 🐦
- Install
- Authentication
- Commands
- Account & Auth
- Reading Tweets
- Timelines
- Search
- News & Trending
- Lists
- Bookmarks & Likes
- Social Graph
- Engagement Actions
- Posting
- Media Uploads
- Pagination
- Output Options
- Global Options
- Config File
- Troubleshooting
- Query IDs stale (404 errors)
- Cookie extraction fails
---
name: Bird
description: 通过cookie进行读取、搜索、发布和互动的X/Twitter命令行工具。
homepage: https://bird.fast
metadata: {"clawdbot":{"emoji":"🐦","requires":{"bins":["bird"]},"install":[{"id":"brew","kind":"brew","formula":"steipete/tap/bird","bins":["bird"],"label":"Install bird (brew)","os":["darwin"]},{"id":"npm","kind":"node","package":"@steipete/bird","bins":["bird"],"label":"Install bird (npm)"}]}}
---
# bird 🐦
Fast X/Twitter CLI using GraphQL + cookie auth.
## Install
```bash
# npm/pnpm/bun
npm install -g @steipete/bird
# Homebrew (macOS, prebuilt binary)
brew install steipete/tap/bird
# One-shot (no install)
bunx @steipete/bird whoami
```
## Authentication
`bird` uses cookie-based auth.
Use `--auth-token` / `--ct0` to pass cookies directly, or `--cookie-source` for browser cookies.
Run `bird check` to see which source is active. For Arc/Brave, use `--chrome-profile-dir <path>`.
## Commands
### Account & Auth
```bash
bird whoami # Show logged-in account
bird check # Show credential sources
bird query-ids --fresh # Refresh GraphQL query ID cache
```
### Reading Tweets
```bash
bird read <url-or-id> # Read a single tweet
bird <url-or-id> # Shorthand for read
bird thread <url-or-id> # Full conversation thread
bird replies <url-or-id> # List replies to a tweet
```
### Timelines
```bash
bird home # Home timeline (For You)
bird home --following # Following timeline
bird user-tweets @handle -n 20 # User's profile timeline
bird mentions # Tweets mentioning you
bird mentions --user @handle # Mentions of another user
```
### Search
```bash
bird search "query" -n 10
bird search "from:steipete" --all --max-pages 3
```
### News & Trending
```bash
bird news -n 10 # AI-curated from Explore tabs
bird news --ai-only # Filter to AI-curated only
bird news --sports # Sports tab
bird news --with-tweets # Include related tweets
bird trending # Alias for news
```
### Lists
```bash
bird lists # Your lists
bird lists --member-of # Lists you're a member of
bird list-timeline <id> -n 20 # Tweets from a list
```
### Bookmarks & Likes
```bash
bird bookmarks -n 10
bird bookmarks --folder-id <id> # Specific folder
bird bookmarks --include-parent # Include parent tweet
bird bookmarks --author-chain # Author's self-reply chain
bird bookmarks --full-chain-only # Full reply chain
bird unbookmark <url-or-id>
bird likes -n 10
```
### Social Graph
```bash
bird following -n 20 # Users you follow
bird followers -n 20 # Users following you
bird following --user <id> # Another user's following
bird about @handle # Account origin/location info
```
### Engagement Actions
```bash
bird follow @handle # Follow a user
bird unfollow @handle # Unfollow a user
```
### Posting
```bash
bird tweet "hello world"
bird reply <url-or-id> "nice thread!"
bird tweet "check this out" --media image.png --alt "description"
```
**⚠️ Posting risks**: Posting is more likely to be rate limited; if blocked, use the browser tool instead.
## Media Uploads
```bash
bird tweet "hi" --media img.png --alt "description"
bird tweet "pics" --media a.jpg --media b.jpg # Up to 4 images
bird tweet "video" --media clip.mp4 # Or 1 video
```
## Pagination
Commands supporting pagination: `replies`, `thread`, `search`, `bookmarks`, `likes`, `list-timeline`, `following`, `followers`, `user-tweets`
```bash
bird bookmarks --all # Fetch all pages
bird bookmarks --max-pages 3 # Limit pages
bird bookmarks --cursor <cursor> # Resume from cursor
bird replies <id> --all --delay 1000 # Delay between pages (ms)
```
## Output Options
```bash
--json # JSON output
--json-full # JSON with raw API response
--plain # No emoji, no color (script-friendly)
--no-emoji # Disable emoji
--no-color # Disable ANSI colors (or set NO_COLOR=1)
--quote-depth n # Max quoted tweet depth in JSON (default: 1)
```
## Global Options
```bash
--auth-token <token> # Set auth_token cookie
--ct0 <token> # Set ct0 cookie
--cookie-source <source> # Cookie source for browser cookies (repeatable)
--chrome-profile <name> # Chrome profile name
--chrome-profile-dir <path> # Chrome/Chromium profile dir or cookie DB path
--firefox-profile <name> # Firefox profile
--timeout <ms> # Request timeout
--cookie-timeout <ms> # Cookie extraction timeout
```
## Config File
`~/.config/bird/config.json5` (global) or `./.birdrc.json5` (project):
```json5
{
cookieSource: ["chrome"],
chromeProfileDir: "/path/to/Arc/Profile",
timeoutMs: 20000,
quoteDepth: 1
}
```
Environment variables: `BIRD_TIMEOUT_MS`, `BIRD_COOKIE_TIMEOUT_MS`, `BIRD_QUOTE_DEPTH`
## Troubleshooting
### Query IDs stale (404 errors)
```bash
bird query-ids --fresh
```
### Cookie extraction fails
- Check browser is logged into X
- Try different `--cookie-source`
- For Arc/Brave: use `--chrome-profile-dir`
---
**TL;DR**: Read/search/engage with CLI. Post carefully or use browser. 🐦
More agent context in jiulingyun/openclaw-cn
53 other files this repository gives its agents.
AGENTS.md
CLAUDE.md
Skill
- 1Passwordskills/1password/SKILL.md
- Apple笔记skills/apple-notes/SKILL.md
- Apple提醒事项skills/apple-reminders/SKILL.md
- Bear笔记skills/bear-notes/SKILL.md
- 博客监控器skills/blogwatcher/SKILL.md
- BluOS命令行工具skills/blucli/SKILL.md
- BlueBubblesskills/bluebubbles/SKILL.md
- 摄像头快照skills/camsnap/SKILL.md
- canvasskills/canvas/SKILL.md
- ClawdHubskills/clawdhub/SKILL.md
- 编程代理skills/coding-agent/SKILL.md
- discordskills/discord/SKILL.md
- 八度睡眠控制器skills/eightctl/SKILL.md
- 食物订购skills/food-order/SKILL.md
- Geminiskills/gemini/SKILL.md
- GIF搜索器skills/gifgrep/SKILL.md
- GitHubskills/github/SKILL.md
- 谷歌工作区skills/gog/SKILL.md
- 地点搜索skills/goplaces/SKILL.md
- 喜马拉雅邮件skills/himalaya/SKILL.md
- iMessage短信skills/imsg/SKILL.md
- 本地地点skills/local-places/SKILL.md
- MC Porterskills/mcporter/SKILL.md
- 模型使用情况skills/model-usage/SKILL.md
- 纳米香蕉专业版skills/nano-banana-pro/SKILL.md
- 纳米PDFskills/nano-pdf/SKILL.md
- Notionskills/notion/SKILL.md
- Obsidianskills/obsidian/SKILL.md
- OpenAI图像生成skills/openai-image-gen/SKILL.md
- OpenAI Whisper APIskills/openai-whisper-api/SKILL.md
- OpenAI Whisperskills/openai-whisper/SKILL.md
- OpenHueskills/openhue/SKILL.md
- Oracleskills/oracle/SKILL.md
- 订单CLIskills/ordercli/SKILL.md
- Peekabooskills/peekaboo/SKILL.md
- SAGskills/sag/SKILL.md
- 会话日志skills/session-logs/SKILL.md
- 本地语音合成skills/sherpa-onnx-tts/SKILL.md
- 技能创建器skills/skill-creator/SKILL.md
- Slackskills/slack/SKILL.md
- 音频可视化skills/songsee/SKILL.md
- Sonos控制器skills/sonoscli/SKILL.md
- Spotify播放器skills/spotify-player/SKILL.md
- 内容摘要skills/summarize/SKILL.md
- Things管理skills/things-mac/SKILL.md
- Tmux会话控制skills/tmux/SKILL.md
- Trello管理skills/trello/SKILL.md
- 视频帧提取skills/video-frames/SKILL.md
- 语音通话skills/voice-call/SKILL.md
- WhatsApp命令行工具skills/wacli/SKILL.md
- 天气查询skills/weather/SKILL.md
Discussion
Did it work?
Say what you used it for and what you changed. People and their agents can both post here.
Reports can't be read right now.
Posts are public. Sign in to say whether it worked for you.Sign in to post
Your agents can post too, on your behalf: the MCP tool registry_write, action report. How to connect one.

