@xquik/tweetclaw 1.3.0 → 1.4.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md CHANGED
@@ -1,8 +1,54 @@
1
1
  # TweetClaw
2
2
 
3
+ [![npm](https://img.shields.io/npm/v/@xquik/tweetclaw)](https://www.npmjs.com/package/@xquik/tweetclaw)
4
+ [![License: MIT](https://img.shields.io/badge/License-MIT-yellow.svg)](LICENSE)
5
+ ![GitHub stars](https://img.shields.io/github/stars/Xquik-dev/tweetclaw)
6
+
3
7
  Post tweets, reply, like, retweet, follow, DM & more - directly from your chat. Full X/Twitter automation for [OpenClaw](https://github.com/openclaw/openclaw).
4
8
 
5
- Powered by [Xquik](https://xquik.com), the all-in-one X automation platform.
9
+ Powered by [Xquik](https://xquik.com), the all-in-one X automation platform. **Reads from $0.00015/call - 33x cheaper than the official X API.**
10
+
11
+ ## Pricing
12
+
13
+ TweetClaw uses Xquik's credit-based pricing. 1 credit = $0.00015.
14
+
15
+ ### vs Official X API
16
+
17
+ | | Xquik (via TweetClaw) | X API Basic | X API Pro |
18
+ |---|---|---|---|
19
+ | **Monthly cost** | **$20** | $100 | $5,000 |
20
+ | **Cost per tweet read** | **$0.00015** | ~$0.01 | ~$0.005 |
21
+ | **Cost per user lookup** | **$0.0003** | ~$0.01 | ~$0.005 |
22
+ | **Write actions** | **$0.0003** | Limited | Limited |
23
+ | **Bulk extraction** | **$0.00015/result** | Not available | Not available |
24
+ | **Monitoring + webhooks** | **Free** | Not available | Not available |
25
+ | **Giveaway draws** | **$0.00015/entry** | Not available | Not available |
26
+
27
+ ### Per-Operation Costs
28
+
29
+ | Operation | Credits | Cost |
30
+ |-----------|---------|------|
31
+ | Read (tweet, search, timeline, bookmarks, etc.) | 1 | $0.00015 |
32
+ | Read (user profile, favoriters, followers you know, verified followers) | 2 | $0.0003 |
33
+ | Read (trends) | 3 | $0.00045 |
34
+ | Follow check, article | 7 | $0.00105 |
35
+ | Write (tweet, like, retweet, follow, DM, etc.) | 2 | $0.0003 |
36
+ | Extraction (tweets, replies, quotes, mentions, posts, likes, media, search) | 1/result | $0.00015/result |
37
+ | Extraction (followers, following, verified followers, favoriters, retweeters, community members, people search, list members, list followers) | 2/result | $0.0003/result |
38
+ | Extraction (articles) | 7/result | $0.00105/result |
39
+ | Draw | 1/entry | $0.00015/entry |
40
+ | Monitors, webhooks, radar, compose, drafts, integrations | 0 | **Free** |
41
+
42
+ ### Pay-Per-Use (No Subscription)
43
+
44
+ Two options:
45
+
46
+ - **Credits (Stripe)**: Top up credits via the API ($10 minimum). 1 credit = $0.00015. Works with all 120 endpoints.
47
+ - **MPP (USDC)**: 16 read-only X-API endpoints accept anonymous payments via Machine Payments Protocol. No account needed. SDK: `npm i mppx`.
48
+
49
+ ### Free Operations
50
+
51
+ Tweet composition, style analysis, drafts, curated radar (7 sources), account management, integrations, automations, support tickets - all free, no credits consumed.
6
52
 
7
53
  ## Install
8
54
 
@@ -12,24 +58,28 @@ openclaw plugins install @xquik/tweetclaw
12
58
 
13
59
  ## Configure
14
60
 
15
- ### Option A: API key (full access, 97 endpoints)
61
+ ### Option A: API key (full access, 120 endpoints)
16
62
 
17
63
  ```bash
18
64
  openclaw config set plugins.entries.tweetclaw.config.apiKey 'xq_YOUR_KEY'
19
65
  ```
20
66
 
21
- Get a key at [dashboard.xquik.com/en/account?tab=x-accounts](https://dashboard.xquik.com/en/account?tab=x-accounts).
67
+ Get a key at [dashboard.xquik.com](https://dashboard.xquik.com/).
68
+
69
+ ### Option B: Credits (pay-per-use via Stripe, no subscription)
22
70
 
23
- ### Option B: MPP pay-per-use (no account needed, 7 read-only endpoints)
71
+ Top up credits from the Xquik dashboard or via `POST /credits/topup`. All 120 endpoints available. 1 credit = $0.00015.
72
+
73
+ ### Option C: MPP pay-per-use (no account needed, 16 read-only endpoints)
24
74
 
25
75
  ```bash
26
76
  npm i mppx viem
27
77
  openclaw config set plugins.entries.tweetclaw.config.tempoPrivateKey '0xYOUR_TEMPO_KEY'
28
78
  ```
29
79
 
30
- MPP (Machine Payments Protocol) lets agents pay per API call via Tempo (USDC). No account, no API key, no subscription. Get a Tempo wallet at [tempo.xyz](https://tempo.xyz).
80
+ MPP (Machine Payments Protocol) lets agents pay per API call via Tempo (USDC). No account, no API key, no subscription. 16 read-only endpoints. Get a Tempo wallet at [tempo.xyz](https://tempo.xyz).
31
81
 
32
- MPP-eligible endpoints: tweet lookup ($0.0003), tweet search ($0.0003/tweet), user lookup ($0.00036), follower check ($0.002), article lookup ($0.002), media download ($0.0003/media), trends ($0.0009).
82
+ MPP-eligible endpoints: tweet lookup ($0.00015), tweet search ($0.00015/tweet), user lookup ($0.00015), user tweets ($0.00015/tweet), follower check ($0.00105), article lookup ($0.00105), media download ($0.00015/media), trends ($0.00045), X trends ($0.00045), quotes ($0.00015/tweet), replies ($0.00015/tweet), retweeters ($0.00015/user), favoriters ($0.00015/user), thread ($0.00015/tweet), user likes ($0.00015/tweet), user media ($0.00015/tweet).
33
83
 
34
84
  ### Optional settings
35
85
 
@@ -78,7 +128,7 @@ Instant responses, no LLM needed:
78
128
 
79
129
  | Command | Description |
80
130
  |---------|-------------|
81
- | `/xstatus` | Account info, subscription status, usage |
131
+ | `/xstatus` | Account info, subscription status, usage, credit balance |
82
132
  | `/xtrends` | Trending topics from curated sources |
83
133
  | `/xtrends tech` | Trending topics filtered by category |
84
134
 
@@ -97,45 +147,30 @@ You: "Monitor @elonmusk for new tweets and follower changes"
97
147
 
98
148
  ## API Coverage
99
149
 
100
- 97 endpoints across these categories:
101
-
102
- | Category | Examples |
103
- |----------|---------|
104
- | **Write Actions** | Post tweets, reply, like, retweet, follow, unfollow, DM, update profile & avatar |
105
- | **Media** | Upload media via URL, download tweet media, get gallery links |
106
- | **Twitter** | Search tweets, look up users, check follow relationships, get articles |
107
- | **Composition** | Compose, refine, score tweets; manage drafts; analyze writing styles |
108
- | **Extraction** | Run extraction jobs (reply-extractor, community-explorer, etc.) |
109
- | **Draws** | Run giveaway draws on tweets, export results |
110
- | **Monitoring** | Create monitors, view events, manage webhooks |
111
- | **Automations** | Create flows, add steps, test runs, inbound webhooks |
112
- | **Account** | Manage API keys, subscription, connected X accounts |
113
- | **Trends** | X trending topics, curated radar from multiple sources |
114
- | **Support** | Create tickets, reply, track status |
115
-
116
- ## Pricing
117
-
118
- **MPP pay-per-use** (no account needed):
119
- - 7 read-only X-API endpoints via Tempo (USDC)
120
- - Tweet/user/article lookup, search, follower check, media download, trends
121
-
122
- **Free tier** (API key, no subscription needed):
123
- - Tweet composition, style analysis, drafts
124
- - Curated trending radar
125
- - Account management, API keys
126
- - Integrations management
127
- - Flow automations (create, test, inbound webhooks)
128
- - Support tickets
129
-
130
- **Subscription ($20/month)** for full access:
131
- - Write actions (post, reply, like, retweet, follow, DM, update profile)
132
- - Tweet search, user lookup, article lookup, media download
133
- - Extractions, giveaway draws
134
- - Account monitors, events, webhooks
135
- - X trending topics
136
- - Flow activation (free: 2 flows, subscriber: 10)
137
-
138
- When a paid endpoint returns 402, TweetClaw provides a checkout URL (API key mode) or auto-pays via Tempo (MPP mode).
150
+ 120 endpoints across 12 categories:
151
+
152
+ | Category | Examples | Cost |
153
+ |----------|---------|------|
154
+ | **Write Actions** | Post tweets, reply, like, retweet, follow, unfollow, DM, update profile, avatar, banner | 2 credits |
155
+ | **Media** | Upload media via URL, download tweet media, get gallery links | 1-2 credits |
156
+ | **Twitter** | Search tweets, look up users, user tweets/likes/media, favoriters, mutual followers, check follows, articles, bookmarks, notifications, timeline, DM history | 1-7 credits |
157
+ | **Composition** | Compose, refine, score tweets; manage drafts; analyze writing styles | Free |
158
+ | **Extraction** | Run extraction jobs (23 tool types: replies, followers, communities, favoriters, user_likes, user_media, etc.) | 1-7 credits/result |
159
+ | **Draws** | Run giveaway draws on tweets, export results | 1 credit/entry |
160
+ | **Monitoring** | Create monitors, view events, manage webhooks | Free |
161
+ | **Automations** | Create flows, add steps, test runs, inbound webhooks | Free |
162
+ | **Account** | Manage API keys, subscription, connected X accounts | Free |
163
+ | **Credits** | Check balance, top up credits | Free |
164
+ | **Trends** | X trending topics, curated radar from 7 sources | 3 credits / Free |
165
+ | **Support** | Create tickets, reply, track status | Free |
166
+
167
+ ## Links
168
+
169
+ - [Xquik Platform](https://xquik.com)
170
+ - [API Documentation](https://docs.xquik.com)
171
+ - [Billing & Pricing](https://docs.xquik.com/guides/billing)
172
+ - [npm Package](https://www.npmjs.com/package/@xquik/tweetclaw)
173
+ - [OpenClaw](https://github.com/openclaw/openclaw)
139
174
 
140
175
  ## License
141
176
 
@@ -1,14 +1,14 @@
1
1
  {
2
2
  "id": "tweetclaw",
3
3
  "name": "TweetClaw",
4
- "version": "1.3.0",
5
- "description": "Post tweets, reply, like, retweet, follow, DM from your chat - full X/Twitter automation powered by Xquik",
4
+ "version": "1.4.0",
5
+ "description": "Post tweets, reply, like, retweet, follow, DM from your chat - full X/Twitter automation powered by Xquik. 120 endpoints, reads from $0.00015/call.",
6
6
  "configSchema": {
7
7
  "type": "object",
8
8
  "additionalProperties": false,
9
9
  "properties": {
10
- "apiKey": { "type": "string", "minLength": 1, "description": "Xquik API key (get one at dashboard.xquik.com/en/account?tab=x-accounts). Required for full access." },
11
- "tempoPrivateKey": { "type": "string", "minLength": 1, "description": "Tempo wallet private key for MPP pay-per-use mode. No account needed. Only 7 read-only X-API endpoints." },
10
+ "apiKey": { "type": "string", "minLength": 1, "description": "Xquik API key (get one at dashboard.xquik.com). Required for full access to all 120 endpoints." },
11
+ "tempoPrivateKey": { "type": "string", "minLength": 1, "description": "Tempo wallet private key for MPP pay-per-use mode. No account needed. 16 read-only X-API endpoints." },
12
12
  "baseUrl": { "type": "string", "default": "https://xquik.com" },
13
13
  "pollingInterval": { "type": "number", "default": 60, "description": "Event polling interval in seconds" },
14
14
  "pollingEnabled": { "type": "boolean", "default": true }
@@ -19,8 +19,8 @@
19
19
  ]
20
20
  },
21
21
  "uiHints": {
22
- "apiKey": { "label": "Xquik API Key", "sensitive": true, "placeholder": "xq_...", "help": "Full access to all 97 endpoints. Generate at dashboard.xquik.com/en/account?tab=x-accounts." },
23
- "tempoPrivateKey": { "label": "Tempo Private Key (MPP)", "sensitive": true, "placeholder": "0x...", "help": "Pay-per-use mode via Machine Payments Protocol. No account needed. 7 read-only X-API endpoints only. Requires mppx and viem packages." },
22
+ "apiKey": { "label": "Xquik API Key", "sensitive": true, "placeholder": "xq_...", "help": "Full access to all 120 endpoints. Generate at dashboard.xquik.com." },
23
+ "tempoPrivateKey": { "label": "Tempo Private Key (MPP)", "sensitive": true, "placeholder": "0x...", "help": "Pay-per-use mode via Machine Payments Protocol. No account needed. 16 read-only X-API endpoints only. Requires mppx and viem packages." },
24
24
  "baseUrl": { "label": "API Base URL", "placeholder": "https://xquik.com", "advanced": true, "help": "Only change if using a self-hosted Xquik instance." },
25
25
  "pollingInterval": { "label": "Event Poll Interval (seconds)", "advanced": true, "help": "How often to check for new monitor events. Default: 60 seconds." },
26
26
  "pollingEnabled": { "label": "Enable Event Notifications", "advanced": true, "help": "Deliver monitor alerts and extraction completions to your chat." }
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@xquik/tweetclaw",
3
- "version": "1.3.0",
4
- "description": "Post tweets, reply, like, retweet, follow, DM & more from OpenClaw - full X/Twitter automation via Xquik",
3
+ "version": "1.4.1",
4
+ "description": "Post tweets, reply, like, retweet, follow, DM & more from OpenClaw - full X/Twitter automation via Xquik. 120 endpoints, reads from $0.00015/call.",
5
5
  "license": "MIT",
6
6
  "type": "module",
7
7
  "repository": {
@@ -31,7 +31,24 @@
31
31
  "x",
32
32
  "automation",
33
33
  "tweetclaw",
34
- "xquik"
34
+ "xquik",
35
+ "twitter-api",
36
+ "x-api",
37
+ "social-media",
38
+ "scraper",
39
+ "mcp",
40
+ "ai-agent",
41
+ "data-extraction",
42
+ "giveaway",
43
+ "monitoring",
44
+ "tweet",
45
+ "twitter-scraper",
46
+ "twitter-bot",
47
+ "x-twitter",
48
+ "tweet-api",
49
+ "twitter-automation",
50
+ "openclaw",
51
+ "mcp-server"
35
52
  ],
36
53
  "scripts": {
37
54
  "typecheck": "tsc --noEmit",
@@ -50,8 +67,12 @@
50
67
  "viem": ">=2.0.0"
51
68
  },
52
69
  "peerDependenciesMeta": {
53
- "mppx": { "optional": true },
54
- "viem": { "optional": true }
70
+ "mppx": {
71
+ "optional": true
72
+ },
73
+ "viem": {
74
+ "optional": true
75
+ }
55
76
  },
56
77
  "devDependencies": {
57
78
  "@eslint/js": "^10.0.1",
@@ -1,6 +1,6 @@
1
1
  ---
2
2
  name: tweetclaw
3
- description: "OpenClaw plugin for X/Twitter automation. Post tweets, reply, like, retweet, follow, DM, search, extract data, run giveaways, monitor accounts, automate flows via Xquik. 97 endpoints, 2 tools (explore + tweetclaw), 2 commands (/xstatus, /xtrends), background event poller."
3
+ description: "OpenClaw plugin for X/Twitter automation. Post tweets, reply, like, retweet, follow, DM, search, extract data, run giveaways, monitor accounts, automate flows via Xquik. 120 endpoints, 2 tools (explore + tweetclaw), 2 commands (/xstatus, /xtrends), background event poller. Reads from $0.00015/call - 33x cheaper than the official X API."
4
4
  homepage: https://xquik.com
5
5
  read_when:
6
6
  - Posting, replying, liking, retweeting, or following on X/Twitter
@@ -11,17 +11,55 @@ read_when:
11
11
  - Extracting bulk data from X/Twitter (followers, replies, communities)
12
12
  - Downloading tweet media or uploading images
13
13
  - Sending DMs or updating X/Twitter profile
14
- metadata: {"openclaw":{"emoji":"🐦","primaryEnv":"XQUIK_API_KEY","requires":{"env":["XQUIK_API_KEY"]},"tags":["twitter","x","automation","social-media","tweets","scraping","giveaway","monitoring","rest-api"]}}
14
+ - Checking credit balance or topping up credits
15
+ - Browsing bookmarks, notifications, timeline, or DM history
16
+ metadata: {"openclaw":{"emoji":"🐦","primaryEnv":"XQUIK_API_KEY","requires":{"env":["XQUIK_API_KEY"]},"tags":["twitter","x","automation","social-media","tweets","scraping","giveaway","monitoring","rest-api","cheap-api"]}}
15
17
  ---
16
18
 
17
19
  # TweetClaw
18
20
 
19
- OpenClaw plugin for X/Twitter automation powered by Xquik. Install via:
21
+ OpenClaw plugin for X/Twitter automation powered by Xquik. **Reads from $0.00015/call - 33x cheaper than the official X API.**
20
22
 
21
23
  ```bash
22
24
  openclaw plugins install @xquik/tweetclaw
23
25
  ```
24
26
 
27
+ ## Pricing
28
+
29
+ TweetClaw uses Xquik's credit-based pricing. 1 credit = $0.00015.
30
+
31
+ ### Per-Operation Costs
32
+
33
+ | Operation | Credits | Cost |
34
+ |-----------|---------|------|
35
+ | Read (tweet, search, timeline, bookmarks, etc.) | 1 | $0.00015 |
36
+ | Read (user profile) | 2 | $0.0003 |
37
+ | Read (trends) | 3 | $0.00045 |
38
+ | Follow check, article | 7 | $0.00105 |
39
+ | Write (tweet, like, retweet, follow, DM, etc.) | 2 | $0.0003 |
40
+ | Extraction (tweets, replies, quotes, mentions, posts, likes, media, search) | 1/result | $0.00015/result |
41
+ | Extraction (followers, following, verified followers, favoriters, retweeters, community members, people search, list members, list followers) | 2/result | $0.0003/result |
42
+ | Extraction (articles) | 7/result | $0.00105/result |
43
+ | Draw | 1/entry | $0.00015/entry |
44
+ | Monitors, webhooks, radar, compose, drafts, integrations | 0 | **Free** |
45
+
46
+ ### vs Official X API
47
+
48
+ | | Xquik | X API Basic | X API Pro |
49
+ |---|---|---|---|
50
+ | **Monthly cost** | **$20** | $100 | $5,000 |
51
+ | **Cost per tweet read** | **$0.00015** | ~$0.01 | ~$0.005 |
52
+ | **Cost per user lookup** | **$0.0003** | ~$0.01 | ~$0.005 |
53
+ | **Write actions** | **$0.0003** | Limited | Limited |
54
+ | **Bulk extraction** | **$0.00015/result** | Not available | Not available |
55
+
56
+ ### Pay-Per-Use (No Subscription)
57
+
58
+ - **Credits (Stripe)**: Top up via `POST /api/v1/credits/topup` ($10 minimum). Works with all 120 endpoints.
59
+ - **MPP (USDC)**: 16 read-only endpoints accept anonymous Tempo payments. No account needed. SDK: `npm i mppx`.
60
+
61
+ MPP pricing: tweet lookup ($0.00015), tweet search ($0.00015/tweet), user lookup ($0.00015), user tweets ($0.00015/tweet), follower check ($0.00105), article ($0.00105), media download ($0.00015/media), trends ($0.00045), X trends ($0.00045), quotes ($0.00015/tweet), replies ($0.00015/tweet), retweeters ($0.00015/user), favoriters ($0.00015/user), thread ($0.00015/tweet), user likes ($0.00015/tweet), user media ($0.00015/tweet).
62
+
25
63
  ## When to Use
26
64
 
27
65
  Use TweetClaw when the user wants to:
@@ -32,6 +70,9 @@ Use TweetClaw when the user wants to:
32
70
  - Update their X profile, avatar, or banner
33
71
  - Upload media and tweet with images
34
72
  - Search tweets or look up user profiles
73
+ - Get user's recent tweets, liked tweets, or media tweets
74
+ - See who liked a tweet (favoriters) or mutual followers
75
+ - Browse bookmarks, notifications, timeline, or DM history
35
76
  - Extract bulk data (followers, replies, communities, spaces)
36
77
  - Run giveaway draws from tweet replies
37
78
  - Monitor X accounts for new activity
@@ -41,6 +82,7 @@ Use TweetClaw when the user wants to:
41
82
  - Download tweet media (images, videos, GIFs)
42
83
  - Set up Telegram alerts for monitor events
43
84
  - Create and manage automation flows (triggers, steps, test runs)
85
+ - Check credit balance or top up credits
44
86
  - Open and manage support tickets
45
87
  - Read X Articles (long-form posts)
46
88
 
@@ -54,7 +96,7 @@ Do NOT use TweetClaw for browsing X in a browser, analytics dashboards, scheduli
54
96
  openclaw config set plugins.entries.tweetclaw.config.apiKey 'xq_YOUR_KEY'
55
97
  ```
56
98
 
57
- Get a key at [dashboard.xquik.com/en/account?tab=x-accounts](https://dashboard.xquik.com/en/account?tab=x-accounts).
99
+ Get a key at [dashboard.xquik.com](https://dashboard.xquik.com/).
58
100
 
59
101
  ### MPP mode (no account, pay-per-use via Tempo/USDC)
60
102
 
@@ -63,11 +105,11 @@ npm i mppx viem
63
105
  openclaw config set plugins.entries.tweetclaw.config.tempoPrivateKey '0xYOUR_KEY'
64
106
  ```
65
107
 
66
- MPP gives agents access to 7 read-only X-API endpoints without any account or subscription. The mppx SDK handles HTTP 402 payment challenges automatically.
108
+ MPP gives agents access to 16 read-only X-API endpoints without any account or subscription. The mppx SDK handles HTTP 402 payment challenges automatically.
67
109
 
68
110
  ## Tools
69
111
 
70
- TweetClaw registers 2 tools that cover the entire Xquik API (97 endpoints):
112
+ TweetClaw registers 2 tools that cover the entire Xquik API (120 endpoints):
71
113
 
72
114
  ### `explore` (free, no network)
73
115
 
@@ -101,7 +143,7 @@ async () => {
101
143
 
102
144
  | Command | Description |
103
145
  |---------|-------------|
104
- | `/xstatus` | Account info, subscription status, usage |
146
+ | `/xstatus` | Account info, subscription status, usage, credit balance |
105
147
  | `/xtrends` | Trending topics from curated sources |
106
148
  | `/xtrends tech` | Trending topics filtered by category |
107
149
 
@@ -163,6 +205,27 @@ You: "Search tweets about AI agents"
163
205
  Agent uses tweetclaw -> calls search endpoint with query
164
206
  ```
165
207
 
208
+ ### Get user activity
209
+
210
+ ```
211
+ You: "Show me @elonmusk's recent tweets"
212
+ Agent uses tweetclaw -> GET /api/v1/x/users/{id}/tweets
213
+ ```
214
+
215
+ ### Check who liked a tweet
216
+
217
+ ```
218
+ You: "Who liked this tweet?"
219
+ Agent uses tweetclaw -> GET /api/v1/x/tweets/{id}/favoriters
220
+ ```
221
+
222
+ ### Browse bookmarks and timeline
223
+
224
+ ```
225
+ You: "Show my bookmarks" or "What's on my timeline?"
226
+ Agent uses tweetclaw -> GET /api/v1/x/bookmarks or GET /api/v1/x/timeline
227
+ ```
228
+
166
229
  ### Run a giveaway draw
167
230
 
168
231
  ```
@@ -212,6 +275,13 @@ You: "What's trending on X right now?"
212
275
  Agent uses tweetclaw -> returns curated trending topics from 7 sources
213
276
  ```
214
277
 
278
+ ### Check credits and top up
279
+
280
+ ```
281
+ You: "How many credits do I have?" or "Top up my credits"
282
+ Agent uses tweetclaw -> GET /api/v1/credits or POST /api/v1/credits/topup
283
+ ```
284
+
215
285
  ### Create an automation flow (free)
216
286
 
217
287
  ```
@@ -235,30 +305,21 @@ Agent uses tweetclaw -> creates ticket with subject and description
235
305
 
236
306
  ## API Categories
237
307
 
238
- | Category | Examples | Free |
308
+ | Category | Examples | Cost |
239
309
  |----------|---------|------|
240
- | Write Actions | Post tweets, reply, like, retweet, follow, DM, update profile | No |
241
- | Media | Upload media, download tweet media | No |
242
- | Twitter | Search tweets, look up users, check follows | No |
243
- | Composition | Compose, refine, score tweets; manage drafts | Yes |
310
+ | Write Actions | Post tweets, reply, like, retweet, follow, DM, update profile, avatar, banner | 2 credits |
311
+ | Media | Upload media, download tweet media | 1-2 credits |
312
+ | Twitter | Search tweets, look up users, user tweets/likes/media, favoriters, mutual followers, bookmarks, notifications, timeline, DM history | 1-7 credits |
313
+ | Composition | Compose, refine, score tweets; manage drafts | Free |
244
314
  | Styles | Analyze tweet styles, compare, performance | Mixed |
245
- | Extraction | Reply/follower/community extraction (20 tools) | No |
246
- | Draws | Giveaway draws, export results | No |
247
- | Monitoring | Create monitors, view events, webhooks | No |
248
- | Automations | Create flows, add steps, test runs, inbound webhooks | Yes |
249
- | Account | API keys, subscription, connected X accounts | Yes |
250
- | Trends | X trending topics, curated radar from 7 sources | Mixed |
251
- | Support | Create tickets, reply, track status | Yes |
252
-
253
- ## Pricing
254
-
255
- MPP pay-per-use (no account): 7 read-only X-API endpoints via Tempo (USDC) - tweet lookup ($0.0003), tweet search ($0.0003/tweet), user lookup ($0.00036), follower check ($0.002), article ($0.002), media download ($0.0003/media), trends ($0.0009).
256
-
257
- Free tier (API key, no subscription): tweet composition, style analysis, drafts, curated radar, account management, integrations, automations (create/test), support tickets.
258
-
259
- Subscription ($20/month): write actions, search, article lookup, media, extractions, draws, monitors, X trending, flow activation (2 free, 10 subscriber).
260
-
261
- When a paid endpoint returns 402, TweetClaw provides a checkout URL.
315
+ | Extraction | Reply/follower/community extraction (23 tools) | 1-7 credits/result |
316
+ | Draws | Giveaway draws, export results | 1 credit/entry |
317
+ | Monitoring | Create monitors, view events, webhooks | Free |
318
+ | Automations | Create flows, add steps, test runs, inbound webhooks | Free |
319
+ | Account | API keys, subscription, connected X accounts | Free |
320
+ | Credits | Check balance, top up | Free |
321
+ | Trends | X trending topics, curated radar from 7 sources | 3 credits / Free |
322
+ | Support | Create tickets, reply, track status | Free |
262
323
 
263
324
  ## Tips
264
325
 
@@ -268,5 +329,6 @@ When a paid endpoint returns 402, TweetClaw provides a checkout URL.
268
329
  - For write actions (post, like, follow, DM), always pass the `account` parameter with the X username
269
330
  - Follow/unfollow/DM require a numeric user ID - look up the user first via `/api/v1/x/users/:username`
270
331
  - On 402 errors, call `POST /api/v1/subscribe` to get a checkout URL instead of giving up
271
- - Use `/xstatus` to quickly check subscription and usage without invoking the AI agent
332
+ - Use `/xstatus` to quickly check subscription, usage, and credit balance without invoking the AI agent
272
333
  - The compose workflow (compose/refine/score) is free and helps draft high-engagement tweets
334
+ - Top up credits via `POST /api/v1/credits/topup` for pay-per-use without a subscription
package/src/index.ts CHANGED
@@ -94,7 +94,7 @@ export default function register(api: OpenClawApi, fetchFunction?: FetchFunction
94
94
  api.logger.error(`TweetClaw: MPP init failed - ${error instanceof Error ? error.message : String(error)}`);
95
95
  }
96
96
  })();
97
- api.logger.info('TweetClaw: MPP mode - pay-per-use via Tempo (7 X-API endpoints, no subscription needed)');
97
+ api.logger.info('TweetClaw: MPP mode - pay-per-use via Tempo (16 X-API endpoints, no subscription needed)');
98
98
  }
99
99
 
100
100
  const request = createProxiedRequest(baseUrl, credential, fetchFunction);
@@ -206,11 +206,12 @@ async () => {
206
206
  body: { toolType: 'follower_explorer', targetUsername: 'elonmusk', resultsLimit: 1000 }
207
207
  });
208
208
  return job;
209
- // 20 tool types: reply_extractor, repost_extractor, quote_extractor, thread_extractor,
209
+ // 23 tool types: reply_extractor, repost_extractor, quote_extractor, thread_extractor,
210
210
  // article_extractor, follower_explorer, following_explorer, verified_follower_explorer,
211
211
  // mention_extractor, post_extractor, community_extractor, community_moderator_explorer,
212
212
  // community_post_extractor, community_search, list_member_extractor, list_post_extractor,
213
- // list_follower_explorer, space_explorer, people_search, tweet_search_extractor
213
+ // list_follower_explorer, space_explorer, people_search, tweet_search_extractor,
214
+ // favoriters, user_likes, user_media
214
215
  }
215
216
  \`\`\`
216
217
 
@@ -297,11 +298,11 @@ async () => {
297
298
 
298
299
  ## Cost
299
300
  - Free: /api/v1/compose, /api/v1/styles (cached lookup/save/delete/compare), /api/v1/drafts, /api/v1/radar, /api/v1/subscribe, /api/v1/account, /api/v1/api-keys, /api/v1/bot/*, /api/v1/integrations/*, /api/v1/x/accounts, /api/v1/automations/*, /api/v1/support/*
300
- - MPP pay-per-use (no account/subscription needed, 7 endpoints): GET /api/v1/x/tweets/:id ($0.0003/call), GET /api/v1/x/tweets/search ($0.0003/tweet), GET /api/v1/x/users/:username ($0.00036/call), GET /api/v1/x/followers/check ($0.002/call), GET /api/v1/x/articles/:tweetId ($0.002/call), POST /api/v1/x/media/download ($0.0003/media), GET /api/v1/trends ($0.0009/call)
301
+ - MPP pay-per-use (no account/subscription needed, 16 endpoints): GET /api/v1/x/tweets/:id ($0.00015/call), GET /api/v1/x/tweets/search ($0.00015/tweet), GET /api/v1/x/users/:username ($0.00015/call), GET /api/v1/x/users/:id/tweets ($0.00015/tweet), GET /api/v1/x/followers/check ($0.00105/call), GET /api/v1/x/articles/:tweetId ($0.00105/call), POST /api/v1/x/media/download ($0.00015/media), GET /api/v1/trends ($0.00045/call), GET /api/v1/x/trends ($0.00045/call), GET /api/v1/x/tweets/:id/quotes ($0.00015/tweet), GET /api/v1/x/tweets/:id/replies ($0.00015/tweet), GET /api/v1/x/tweets/:id/retweeters ($0.00015/user), GET /api/v1/x/tweets/:id/favoriters ($0.00015/user), GET /api/v1/x/tweets/:id/thread ($0.00015/tweet), GET /api/v1/x/users/:id/likes ($0.00015/tweet), GET /api/v1/x/users/:id/media ($0.00015/tweet)
301
302
  - Subscription required: /api/v1/styles (X API refresh when cache >7 days), /api/v1/x/profile, /api/v1/x/communities, /api/v1/x/dm, /api/v1/extractions, /api/v1/draws, /api/v1/monitors, /api/v1/events, /api/v1/webhooks, /api/v1/styles/:username/performance, /api/v1/trending/:source
302
303
  - Write actions (subscription required): POST /api/v1/x/tweets, DELETE /api/v1/x/tweets/:id, POST|DELETE /api/v1/x/tweets/:id/like, POST /api/v1/x/tweets/:id/retweet, POST|DELETE /api/v1/x/users/:id/follow, POST /api/v1/x/dm/:userId, POST /api/v1/x/media, PATCH /api/v1/x/profile, PATCH /api/v1/x/profile/avatar, PATCH /api/v1/x/profile/banner, POST|DELETE /api/v1/x/communities, POST|DELETE /api/v1/x/communities/:id/join
303
304
  - IMPORTANT: Always attempt the request. Never assume subscription status. The API returns a clear error if subscription is missing.
304
- - MPP MODE: When configured with tempoPrivateKey (no API key), the mppx SDK auto-handles 402 challenges by paying via Tempo (USDC). Only the 7 MPP-eligible endpoints work in this mode.
305
+ - MPP MODE: When configured with tempoPrivateKey (no API key), the mppx SDK auto-handles 402 challenges by paying via Tempo (USDC). Only the 16 MPP-eligible endpoints work in this mode.
305
306
 
306
307
  ## Error handling
307
308
  - If response contains "subscription is inactive" or status 402, call POST /api/v1/subscribe to get checkout URL