MyClaw
HomeProductsUse CasesPricingSkillsResourcesCompany
HomeUse CasesPricingSkills
Sign In
Home
ProductsOpenClaw HostingHermes Agent Hosting
Use CasesPricingSkills
ResourcesCompareTutorialLearnBlogUpdatesResourcesCommunity
CompanyAboutSupport
Sign In
MyClaw.ai

Your AI agent, already running.

Product

OpenClaw HostingHermes Agent HostingUse CasesPricingCompareAlibaba Cloud

Resources

BlogUpdatesSkillsModelsSupportCommunityCapybara

Legal

TermsPrivacyCookieGDPRContact

© 2023 Cubo World Inc. All rights reserved.

← Back to Skills
Communication
𝕏

xurl

CLI tool for authenticated X (Twitter) API access — post, reply, search, manage followers, send DMs, upload media, and hit any v2 endpoint.

by OpenClawv1.0.0
ProductivityAI PoweredAutomationAPICLIDeveloper Tool
Connecting to VM...
Connecting to VM...
npx clawhub@latest install xurl
39Current Installs
📦
v1.0.0Version

Requirements

xurl

xurl Skill Overview

xurl is a CLI tool for interacting with the X (Twitter) API v2. It provides human- and agent-friendly shortcut commands for the most common actions — posting, replying, searching, liking, following, sending DMs, and uploading media — as well as raw curl-style access to any X API v2 endpoint. All commands return structured JSON to stdout, making it straightforward to pipe results into other tools or agent workflows.

How to Use It

Step 1: Run in your terminal or install this skill on MyClaw

npx clawhub@latest install xurl
or

Click the Install button at the top of this page for one-click setup

When to Use xurl

Best Fit

  • You need an AI agent or automation script to post tweets, replies, or quote posts on X.
  • You want to search recent posts, read timelines, or monitor mentions programmatically.
  • You need to manage social graph actions (follow, unfollow, block, mute) or send direct messages via script.
  • You want to upload media (images, videos) and attach them to posts without writing custom API client code.

When Not to Use

  • You need to interact with legacy X API v1.1 endpoints — xurl targets v2 only.
  • You are in a sandboxed or shared environment where persisting credentials to ~/.xurl is not safe or feasible.
  • You need a graphical or no-code interface for managing your X account.

Key Features

Shortcut Commands for Common Actions

Ready-made one-liners cover posting, replying, quoting, deleting, searching, liking, reposting, bookmarking, following, blocking, muting, sending DMs, and uploading media. No need to construct raw API payloads for everyday tasks.

Raw curl-Style Access to Any v2 Endpoint

Beyond shortcuts, xurl works as a general-purpose X API client. Use xurl /2/some/endpoint with -X, -d, and -H flags to reach any v2 endpoint, just like curl but with authentication handled automatically.

Multi-App and Multi-Account Support

Register multiple X apps and authenticate multiple OAuth 2.0 accounts per app. Switch between them with xurl auth default or override per-request with --app and --username flags.

Media Upload Workflow

Upload images or videos with xurl media upload, then attach the returned media_id directly to a post or reply. Video processing status can be polled with xurl media status --wait.

Streaming Endpoint Support

Known streaming endpoints (e.g. /2/tweets/search/stream, /2/tweets/sample/stream) are auto-detected and handled correctly. Any endpoint can be forced into streaming mode with the -s flag.

Credential Safety for Agent Sessions

Credentials are stored locally in ~/.xurl and never need to be passed inline. The tool enforces a strict no-inline-secrets policy, making it safer to use inside AI agent or LLM workflows where prompt/context leakage is a risk.

Use Cases

AI agent posting and engagement automation

An agent can search for posts on a topic with xurl search, read context with xurl read, then reply or like the most relevant results — all in a single chained workflow with structured JSON at every step.

Scheduled content publishing with media

Upload a prepared image with xurl media upload, capture the media_id from the JSON response, and immediately attach it to a new post — enabling fully automated media-rich publishing pipelines.

Social graph and account monitoring

Periodically check mentions, home timeline, new followers, and DMs using xurl mentions, xurl timeline, xurl followers, and xurl dms to power monitoring dashboards or notification bots.

Multi-environment X API development

Register separate dev and prod apps, authenticate each independently, and switch between them with xurl auth default or per-request --app overrides — without ever mixing credentials.

Requirements

  • X API Credentials (required) — Must be registered manually by the user outside any agent/LLM session and stored in ~/.xurl. Supports OAuth 2.0 (recommended), OAuth 1.0a, and app-only auth. Obtain credentials at developer.x.com.
Connecting to VM...
npx clawhub@latest install xurl
39Current Installs
📦
v1.0.0Version

Requirements

xurl

FAQ

Reviews

0 reviews

Log in to write a review

No reviews yet. Be the first to share your experience!