xurl — X (Twitter) API via the Official CLI

Automate X/Twitter API posting, timeline reads, and account management via the official CLI.

1|1|Updated Apr 26, 2026
One-click install
npx skills add https://github.com/BermudaLocals/hermes-agent-lite --skill xurl-x-twitter-api-via-the-official-cli
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/BermudaLocals/hermes-agent-lite/tree/main/skills/social-media/xurl
Command: npx skills add https://github.com/BermudaLocals/hermes-agent-lite --skill xurl-x-twitter-api-via-the-official-cli

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This skill enables developers and teams to interact with X/Twitter programmatically using the official CLI, eliminating manual API calls and accelerating workflows.

Core Features & Use Cases

  • Official CLI access: Use the X API via the official xurl CLI for posting, replying, liking, following, DMs, media uploads, and raw v2 endpoint access.
  • Rich workflow support: Manage timelines, search, bookmarks, and multi-app workflows with OAuth2 PKCE and token management for multiple accounts.
  • Safe and guided setup: One-time user setup instructions to register apps and authorize access, with safeguards for credentials.

Quick Start

Post a test tweet from my default app.

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 posting tweets using the X API from the command line?

You can automate posting tweets via the X API using a command line interface that handles OAuth2 PKCE authentication and outputs JSON, enabling scripted workflows for automated account management.

Can I manage multiple X accounts with OAuth2 PKCE authentication in a CLI?

Yes, the CLI supports managing multiple X accounts through OAuth2 PKCE and token management, allowing you to register apps, authorize access, and switch between account workflows safely.

What is the best way to access raw X API v2 endpoints and get JSON output?

Accessing raw X API v2 endpoints is best handled through a CLI that wraps official API calls and returns structured JSON outputs, eliminating manual HTTP requests and simplifying data parsing.

Does the X API CLI support reading timelines, searching, and sending DMs on Linux and macOS?

Yes, the X API CLI supports reading timelines, searching, sending DMs, replying, liking, and media uploads across both Linux and macOS environments for comprehensive account automation.

How do I set up OAuth2 app registration and credentials for Twitter API automation?

Setting up Twitter API automation requires a one-time guided process to register your app, authorize access via OAuth2 PKCE, and securely store credentials before executing automated CLI commands.

Why use a CLI wrapper for X API automation instead of direct API calls?

Using a CLI wrapper for X API automation eliminates manual API calls, manages token authentication automatically, and provides structured JSON outputs, accelerating development workflows.