X Auto-Tweet (Browser)
by @nightfullstar
Automate posting on X by scraping trends, generating and scheduling tweets via browser without API costs, with approval workflows and human-like delays.
clawhub install x-automationπ About This Skill
X (Twitter) Automation Skill
Automate X posts via browser control - bypass $200/month API costs.
What It Does
Why This Exists
X API pricing is insane:
This skill uses browser automation instead. Zero API costs.
Features
β Trend Scraping
β Tweet Generation
β Scheduled Posting
β Browser Automation
Installation
cd ~/.openclaw/workspace/skills/x-automation
npm install
Usage
1. Manual Tweet Generation
Ask your agent:
"Check X trends and generate 3 tweet ideas"
The agent will: 1. Navigate to X.com/explore 2. Scrape trending topics 3. Generate tweet ideas 4. Send to you for approval 5. Post approved tweets
2. Automated Posting (Cron)
Set up a cron job to run every 4 hours:
{
"schedule": { "kind": "every", "everyMs": 14400000 },
"payload": {
"kind": "agentTurn",
"message": "Check X trends, generate 2-3 tweet ideas, send to Telegram for approval"
},
"sessionTarget": "isolated"
}
3. Direct Posting
"Post this tweet: "
Configuration
No API keys needed! Just:
1. Log in to X.com in OpenClaw browser 2. Keep browser session active (or re-login when needed) 3. Customize tweet voice in your SOUL.md or prompt
Tweet Generation Guidelines
Default focus areas (customize in your prompts):
Default tone:
File Structure
x-automation/
βββ scripts/
β βββ auto-tweet.js # Main automation
β βββ post.js # Single tweet posting
β βββ post-approved.js # Post from queue
β βββ check-trends.js # View current trends
βββ data/ # Created on first run
β βββ latest-trends.json
β βββ approved-queue.json
β βββ tweet-history.json
βββ SKILL.md
βββ README.md
βββ package.json
Safety Features
Anti-Detection
Limitations
Legal Note
This automates YOUR account via YOUR browser. You're not violating X ToS any more than using the website normally. Just don't spam.
Pro Tips
Optimal posting times (adjust for your timezone):
Posting frequency:
Content strategy:
Examples
See WORKFLOW.md for detailed examples of:
Support
This skill is credential-free and safe to share. No API keys, no passwords, no private data.
Issues? Check: 1. Is browser logged into X? 2. Is OpenClaw browser control running? 3. Are cron jobs properly configured?
Built for crypto devs who refuse to pay $200/month for an API that should be free.
π‘ Examples
See WORKFLOW.md for detailed examples of:
βοΈ Configuration
No API keys needed! Just:
1. Log in to X.com in OpenClaw browser 2. Keep browser session active (or re-login when needed) 3. Customize tweet voice in your SOUL.md or prompt