Overview
The/x-integration skill adds X (formerly Twitter) capabilities to NanoClaw Pro through browser automation. Post tweets, like, reply, retweet, and quote tweets directly from your messaging channels.
Currently supports WhatsApp channel. Browser automation runs in the agent container.
Features
| Action | Tool | Description |
|---|---|---|
| Post | x_post | Publish new tweets |
| Like | x_like | Like any tweet |
| Reply | x_reply | Reply to tweets |
| Retweet | x_retweet | Retweet without comment |
| Quote | x_quote | Quote tweet with comment |
Prerequisites
How to Apply
Setup authentication
Run the interactive authentication script:This opens Chrome for X login and saves credentials to
data/x-auth.json.What Changes
Files Added
.claude/skills/x-integration/agent.ts- X automation tools.claude/skills/x-integration/scripts/setup.ts- Authentication setupdata/x-auth.json- Saved authentication (gitignored)
Files Modified
container/Dockerfile- Copies X integration skillcontainer/agent-runner/src/index.ts- Registers X tools
Usage
Post a Tweet
Like a Tweet
Reply to a Tweet
Quote Tweet
Configuration
Environment Variables
CHROME_PATH- Path to Chrome binary (optional, auto-detected on macOS)X_AUTH_FILE- Path to auth file (default:data/x-auth.json)
Authentication
Authentication is saved todata/x-auth.json and includes:
- Session cookies
- CSRF tokens
- User metadata
Troubleshooting
Authentication expired
Authentication expired
X sessions expire after ~30 days. Re-run setup:
Chrome not found
Chrome not found
Set
CHROME_PATH in .env:Rate limiting
Rate limiting
X may rate-limit automated actions. The skill includes:
- Automatic retry with exponential backoff
- Realistic delays between actions
- User-agent rotation
Related Documentation
WhatsApp Channel
Setup WhatsApp for X integration
Container Isolation
How browser automation is sandboxed