twitter-automation
Post, like, retweet, and manage Twitter/X accounts via CLI commands.
- Nine app commands covering tweet posting with media, liking, retweeting, DM sending, user following, and profile retrieval
- Supports media attachment through URLs, enabling workflows that combine image or video generation with social posting
- Requires inference.sh CLI authentication; integrates with other inference.sh skills for end-to-end content creation and distribution pipelines
Twitter/X Automation
Automate Twitter/X via inference.sh CLI.

Quick Start
Requires inference.sh CLI (
belt). Install instructions
belt login
# Post a tweet
belt app run x/post-tweet --input '{"text": "Hello from inference.sh!"}'
Available Apps
| App | App ID | Description |
|---|---|---|
| Post Tweet | x/post-tweet |
Post text tweets |
| Create Post | x/post-create |
Post with media |
| Like Post | x/post-like |
Like a tweet |
| Retweet | x/post-retweet |
Retweet a post |
| Delete Post | x/post-delete |
Delete a tweet |
| Get Post | x/post-get |
Get tweet by ID |
| Send DM | x/dm-send |
Send direct message |
| Follow User | x/user-follow |
Follow a user |
| Get User | x/user-get |
Get user profile |
Examples
Post a Tweet
belt app run x/post-tweet --input '{"text": "Just shipped a new feature! 🚀"}'
Post with Media
belt app sample x/post-create --save input.json
# Edit input.json:
# {
# "text": "Check out this AI-generated image!",
# "media_url": "https://your-image-url.jpg"
# }
belt app run x/post-create --input input.json
Like a Tweet
belt app run x/post-like --input '{"tweet_id": "1234567890"}'
Retweet
belt app run x/post-retweet --input '{"tweet_id": "1234567890"}'
Send a DM
belt app run x/dm-send --input '{
"recipient_id": "user_id_here",
"text": "Hey! Thanks for the follow."
}'
Follow a User
belt app run x/user-follow --input '{"username": "elonmusk"}'
Get User Profile
belt app run x/user-get --input '{"username": "OpenAI"}'
Get Tweet Details
belt app run x/post-get --input '{"tweet_id": "1234567890"}'
Delete a Tweet
belt app run x/post-delete --input '{"tweet_id": "1234567890"}'
Workflow: Generate AI Image and Post
# 1. Generate image
belt app run falai/flux-dev-lora --input '{"prompt": "sunset over mountains"}' > image.json
# 2. Post to Twitter with the image URL
belt app run x/post-create --input '{
"text": "AI-generated art of a sunset 🌅",
"media_url": "<image-url-from-step-1>"
}'
Workflow: Generate and Post Video
# 1. Generate video
belt app run google/veo-3-1-fast --input '{"prompt": "waves on a beach"}' > video.json
# 2. Post to Twitter
belt app run x/post-create --input '{
"text": "AI-generated video 🎬",
"media_url": "<video-url-from-step-1>"
}'
Related Skills
# Full platform skill (all 250+ apps)
npx skills add inference-sh/skills@infsh-cli
# Image generation (create images to post)
npx skills add inference-sh/skills@ai-image-generation
# Video generation (create videos to post)
npx skills add inference-sh/skills@ai-video-generation
# AI avatars (create presenter videos)
npx skills add inference-sh/skills@ai-avatar-video
Browse all apps: belt app list
Documentation
- X.com Integration - Setting up Twitter/X integration
- X.com Integration Example - Complete Twitter workflow
- Apps Overview - Understanding the app ecosystem
More from inference-sh/skills
agent-tools
Run 250+ AI apps via inference.sh CLI - image generation, video creation, LLMs, search, 3D, Twitter automation. Models: FLUX, Veo, Gemini, Grok, Claude, Seedance, OmniHuman, Tavily, Exa, OpenRouter, and many more. Use when running AI apps, generating images/videos, calling LLMs, web search, or automating Twitter. Triggers: inference.sh, infsh, ai model, run ai, serverless ai, ai api, flux, veo, claude api, image generation, video generation, openrouter, tavily, exa search, twitter api, grok
745ai-image-generation
Generate AI images with GPT-Image-2, FLUX, Gemini, Grok, Seedream, Reve and 50+ models via inference.sh CLI. Models: GPT-Image-2, FLUX Dev LoRA, FLUX.2 Klein LoRA, Gemini 3 Pro Image, Grok Imagine, Seedream 4.5, Reve, ImagineArt. Capabilities: text-to-image, image-to-image, inpainting, LoRA, image editing, upscaling, text rendering. Use for: AI art, product mockups, concept art, social media graphics, marketing visuals, illustrations. Triggers: flux, image generation, ai image, text to image, stable diffusion, generate image, ai art, midjourney alternative, dall-e alternative, text2img, t2i, image generator, ai picture, create image with ai, generative ai, ai illustration, grok image, gemini image, gpt image, openai image, chatgpt image
736ai-video-generation
Generate AI videos with Google Veo, Seedance 2.0, HappyHorse, Wan, Grok and 40+ models via inference.sh CLI. Models: Veo 3.1, Veo 3, Seedance 2.0, HappyHorse 1.0, Wan 2.5, Grok Imagine Video, OmniHuman, Fabric, HunyuanVideo. Capabilities: text-to-video, image-to-video, reference-to-video, video editing, lipsync, avatar animation, video upscaling, foley sound. Use for: social media videos, marketing content, explainer videos, product demos, AI avatars. Triggers: video generation, ai video, text to video, image to video, veo, animate image, video from image, ai animation, video generator, generate video, t2v, i2v, ai video maker, create video with ai, runway alternative, pika alternative, sora alternative, kling alternative, seedance, happyhorse
733web-search
Web search and content extraction with Tavily and Exa via inference.sh CLI. Apps: Tavily Search, Tavily Extract, Exa Search, Exa Answer, Exa Extract. Capabilities: AI-powered search, content extraction, direct answers, research. Use for: research, RAG pipelines, fact-checking, content aggregation, agents. Triggers: web search, tavily, exa, search api, content extraction, research, internet search, ai search, search assistant, web scraping, rag, perplexity alternative
626agent-browser
Browser automation for AI agents via inference.sh. Navigate web pages, interact with elements using @e refs, take screenshots, record video. Capabilities: web scraping, form filling, clicking, typing, drag-drop, file upload, JavaScript execution. Use for: web automation, data extraction, testing, agent browsing, research. Triggers: browser, web automation, scrape, navigate, click, fill form, screenshot, browse web, playwright, headless browser, web agent, surf internet, record video
625python-executor
Execute Python code in a safe sandboxed environment via [inference.sh](https://inference.sh). Pre-installed: NumPy, Pandas, Matplotlib, requests, BeautifulSoup, Selenium, Playwright, MoviePy, Pillow, OpenCV, trimesh, and 100+ more libraries. Use for: data processing, web scraping, image manipulation, video creation, 3D model processing, PDF generation, API calls, automation scripts. Triggers: python, execute code, run script, web scraping, data analysis, image processing, video editing, 3D models, automation, pandas, matplotlib
589