Skip to main content
TweetClaw is the official OpenClaw plugin for using Xquik from an OpenClaw agent. It gives your agent a safe endpoint catalog, account-backed X automation, optional read-only MPP access, slash commands, and monitor notifications without exposing API keys to the model. Use it when your OpenClaw workflow needs X search, user lookups, tweet posting, replies, likes, retweets, follows, DMs, monitors, webhooks, giveaway draws, extraction jobs, media actions, or trend reads.

Prerequisites

  • OpenClaw 2026.7.1 or newer
  • Node.js 22 or newer
  • Xquik API key for account-backed automation
  • Optional MPP setup for anonymous read-only pay-per-use calls
Install agent plugins only from trusted sources. OpenClaw plugin installs run code, and the official OpenClaw plugin CLI docs recommend pinned versions for production installs.

Install

Install the official OpenClaw package. Current OpenClaw checks ClawHub first, then npm:
For repeatable shared environments, pin the current published npm version:
@xquik/tweetclaw is the official package. The plugin id is tweetclaw. The current published npm version and source-truth version are both 1.6.37.

Configure API Key Auth

Create an API key from the Xquik dashboard, then configure TweetClaw:
API key auth unlocks account status, reads, monitor management, webhook management, extraction jobs, giveaway draws, media actions, and write actions for connected X accounts.

Configure MPP Pay-Per-Use

MPP lets TweetClaw call 7 read-only X API endpoints at fixed prices without an Xquik account or API key. Use a guest paid_reads key when the workflow needs the broader 33-route prepaid catalog.
MPP mode is read-only. Use API key auth when the agent needs private reads, account state, monitors, webhooks, extractions, draws, media downloads, media uploads, or write actions.

Optional Settings

TweetClaw can poll Xquik events and surface monitor notifications in chat.
Use the default base URL unless you operate a private Xquik deployment:

Tools

explore

Search the bundled Xquik endpoint catalog and inspect parameters. This tool does not call the network.

tweetclaw

Call catalog-listed Xquik endpoints with structured method, path, query, and body input. This tool can make network requests.
The explore tool is the safe first step. Ask the agent to inspect the catalog before it calls an endpoint:
The tweetclaw tool is optional because it can spend credits, read private account data, or perform write-like actions. If OpenClaw hides optional tools, allow it explicitly:

Workflow Handoffs

Use explore first, then call tweetclaw only for the endpoint, target, and limit you intend to run.

Tweet Replies Export

Estimate reply_extractor with targetTweetId, create the extraction, poll /api/v1/extractions/{id}, then return CSV, JSON, and XLSX export URLs.

Follower Export

Estimate follower_explorer with targetUsername, create the extraction, poll until completion, then export the job for CRM or warehouse import.

Monitor Webhook Handoff

Use explore to find monitor and webhook endpoints, then call tweetclaw for POST /api/v1/monitors or POST /api/v1/monitors/keywords and POST /api/v1/webhooks only after approval. Store the webhook secret in a secret manager. In receivers, verify X-Xquik-Signature, store deliveryId and streamEventId, return 2xx for accepted duplicates, and keep endpoint signing values, raw request body, raw signature, and full headers out of chat logs and shared workflow outputs.

Media Tweets and DM Attachments

For tweets or replies, call POST /api/v1/x/tweets with public media URLs in media. Store tweetId when confirmed; if the response includes writeActionId, poll GET /api/v1/x/write-actions/{id} before retrying. For DM attachments, upload media first, pass the returned mediaId as the one-item media_ids value, then store messageId. Keep full DM bodies out of shared outputs and leave reply_to_message_id unset.

Runtime Diagnostics

TweetClaw can be installed before credentials are configured. In that state, use explore for free endpoint discovery. Live API calls return setup guidance until you add an API key or MPP signing key. Verify runtime registration after install or update:
If the agent can see the TweetClaw skill but cannot call the tools, add explore and tweetclaw to tools.alsoAllow so your normal tool profile stays intact. Only change baseUrl for a self-hosted Xquik-compatible API. TweetClaw requires an HTTPS base URL with no embedded credentials.

Slash Commands

/xstatus

Show the connected X account, email, locale, subscription status, plan, and usage when API key auth is configured.

/xtrends

Show current topics from Xquik Radar.

/xtrends tech

Show current Xquik Radar topics filtered by the tech category.

Safety Model

TweetClaw keeps credentials in plugin config and injects auth at request time. The model does not receive your API key or MPP signing key as a tool argument. OpenClaw approval prompts apply before write-like tweetclaw calls. Review the structured request before approving any post, delete, follow, DM, monitor change, extraction, webhook change, media action, profile change, or community action. Dashboard-only account-admin, billing, support-ticket, and raw credential flows are excluded from the agent catalog and blocked at runtime.

API Coverage

TweetClaw exposes 99 agent-callable endpoints across 9 categories.

account

1 endpoint for account status and usage.

composition

13 endpoints for compose, drafts, writing styles, and radar.

credits

1 endpoint for credit balance reads.

extraction

9 endpoints for extraction jobs, giveaway draws, and exports.

media

1 endpoint for authenticated tweet media downloads and gallery links.

monitoring

18 endpoints for account monitors, keyword monitors, events, and webhooks.

twitter

37 endpoints for search, lookups, timelines, articles, trends, bookmarks, and notifications.

x-accounts

1 endpoint for listing connected accounts before explicit user-selected actions.

x-write

18 endpoints for post, reply, like, retweet, follow, remove follower, DM, profile, media, and community actions.

Verify

After installing and configuring the plugin, run:
Then test a read-only workflow:
For write workflows, ask the agent to draft first and request approval before calling tweetclaw:

Troubleshooting

Tools Missing

Add explore and tweetclaw to tools.alsoAllow, run the runtime inspection commands, then restart OpenClaw.

Auth Fails

Create a fresh Xquik API key and update plugins.entries.tweetclaw.config.apiKey.

MPP Setup Fails

Install mppx and viem, fund the MPP account, and call only the 7 direct MPP operations.

Monitor Alerts Missing

Set pollingEnabled to true and keep pollingInterval at 60 seconds or higher.

Write Approval Required

Review the structured request and approve only the exact intended post, delete, follow, DM, monitor, extraction, webhook, profile, or community action.

References

Last modified on July 14, 2026