Skip to content
Back to skills

Openclaw X

ASecurity

Control your X/Twitter account — view timeline, search tweets, post, like, retweet, bookmark.

  • 33 stars
  • 0 votes
  • 0 copies
  • 3 views
  • Added September 5, 2026
content-marketingbashgitapi

Works with

  • api

Security analysis

A96/100
  • mediumUses curl or wget to download content

Pro shows the line behind each finding and how to fix it

Scanned September 5, 2026

npx -y skills add dvcrn/openclaw-skills-marketplace --skill openclaw-x --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Openclaw X?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Openclaw X
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/dvcrn-openclaw-x/badge)](https://www.skillsdirectory.com/skills/dvcrn-openclaw-x)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: openclaw-x
description: "Control your X/Twitter account — view timeline, search tweets, post, like, retweet, bookmark."
---

# OpenClaw X

Control your X/Twitter account via a local API.

## Prerequisites

1. Download the executable from [GitHub Release](https://github.com/bosshuman/openclaw-x/releases)
2. Export your X cookies from Chrome (using Cookie-Editor extension), save as `cookies.json` in the same directory
3. Run the executable, ensure the service is running at `http://localhost:19816`

## Available Actions

### 1. Get Home Timeline

```bash
curl http://localhost:19816/timeline?count=20
```

Returns the latest tweets including content, author, media URLs, etc.

### 2. Get Tweet Details

```bash
curl http://localhost:19816/tweet/{tweet_id}
```

Supports both tweet ID and full URL (e.g. `https://x.com/user/status/123456`).

### 3. Search Tweets

```bash
curl "http://localhost:19816/search?q=keyword&sort=Latest&count=20"
```

Parameters:
- `q`: Search keyword (required)
- `sort`: `Latest` or `Top`, default Latest
- `count`: Number of results, default 20

### 4. Post a Tweet

```bash
curl -X POST http://localhost:19816/tweet \
  -H "Content-Type: application/json" \
  -d '{"text": "Hello world"}'
```

Reply to a tweet:

```bash
curl -X POST http://localhost:19816/tweet \
  -H "Content-Type: application/json" \
  -d '{"text": "Reply content", "reply_to": "original_tweet_id"}'
```

### 5. Like a Tweet

```bash
curl -X POST http://localhost:19816/tweet/{tweet_id}/like
```

### 6. Retweet

```bash
curl -X POST http://localhost:19816/tweet/{tweet_id}/retweet
```

### 7. Bookmark a Tweet

```bash
curl -X POST http://localhost:19816/tweet/{tweet_id}/bookmark
```

### 8. Get User Info

```bash
curl http://localhost:19816/user/{username}
```

Returns username, avatar, bio, follower count, etc.

### 9. Get User Tweets

```bash
curl http://localhost:19816/user/{username}/tweets?count=20
```

## Common Use Cases

1. "Show me what's new on my timeline"
2. "Search for the latest tweets about AI Agents"
3. "Post a tweet saying: What a beautiful day!"
4. "Like this tweet https://x.com/xxx/status/123"
5. "Check what @elonmusk has been posting"
6. "Bookmark this tweet"

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

View all in content-marketing →

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.