xurl

CLI xurl para postagens autenticadas no X, respostas, leitura/busca, DMs, upload de mídia, seguidores, status de autenticação ou chamadas diretas à API v2.

O que é xurl?

O xurl é uma ferramenta de linha de comando que simplifica a interação com a API do X (antigo Twitter). Ele oferece comandos abreviados para tarefas comuns como postar tweets, responder, curtir, seguir, enviar mensagens diretas e gerenciar mídia, retornando resultados em JSON. Para endpoints não cobertos pelos atalhos, o modo raw permite chamadas diretas a qualquer endpoint da API v2 do X, utilizando métodos HTTP como GET, POST, DELETE etc. O gerenciamento de autenticação é feito através de tokens armazenados em `~/.xurl`, com comandos específicos para verificar status, listar aplicativos e alternar entre contas ou métodos de autenticação (OAuth 1.0a e OAuth 2.0). É útil para desenvolvedores e agentes de IA que precisam automatizar interações com a plataforma X de forma eficiente e segura, mantendo segredos fora do histórico do shell.

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

Installed? Explore more Programação e Desenvolvimento skills: steipete/bluebubbles, steipete/eightctl, steipete/blucli · View all 6 →

Perguntar na sua IA favorita

Abre um novo chat com esta habilidade de agente já pré-carregada.

Documentação

O que xurl faz?

Use xurl para trabalhar com a API do X. Comandos abreviados retornam JSON; o modo raw funciona para qualquer endpoint v2.

Autenticação

  • ~/.xurl armazena tokens; verifique a autenticação com xurl auth status em vez de lê-lo.
  • Passe segredos para comandos de autenticação através do prompt, não inline, para que fiquem fora do histórico do shell.
  • --verbose exibe cabeçalhos de autenticação na saída da ferramenta.

Atalhos comuns

xurl post "Olá mundo!"
xurl reply POST_ID "Legal."
xurl quote POST_ID "Minha opinião"
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 "mensagem"
xurl dms -n 10

POST_ID pode ser uma URL completa como https://x.com/<user>/status/<id>.

Mídia

xurl media upload imagem.jpg
xurl media upload clipe.mp4
xurl media status MEDIA_ID
xurl post "legenda" --media-id MEDIA_ID

Vídeos podem precisar de processamento; consulte media status.

Gerenciamento de autenticação/aplicativos

xurl auth status
xurl auth apps list
xurl auth default
xurl auth default NOME_DO_APP NOME_DE_USUARIO
xurl auth apps remove NOME_DO_APP

Por requisição:

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

API raw

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

Use o modo raw quando os atalhos não cobrirem o endpoint. Mantenha os payloads em arquivos temporários para JSON complexos.

Saída e erros

  • JSON no stdout em caso de sucesso.
  • Código de saída diferente de zero em erros de API/autenticação/rede.
  • 401/403: problema de autenticação, escopo ou aplicativo; verifique xurl auth status.
  • 429: limite de taxa excedido; aguarde.
  • Falhas no upload de mídia: verifique o tipo/tamanho do arquivo e o status do processamento da mídia.

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, Grok Build, 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.

Habilidades Relacionadas