Bird Twitter
2026-04-01
新闻来源:网淘吧
围观:30
电脑广告
手机广告
Bird Twitter 技能 🐦
使用bird的快速 Twitter/X CLI 包装器——通过 Twitter 的 GraphQL API 发布推文、回复、阅读、搜索和管理您的时间线。
必需的环境变量
export AUTH_TOKEN=<your_twitter_auth_token>
export CT0=<your_twitter_ct0_cookie>
如何获取令牌
- 在浏览器中登录 Twitter/X
- 打开开发者工具 (F12)
- 转到 Application/Storage → Cookies → twitter.com
- 复制:
auth_token→AUTH_TOKENct0→CT0
快速使用
# Check login status
bird whoami
# Check credential availability
bird check
# Post a tweet
bird tweet "Hello from bird-twitter skill!"
# Reply to a tweet
bird reply <tweet-id-or-url> "Great thread!"
# Read a tweet
bird read <tweet-id-or-url>
# Read with JSON output
bird read <tweet-id-or-url> --json
# Search tweets
bird search "query"
# Get home timeline
bird home
# Get mentions
bird mentions
# Get liked tweets
bird likes
# Follow a user
bird follow <username>
# Get user's tweets
bird user-tweets <handle>
# Get trending topics
bird news
bird trending
命令
发布
| 命令 | 描述 |
|---|---|
bird tweet <文本> | 发布一条新推文 |
bird reply <网址> <文本> | 回复一条推文 |
bird tweet <文本> --media <路径> | 发布带媒体的推文(最多4张图片或1个视频) |
读取
| 命令 | 描述 |
|---|---|
bird read <网址> | 读取/获取一条推文 |
bird thread <网址> | 显示完整对话线程 |
bird replies <网址> | 列出对一条推文的回复 |
bird user-tweets <用户名> | 获取用户的推文 |
时间线
| 命令 | 描述 |
|---|---|
bird home | 首页时间线("为你推荐"信息流) |
bird mentions | 提及你的推文 |
bird likes | 你点赞的推文 |
bird bookmarks | 您收藏的推文 |
搜索与发现
| 命令 | 描述 |
|---|---|
bird search <查询词> | 搜索推文 |
bird news | 来自“探索”的AI精选新闻 |
bird trending | 热门话题 |
账户管理
| 命令 | 描述 |
|---|---|
bird whoami | 显示已登录账户 |
bird check | 检查凭证可用性 |
bird follow <用户> | 关注用户 |
bird unfollow <用户> | 取消关注用户 |
bird followers | 列出您的关注者 |
bird following | 列出您关注的用户 |
鸟类清单 | 您的Twitter清单 |
输出选项
| 选项 | 描述 |
|---|---|
--json | JSON输出 |
--json-full | 包含原始API响应 |
--plain | 纯文本(无表情符号,无颜色) |
--no-emoji | 禁用表情符号 |
--no-color | 禁用ANSI颜色 |
--timeout <毫秒> | 请求超时 |
配置
读取自:

~/.config/bird/config.json5./.birdrc.json5
支持:chromeProfile,firefoxProfile,cookieTimeoutMs,timeoutMs,quoteDepth
环境变量
| 变量 | 描述 |
|---|---|
AUTH_TOKEN | 必需— Twitter 的 auth_token cookie |
CT0 | 必需— Twitter 的 ct0 cookie |
NO_COLOR | 禁用颜色 |
BIRD_TIMEOUT_MS | 默认超时时间 |
BIRD_COOKIE_TIMEOUT_MS | Cookie 提取超时时间 |
BIRD_QUOTE_DEPTH | 最大引用推文深度 |
示例
# Check who's logged in
bird whoami
# Post a simple tweet
bird tweet "Hello world from OpenClaw!"
# Post with an image
bird tweet "Check this out!" --media ./image.png
# Reply to a tweet
bird reply 1234567890123456789 "Thanks for sharing!"
# Search for tweets about AI
bird search "artificial intelligence" --json
# Get your home timeline
bird home -n 20
# Read a tweet thread
bird thread https://x.com/user/status/1234567890
# Get trending topics
bird trending
故障排除
401 未授权
请检查AUTH_TOKEN和CT0已设置且有效。运行bird check以验证。
令牌过期
Twitter 令牌会定期过期。请从浏览器 cookie 中重新复制。
速率受限
Twitter GraphQL API 有速率限制。请等待几分钟后重试。
TL;DR:通过 bird 实现快速的 Twitter/X 命令行操作。设置AUTH_TOKEN和CT0,然后就可以发推、阅读、搜索和管理你的时间线了!
文章底部电脑广告
手机广告位-内容正文底部
上一篇:Composio Integration
下一篇:Streaming Buddy


微信扫一扫,打赏作者吧~