Token导航 LogoToken导航

Agent Skill · 效率

x-twitter-browser(x 推特浏览器)

x-twitter-browser 用于处理浏览器自动化、网页检查和页面信息提取,适合在 OpenClaw 中需要让 Agent 打开页面、读取网页或验证前端流程时使用。可结合来源仓库、安装命令和原始 README 继续核验具体用法。安装前建议确认权限范围、维护状态,以及是否会触发联网、命令执行或文件读写。

x-twitter-browser 是效率类 Agent Skill,可用宿主为 OpenClaw,通过ClawHub获取,权限为操作浏览器;许可证为 MIT-0,第三方扫描已通过,按安装量在效率类的 21,003 个 Skill 里排第 3,761。

总安装 15,644周安装 672GitHub Stars 1下载 5,484核验 2026-05-01

安装说明

本站只整理中文说明,不托管安装包,也不代用户安装。
GitHub
许可证
MIT-0
版本
1.0.10

安装方式

通过对话安装

复制提示词发给支持本地命令或 Skills 的 AI 助手,先确认命令和权限,再让它执行。

请帮我安装这个 Agent Skill:x-twitter-browser(x 推特浏览器)
来源仓库:https://github.com/zhanghanjun2/x-twitter-browser
安装命令:
openclaw skills install x-twitter-browser
安装前请先检查当前环境是否支持对应 CLI,并向我确认将要执行的命令、安装目录、联网范围和文件读写权限;确认后再执行。

命令行安装

复制命令到本机终端执行。该命令会通过 OpenClaw 从第三方来源获取 Skill;本站只展示命令,不托管安装包,也不自动执行。

ClawHubOpenClaw
openclaw skills install x-twitter-browser

这个 Skill 是做什么的

效率类 Skill 把重复的整理、汇总、转换工作交给助手完成,减少手工复制粘贴。

通过真实的浏览器会话登录 X/Twitter 并执行操作 - 通过 Headless Playwright 发布、回复、转发、点赞和添加书签推文。

上手步骤

4 步
  1. 1

    确认自己的宿主工具

    公开资料标注支持 OpenClaw;先确认自己用的是其中之一,再按对应工具的 Skills 目录放置。

  2. 2

    拿到安装命令

    可以直接复制的命令是 openclaw skills install x-twitter-browser;命令里的占位符换成自己的路径或密钥再执行。

  3. 3

    安装后重启宿主

    命令执行完要完全退出宿主工具再打开,让新装的 Skill 被重新扫描到,否则列表里可能看不到。

  4. 4

    按最小权限试用

    它需要操作浏览器,先在测试目录或测试账号里跑,确认没问题再放到正式项目。

常见问题

6 条

x-twitter-browser 怎么安装?

在终端执行 openclaw skills install x-twitter-browser。装完完全退出宿主工具再打开,让它重新扫描本地 Skill。

x-twitter-browser 支持哪些 AI 工具?

公开资料标注支持 OpenClaw。其他工具只要能读取本地 Skill 目录,一般也能手动放进去,但要自己确认触发方式是否一致。

x-twitter-browser 需要什么权限?

权限级别是操作浏览器。该 Skill 可能涉及浏览器控制能力,使用时可能读取或操作网页内容,需要在受控环境中确认权限边界。

x-twitter-browser 是免费的吗?

来源标注的许可证是 MIT-0。本站不代收任何费用,也不托管安装包;能否商用、要不要署名,以许可证原文为准。

x-twitter-browser 用的人多吗?

公开数据是累计安装 15,644 次,近一周安装 672 次,下载 5,484 次,GitHub 1 星。这些数字来自第三方目录统计,只能当作热度参考,不代表质量或安全性。

x-twitter-browser 安全吗?

第三方扫描结果为通过,但这只覆盖已知的静态检查项,不能替代自己读一遍源码和安装命令。

值得选的地方和要先想清楚的地方

值得选的地方

  • 专注 OpenClaw 一种宿主,触发方式和使用习惯不用来回切换。
  • 许可证明确为 MIT-0,商用和分发边界好判断。
  • 第三方扫描已通过,常见的高风险行为没有命中。

先想清楚的地方

  • 第三方目录整理,版本更新和行为细节以来源仓库为准。

适不适合你

更适合

  • 已经在用 OpenClaw,想直接扩展它能力的人。
  • 需要处理效率类任务、又不想每次都手写提示词的人。
  • 需要许可证清楚、并且有第三方扫描结果的团队项目。

不太适合

  • 需要厂商级技术支持和 SLA 的生产系统。

效率类 Skill 对比

6 个同类
Skill总安装GitHub 星权限许可证扫描
github

GitHub 代码协作 · OpenClaw

7,632,918545需要联网MIT-0通过
nano-pdf

Nano PDF 文档 · OpenClaw

4,249,476231需要联网MIT-0通过
auto-updater

自动更新程序 · OpenClaw

2,964,063386操作浏览器MIT-0通过
video-frames

视频帧 · OpenClaw

2,621,304112需要联网MIT-0通过
gemini

Gemini 助手 · OpenClaw

2,547,39648需要联网MIT-0有提醒
x-twitter-browser

x 推特浏览器 · 本页

15,6441操作浏览器MIT-0通过

按安装量取同分类前几名;数字来自第三方目录统计,只作热度参考,不代表质量结论。

SKILL.md 原文

name
x-twitter-browser
description
Log in to X/Twitter via a real browser session and perform actions — posting, replying, reposting, liking, and bookmarking tweets via headless Playwright.
version
2.0.0
user-invocable
true
metadata
openclaw
emoji
🐦
skillKey
x-twitter-browser
requires
bins
allowed-tools
Bash(python3:*)

