← 返回
安全合规 Key

X/Twitter by altf1be

Post tweets, threads, and media to X/Twitter via API v2 — secure OAuth 1.0a signing, minimal dependencies (commander + dotenv only).
Post tweets, threads, and media to X/Twitter via API v2 — secure OAuth 1.0a signing, minimal dependencies (commander + dotenv only).
abdelkrim
安全合规 clawhub v1.1.3 3 版本 100000 Key: 需要
★ 1
Stars
📥 1,321
下载
💾 26
安装
3
版本
#latest

概述

X/Twitter by @altf1be

Post tweets, threads, and media to X/Twitter via the X API v2 with secure OAuth 1.0a signing.

Setup

  1. Get API keys from https://developer.x.com
  2. Set environment variables (or create .env in {baseDir}):
X_CONSUMER_KEY=your-api-key
X_CONSUMER_SECRET=your-api-secret
X_ACCESS_TOKEN=your-access-token
X_ACCESS_TOKEN_SECRET=your-access-token-secret
  1. Install dependencies: cd {baseDir} && npm install

Commands

# Verify connection
node {baseDir}/scripts/xpost.mjs verify

# Post a tweet
node {baseDir}/scripts/xpost.mjs tweet "Hello from OpenClaw! 🦞"

# Post with image
node {baseDir}/scripts/xpost.mjs tweet "Check this out!" --media ./screenshot.png

# Reply to a tweet
node {baseDir}/scripts/xpost.mjs tweet "Great point!" --reply 1234567890

# Post a thread (inline)
node {baseDir}/scripts/xpost.mjs thread "First tweet" "Second tweet" "Third tweet"

# Post a thread (from file, tweets separated by ---)
node {baseDir}/scripts/xpost.mjs thread --file ./thread.md

Thread file format

Create a file with tweets separated by ---:

🚀 Announcing something cool!
---
Here's why it matters...
---
Check it out: https://example.com
#OpenSource #AI

Security

  • OAuth 1.0a user context signing (no app-only auth for write operations)
  • No credentials printed to stdout
  • API calls use pure Node.js fetch + built-in node:crypto (no third-party HTTP or OAuth libraries)
  • Minimal dependencies: only commander (CLI framework) and dotenv (env loading)

Author

Abdelkrim BOUJRAF — ALT-F1 SRL, Brussels 🇧🇪

X: @altf1be

版本历史

共 3 个版本

  • v1.1.3 当前
    2026-03-27 20:37 安全 安全
  • v1.0.2
    2026-03-11 10:42
  • v1.0.1
    2026-03-07 01:50

安全检测

腾讯云安全 (Keen)

安全,无风险
查看报告

腾讯云安全 (Sanbu)

安全,无风险
查看报告

🔗 相关推荐

security-compliance

OpenClaw Backup

alex3alex
备份与恢复 OpenClaw 数据。适用于创建备份、设置自动备份计划、从备份恢复或管理备份轮转。处理 ~/.openclaw 目录归档并包含适当的排除规则。
★ 89 📥 30,586
productivity

Openclaw Skill M365 Task Manager

abdelkrim
使用 Microsoft To Do 与 Planner 管理轻量级 Microsoft 365 任务工作流,适用于需要快速创建、分配、跟踪并跟进操作的场景。
★ 1 📥 885
security-compliance

Skill Vetter

spclaudehome
AI智能体技能安全预审工具。安装ClawdHub、GitHub等来源技能前,检查风险信号、权限范围及可疑模式。
★ 1,211 📥 266,171