birdy
Compare original and translation side by side
🇺🇸
Original
English🇨🇳
Translation
ChineseBirdy
Birdy
Workflow
工作流程
Use birdy to run commands through a rotating pool of X/Twitter sessions (auth cookies), reducing rate-limit risk.
bird使用birdy通过轮换的X/Twitter会话池(认证Cookie)运行命令,降低限流风险。
bird0. Preflight (CLI Required)
0. 前置检查(需要CLI)
If you need to run commands, ensure the CLI is installed first:
birdybash
bash skills/birdy/scripts/ensure_birdy.sh
birdy version如果需要运行命令,请先确保已安装 CLI:
birdybash
bash skills/birdy/scripts/ensure_birdy.sh
birdy version1. Install
1. 安装
Prefer the installer (bundles bird as ):
birdy-birdbash
curl -fsSL https://raw.githubusercontent.com/guzus/birdy/main/install.sh | bashNotes:
- The installer requires GitHub CLI .
gh - Bundled requires Node
birdy-bird.>= 22
Alternative installs:
bash
undefined推荐使用安装程序(会将bird打包为):
birdy-birdbash
curl -fsSL https://raw.githubusercontent.com/guzus/birdy/main/install.sh | bash注意事项:
- 安装程序需要GitHub CLI 。
gh - 打包的要求Node版本
birdy-bird。>= 22
替代安装方式:
bash
undefinedInstalls birdy only (no bundled bird); you must provide bird yourself.
仅安装birdy(不包含打包的bird);你需要自行安装bird。
go install github.com/guzus/birdy@latest
undefinedgo install github.com/guzus/birdy@latest
undefined2. Add Accounts
2. 添加账户
birdy needs two cookies per account: and .
auth_tokenct0Optional: extract tokens automatically from your local browser cookies:
bash
undefinedbirdy每个账户需要两个Cookie:和。
auth_tokenct0可选:从本地浏览器Cookie中自动提取令牌:
bash
undefinedDefault tries Chrome, Safari, Firefox
默认尝试Chrome、Safari、Firefox
bash skills/birdy/scripts/extract_x_tokens.sh
bash skills/birdy/scripts/extract_x_tokens.sh
Force a specific browser backend
强制使用特定浏览器后端
bash skills/birdy/scripts/extract_x_tokens.sh --browsers chrome
bash skills/birdy/scripts/extract_x_tokens.sh --browsers chrome
Pick a Chrome profile interactively (arrow keys)
交互式选择Chrome配置文件(使用方向键)
bash skills/birdy/scripts/extract_x_tokens.sh --interactive
```bash
birdy account add personal
birdy account add work --auth-token "xxx" --ct0 "yyy"
birdy account listStored by default:
~/.config/birdy/accounts.json~/.config/birdy/state.json
bash skills/birdy/scripts/extract_x_tokens.sh --interactive
```bash
birdy account add personal
birdy account add work --auth-token "xxx" --ct0 "yyy"
birdy account list默认存储位置:
~/.config/birdy/accounts.json~/.config/birdy/state.json
3. Run Bird Commands Through Birdy
3. 通过Birdy运行Bird命令
Any unknown command/flag is forwarded to bird using the selected account.
bash
undefined任何未知的命令/标志都会通过选定的账户转发给bird。
bash
undefinedAuto-rotate accounts
自动轮换账户
birdy home
birdy search "golang"
birdy read 1234567890
birdy home
birdy search "golang"
birdy read 1234567890
Show which account was used
显示使用的账户
birdy -v home
birdy -v home
Force an account and skip rotation
强制使用指定账户并跳过轮换
birdy --account personal whoami
birdy --account personal whoami
Choose rotation strategy
选择轮换策略
birdy --strategy least-used home
undefinedbirdy --strategy least-used home
undefined4. Use In CI (Non-Interactive)
4. 在CI环境中使用(非交互式)
Provide accounts via JSON:
BIRDY_ACCOUNTSbash
export BIRDY_ACCOUNTS='[{"name":"bot1","auth_token":"xxx","ct0":"yyy"}]'
birdy -v home通过 JSON提供账户信息:
BIRDY_ACCOUNTSbash
export BIRDY_ACCOUNTS='[{"name":"bot1","auth_token":"xxx","ct0":"yyy"}]'
birdy -v home5. Troubleshoot Bird Detection
5. 排查Bird检测问题
birdy locates the underlying bird command in this order:
- (explicit override)
BIRDY_BIRD_PATH - on
birdy-bird(installed by the birdy installer)PATH - Bundled package next to the binary at
birdybird/dist/cli.js - on
birdPATH
Fixes:
- If is installed but fails: ensure
birdy-birdis available andnodeisnode --version.>= 22 - If you installed via : install bird separately, or point
go installto a workingBIRDY_BIRD_PATH.bird - If running from a git clone: the repo vendors bird at .
third_party/@steipete/bird/dist/cli.js
birdy按以下顺序定位底层的bird命令:
- (显式覆盖路径)
BIRDY_BIRD_PATH - 中的
PATH(由birdy安装程序安装)birdy-bird - 二进制文件旁的捆绑包
birdybird/dist/cli.js - 中的
PATHbird
修复方案:
- 如果已安装但运行失败:确保
birdy-bird可用且node版本node --version。>= 22 - 如果通过安装:单独安装bird,或将
go install指向可用的BIRDY_BIRD_PATH。bird - 如果从Git克隆运行:仓库在位置包含了bird的依赖包。
third_party/@steipete/bird/dist/cli.js
Security
安全注意事项
- Treat and
auth_tokenas secrets.ct0 - Avoid pasting tokens into logs; prefer environment variables and secrets managers in CI.
- 将和
auth_token视为机密信息。ct0 - 避免将令牌粘贴到日志中;在CI环境中优先使用环境变量和密钥管理器。