x-twitter-browser

Execute browser actions on X using a saved login session, without the official X API.

Users log in once via a visible browser window. The session is saved and reused for all subsequent headless operations.

After installing into OpenClaw, the skill lives at:

~/.openclaw/workspace/skills/x-twitter-browser/

Commands below assume you run from the skill root directory:

cd ~/.openclaw/workspace/skills/x-twitter-browser

Use cases

  • You want to automate X actions without the official API
  • Running headless on a VM or Linux server
  • Building a long-term extensible browser skill for X automation

Architecture

This skill has two layers:

1. Session layer

Manages login and cookie persistence (stored in the centralised OpenClaw auth directory):

  • scripts/setup_session.py — log in via visible browser, save cookies
  • ~/.openclaw/auth/x-twitter/cookies.json — Playwright storage state

2. Action layer

Performs actions using the saved session:

  • Post tweet: scripts/post_tweet.py
  • Reply to tweet: scripts/reply_post.py
  • Repost (retweet) / Quote tweet: scripts/repost_post.py
  • Like / Unlike tweet: scripts/like_post.py
  • Bookmark / Remove bookmark: scripts/bookmark_post.py

Dependencies

First-time setup (installs Playwright + Chromium):

./scripts/setup.sh

Note: Chromium download is ~150MB and may take several minutes on first run.

OpenClaw: When running setup.sh via OpenClaw, it executes in the background and the user cannot see the echo output. Forward each progress message to the user so they know the setup is progressing.

Session management

Session cookies are stored in ~/.openclaw/auth/x-twitter/cookies.json (centralised auth directory shared by all OpenClaw skills, survives skill updates). Do not commit or share this file.

Log in (first time or when session expires)

This is a two-phase process. You (the agent) drive both phases — the user does not need to touch the terminal.

Phase 1 — Launch the login browser:

python3 scripts/setup_session.py

This opens a visible browser window at the X login page. The script prints a banner and waits for Enter on stdin before saving cookies. Once the browser is open, tell the user:

A browser window has opened with the X login page. Please log in with your account (username, password, 2FA if prompted). Once you see the home timeline, let me know.

Then wait for the user to confirm they have logged in. Do NOT send Enter yet.

Phase 2 — After the user confirms they are logged in:

Send Enter (newline) to the waiting script's stdin to trigger cookie saving. Check the output for Session saved to confirm success.

If the output shows a WARNING ("The page still looks like a login page"), ask the user to double-check they are actually logged in and can see the home timeline. Once confirmed, send Enter again to save anyway.

Verify session

python3 scripts/setup_session.py --verify-only

Success looks like:

Session looks valid: https://x.com/home

If verification fails, re-run the two-phase login flow above.

OpenClaw / headless-only environments

If running on a headless VM, set up the session on a local machine first, then copy:

scp ~/.openclaw/auth/x-twitter/cookies.json user@server:~/.openclaw/auth/x-twitter/cookies.json

Workflow

1. Set up session (once)

Follow the two-phase login flow in the "Session management" section above. Do not simply run setup_session.py and tell the user to press Enter — you must run it, wait for the user to confirm login, then send Enter yourself.

2. Post a tweet

python3 scripts/post_tweet.py \
  --text "hello"

3. Reply to a tweet

python3 scripts/reply_post.py \
  --tweet "https://x.com/username/status/123456789" \
  --text "My reply"

4. Repost (retweet) a tweet

Plain repost (no comment):

python3 scripts/repost_post.py \
  --tweet "https://x.com/username/status/123456789"

Quote tweet (repost with your comment):

python3 scripts/repost_post.py \
  --tweet "https://x.com/username/status/123456789" \
  --text "My comment"

For both reply and repost, --tweet accepts a full URL or just the tweet ID.

5. Like a tweet

python3 scripts/like_post.py \
  --tweet "https://x.com/username/status/123456789"

Unlike (remove like):

python3 scripts/like_post.py \
  --tweet "https://x.com/username/status/123456789" \
  --undo

6. Bookmark a tweet

python3 scripts/bookmark_post.py \
  --tweet "https://x.com/username/status/123456789"

Remove bookmark:

python3 scripts/bookmark_post.py \
  --tweet "https://x.com/username/status/123456789" \
  --undo

For like and bookmark, --tweet accepts a full URL or just the tweet ID.

Rules

  • --verify-only success means the session is likely usable
  • If the page behaves oddly, buttons are disabled, or extra dialogs appear, re-run setup_session.py
  • If Chromium fails to start, run ./scripts/setup.sh to install browser deps

Operational requirements

  • Before the first action, check if session exists; if not, run the two-phase login flow (see "Session management" above)
  • Run --verify-only before any write operation
  • Confirm the action and content before executing
  • Do not commit cookies to the repo (~/.openclaw/auth/)
  • Call scripts/*.py directly

Troubleshooting

No saved session. Run setup_session.py first to log in to X.

No cookies found at ~/.openclaw/auth/x-twitter/cookies.json. Run the two-phase login flow (see "Session management" above).

Session is not authenticated

  • Session cookies expired (typically lasts days to weeks)
  • Account triggered extra verification

Re-run the two-phase login flow to log in again.

平台分布

OpenClaw

72.48%
按下载量换算3,975

安全审计

VirusTotal

通过

ClawScan

通过

Static analysis

通过

权限和风险

操作浏览器

该 Skill 可能涉及浏览器控制能力,使用时可能读取或操作网页内容,需要在受控环境中确认权限边界。

安装前确认

本站仅展示第三方公开信息,不托管安装包,不提供自动安装或运行环境。安装前应自行审查源码、依赖和命令行为。目前只有一个公开来源,建议同时核对源仓库。

继续浏览同类 Skills