xurl — X (Twitter) API via the Official CLI

Automate posting, reading, and social actions on X via official CLI with OAuth2 authentication.

Updated Apr 24, 2026
One-click install
npx skills add https://github.com/Harries/hermes-agent --skill xurl-x-twitter-api-via-the-official-cli-harries
Or copy as Structured Prompt for Agent▼
Please help me install this Agent Skill.
Skill: xurl — X (Twitter) API via the Official CLI
Source: https://github.com/Harries/hermes-agent/tree/main/skills/social-media/xurl
Command: npx skills add https://github.com/Harries/hermes-agent --skill xurl-x-twitter-api-via-the-official-cli-harries

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Command-line access to X APIs via the official CLI reduces the friction of performing common actions manually, enabling automated posting, reading timelines, and account management without crafting raw HTTP requests.

Core Features & Use Cases

  • Post, reply, quote, and delete posts
  • Read timelines, mentions, and DMs
  • Like, repost, bookmark, and manage social graphs
  • Direct media uploads and raw access to X API v2 endpoints
  • Multi-app / multi-account workflows with OAuth2 PKCE and token auto-refresh
  • Cross-platform compatibility (Linux, macOS) via the official CLI

Quick Start

Install xurl, authenticate with your app, and post your first tweet.

Frequently Asked Questions about xurl — X (Twitter) API via the Official CLI

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I automate Twitter posts from the command line?▼

Automating Twitter posts from the command line requires using the xurl CLI to interact with X API v2 endpoints. It enables automated posting, reading timelines, and account management without crafting raw HTTP requests.

Can I manage multiple X accounts with OAuth2 automation?▼

Yes, you can manage multiple X accounts using OAuth2 PKCE authentication and token auto-refresh. The CLI supports multi-app and multi-account workflows to automate actions across different endpoints.

What do I need to read Twitter timelines and DMs via the API?▼

To read Twitter timelines and DMs via the API, you need the xurl CLI installed and properly configured app credentials. This setup allows programmatic interaction with X API v2 endpoints for reading and social actions.

Does the xurl CLI support media uploads and raw X API v2 access?▼

Yes, the xurl CLI supports direct media uploads and provides raw access to X API v2 endpoints. You can perform actions like posting, liking, reposting, and bookmarking directly from the command line.

Is the official X CLI compatible with Windows for API automation?▼

The official X CLI offers cross-platform compatibility for Linux and macOS via the official CLI. The metadata does not confirm Windows support for automating X API workflows.

Why use a CLI tool instead of raw HTTP requests for X API automation?▼

Using a CLI tool for X API automation reduces the friction of performing common actions manually. It handles OAuth2 authentication and token auto-refresh, enabling automated posting and reading without crafting raw HTTP requests.