✓ Verified 💻 Development ✓ Enhanced Data

Twitter Api

Cookie-based Twitter/X automation toolkit (timeline, notifications, posting, follow ops) for OpenCla

Rating
4.1 (433 reviews)
Downloads
27,986 downloads
Version
1.0.0

Overview

Cookie-based Twitter/X automation toolkit (timeline, notifications, posting, follow ops) for OpenClaw agents.

Complete Documentation

View Source →

twitter-agent-skill

Summary

Async Twitter/X client and scripts that rely on auth_token + ct0 cookies (no official API keys). Supports:
  • Home timeline fetch + summary (scripts/timeline_summary.py).
  • Notifications fetch + signal analysis (scripts/fetch_notifications.py, scripts/analyze_signal.py).
  • Posting and follow automation via env-driven account labels (scripts/post_custom_tweet.py, scripts/follow_account.py).
  • Full async client (twitter_api/) with modules for tweets, users, relationships, DMs, etc.

Setup

  • pip install -r requirements.txt (Python 3.10+).
  • Copy .env.example.env and fill cookies per account (auth_token + ct0 from logged-in sessions).
  • Run scripts from repo root, e.g.:
text
python scripts/timeline_summary.py
   python scripts/post_custom_tweet.py account_a "hello"
   python scripts/follow_account.py thenfter07

Notes

  • Env variable names are generic (ACCOUNT_A_AUTH_TOKEN, etc.); rename as needed and adjust ACCOUNT_ENV dicts in the scripts.
  • Respect Twitter/X ToS and do not spam.
  • Designed for GanClaw social ops, but neutral enough for other agents to reuse.

Installation

Terminal bash

openclaw install twitter-api
    
Copied!

💻Code Examples

example.txt
python scripts/timeline_summary.py
   python scripts/post_custom_tweet.py account_a "hello"
   python scripts/follow_account.py thenfter07

Tags

#coding_agents-and-ides #api #automation

Quick Info

Category Development
Model Claude 3.5
Complexity Multi-Agent
Author gan12003
Last Updated 3/10/2026
🚀
Optimized for
Claude 3.5
🧠

Ready to Install?

Get started with this skill in seconds

openclaw install twitter-api