CommunityProgramación y desarrollogithub.com

xurl

CLI de xurl para publicaciones, respuestas, lectura/búsqueda, MDs, carga de medios, seguidores, estado de autenticación o llamadas a la API v2 de X autenticadas.

¿Qué es xurl?

xurl es una herramienta de línea de comandos que facilita la interacción con la API de X (anteriormente Twitter) de forma autenticada y eficiente. Ofrece comandos abreviados para operaciones comunes como publicar, responder, leer, buscar, enviar mensajes directos, gestionar seguidores, cargar medios y administrar la autenticación, todo devolviendo respuestas en JSON. Cuando un atajo no cubre un endpoint específico, xurl permite llamadas en modo raw a cualquier endpoint v2, manteniendo la flexibilidad total. La herramienta gestiona la autenticación mediante tokens almacenados en `~/.xurl` y proporciona opciones para depuración como `--verbose`. Es compatible con cualquier sistema que tenga un shell de Unix y soporta formatos de imagen y video comunes para la subida de medios, con polling del estado de procesamiento para videos.

Compatible con~Claude Code~Codex CLI~Cursor
npx skills add https://github.com/clawdbot/clawdbot/tree/main/skills/xurl

Installed? Explore more Programación y desarrollo skills: steipete/bluebubbles, steipete/eightctl, steipete/blucli · View all 6 →

Preguntar en tu IA favorita

Abre un nuevo chat con esta habilidad de agente ya precargada.

Documentación

¿Qué hace xurl?

Usa xurl para trabajo con la API de X. Los comandos abreviados devuelven JSON; el modo raw funciona para cualquier endpoint v2.

Autenticación

  • ~/.xurl contiene los tokens; verifica la autenticación con xurl auth status en lugar de leerlo.
  • Pasa los secretos a los comandos de autenticación a través del prompt, no en línea, para que no queden en el historial del shell.
  • --verbose imprime los encabezados de autenticación en la salida de la herramienta.

Atajos comunes

xurl post "¡Hola mundo!"
xurl reply POST_ID "Bonito."
xurl quote POST_ID "Mi opinión"
xurl delete POST_ID
xurl read POST_ID
xurl search "consulta" -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 "mensaje"
xurl dms -n 10

POST_ID puede ser una URL completa https://x.com/<usuario>/status/<id>.

Medios

xurl media upload imagen.jpg
xurl media upload clip.mp4
xurl media status MEDIA_ID
xurl post "descripción" --media-id MEDIA_ID

Los videos pueden necesitar procesamiento; consulta media status.

Administración de autenticación/aplicaciones

xurl auth status
xurl auth apps list
xurl auth default
xurl auth default APP_NAME USERNAME
xurl auth apps remove APP_NAME

Por solicitud:

xurl --app APP_NAME /2/users/me
xurl --auth oauth2 /2/users/me

API raw

xurl /2/users/me
xurl -X POST /2/tweets -d '{"text":"¡Hola mundo!"}'
xurl '/2/tweets/search/recent?query=openclaw&max_results=10'

Usa el modo raw cuando los atajos no cubran el endpoint. Mantén los payloads en archivos temporales para JSON complejo.

Salida y errores

  • Salida JSON en stdout en caso de éxito.
  • Código de salida distinto de cero en errores de API/autenticación/red.
  • 401/403: error de autenticación, alcance o aplicación; verifica xurl auth status.
  • 429: límite de tasa excedido; espera.
  • Fallos en la subida de medios: verifica el tipo/tamaño del archivo y el estado de procesamiento del medio.

Individual skills in this repo

This repo contains 20 individual skills — each has its own dedicated page.

1password

Set up and use 1Password CLI for sign-in, desktop integration, and reading or injecting secrets.

acp-router

Route plain-language requests for Claude Code, Cursor, Copilot, OpenClaw ACP, OpenCode, Gemini CLI, Qwen, Kiro, Kimi, iFlow, Factory Droid, Kilocode, or explicit ACP harness work into either OpenClaw ACP runtime sessions or direct acpx-driven sessions ("telephone game" flow). For coding-agent thread requests, read this skill first, then use only `sessions_spawn` for thread creation. Codex chat binding defaults to the native Codex app-server plugin unless ACP is explicit or background spawn needs ACP.

add-model-provider

Add and live-prove a model provider with non-interactive config one-liners, without exposing credentials.

agent-transcript

Requested GitHub PR/issue agent transcripts: redact, trim, preview, and insert safely.

apple-notes

Create, view, edit, delete, search, move, or export Apple Notes via the memo CLI on macOS.

apple-reminders

List, add, edit, complete, or delete Apple Reminders and reminder lists via remindctl.

auto-qa

Run OpenClaw-wide autonomous QA and live/stress campaigns across independent subsystem lanes, with verified fixes and a resumable evidence report.

autoreview

Structured code review through the shared OpenClaw agent-skills installation.

bear-notes

Create, search, and manage Bear notes via grizzly CLI.

blacksmith-testbox

Run Blacksmith Testbox for CI-parity checks, secrets, hosted services, migrations, or builds local cannot reproduce.

block-kit

Use proactively for structured or interactive Slack replies, and when asked to author or validate native Slack Block Kit JSON.

blogwatcher

Monitor blogs and RSS/Atom feeds for updates using the blogwatcher CLI.

blucli

BluOS CLI (blu) for discovery, playback, grouping, and volume.

bluebubbles

Send and manage iMessages via BlueBubbles, including attachments, tapbacks, edits, replies, and groups.

browser-automation

Use when controlling web pages with the OpenClaw browser tool, especially multi-step flows, login checks, tab management, or recovery from stale refs/timeouts.

camsnap

Capture frames or clips from RTSP/ONVIF cameras and local webcams, including USB pan/tilt/zoom control.

canvas

Present HTML on connected OpenClaw node canvases, navigate/eval/snapshot, and debug canvas host URLs.

channel-message-flows

Use when running QA Lab channel message flow evidence.

clawdtributor

Clawtributor PRs here, last week or another window: discover conversation refs, recheck GitHub, rank by impact.

clawhub

Search ClawHub for plugins by default, or skills when explicitly requested; install, verify, update, uninstall, publish, or sync skills.

Skills relacionados