xurl
xurl CLI for authenticated X posts, replies, reads/search, DMs, media upload, followers, auth status, or raw v2 API calls.
- License 许可
- MIT
- 最近更新
- 2026-10-24
- Stars
- ★ 4
- Forks
- 1
01 前言 Front Matter
- name
- xurl
- metadata
- { "openclaw": { "emoji": "🐦", "install": [ { "id": "brew", "bins": [ "xurl" ], "kind": "brew", "label": "Install xurl (brew)", "formula": "xdevplatform/tap/xurl" }, { "id": "npm", "bins": [ "xurl" ], "kind": "node", "label": "Install xurl (npm)", "package": "@xdevplatform/xurl" } ], "requires": { "bins": [ "xurl" ] } } }
- description
- xurl CLI for authenticated X posts, replies, reads/search, DMs, media upload, followers, auth status, or raw v2 API calls.
03 SKILL.md 正文
xurl
Use xurl for X API work. Shortcut commands return JSON; raw mode works for any v2 endpoint.
Auth
~/.xurlholds tokens; check auth withxurl auth statusinstead of reading it.- Pass secrets to auth commands through the prompt, not inline, so they stay out of shell history.
--verboseprints auth headers into tool output.
Common shortcuts
xurl post "Hello world!"
xurl reply POST_ID "Nice."
xurl quote POST_ID "My take"
xurl delete POST_ID
xurl read POST_ID
xurl search "query" -n 20
xurl whoami
xurl user @handle
xurl timeline -n 20
xurl mentions -n 10
xurl like POST_ID
xurl unlike POST_ID
xurl repost POST_ID
xurl unrepost POST_ID
xurl bookmark POST_ID
xurl unbookmark POST_ID
xurl followers -n 20
xurl following -n 20
xurl follow @handle
xurl unfollow @handle
xurl block @handle
xurl unblock @handle
xurl mute @handle
xurl unmute @handle
xurl dm @handle "message"
xurl dms -n 10
POST_ID can be a full https://x.com/<user>/status/<id> URL.
Media
xurl media upload image.jpg
xurl media upload clip.mp4
xurl media status MEDIA_ID
xurl post "caption" --media-id MEDIA_ID
Videos may need processing; poll media status.
Auth/app management
xurl auth status
xurl auth apps list
xurl auth default
xurl auth default APP_NAME USERNAME
xurl auth apps remove APP_NAME
Per request:
xurl --app APP_NAME /2/users/me
xurl --auth oauth2 /2/users/me
Raw API
xurl /2/users/me
xurl -X POST /2/tweets -d '{"text":"Hello world!"}'
xurl '/2/tweets/search/recent?query=openclaw&max_results=10'
Use raw mode when shortcuts do not cover the endpoint. Keep payloads in temp files for complex JSON.
Output and errors
- JSON stdout on success.
- Non-zero exit on API/auth/network errors.
- 401/403: auth, scope, or app mismatch; check
xurl auth status. - 429: rate limited; back off.
- Media upload failures: check file type/size and media processing status.
04 同仓库更多 Skills
xurl
Paid X API fallback through xurl after cheaper X reads fail, or for authorized account actions unsupported by bird.
x-data
Read or research X/Twitter posts, URLs, profiles, threads, or the user's X history using the cheapest available source.
write-skills
Create or revise agent skills. Use when adding a new skill file, renaming a skill, simplifying an existing skill, improving trigger descriptions, or deciding what belongs in a skill versus references, scripts, assets, or ordinary docs.
web-perf
Audit, diagnose, or optimize website loading and interaction performance, Core Web Vitals, and Lighthouse performance scores.
vercel-react-best-practices
Apply React and Next.js performance guidance. Use for performance work or a specific rendering, data-fetching, or bundle concern.
vercel-optimize
Audit deployed Vercel cost and performance using project metrics. Use for expensive or slow routes, usage analysis, and caching opportunities.