← Back to blog

Social Media CLI for AI Agent Builders — Infrastructure for Content Automation

· MCP & AI Agents · 5 min read

Building an AI agent that posts to social media is easy. Building one that generates UGC content first is harder. ReelsFarm CLI gives agent builders a typed TypeScript SDK and CLI that handles generation and publishing as infrastructure. Here is how to build on top of it.

Most social media APIs give you posting. Text, images, links. Distribute content your agent did not create.

ReelsFarm CLI gives your agent creation. AI avatars. Product scenes. Slideshows. Hooks. Content your agent generates, not just content it ships.

What You Get

The TypeScript SDK is `@reelsfarm/mcp-client`. MIT license. Open source. Typed with TypeScript.

The CLI is the `reelsfarm` binary. Same capabilities. Terminal-native.

Both connect to ReelsFarm's generation infrastructure. The client code is open source. The generation capability behind it is paid.

Typed SDK

The SDK gives you typed methods for every ReelsFarm capability.

Avatar generation. Slideshow creation. Product scene compositing. Hook generation. Post scheduling. Account management. Asset library management.

Everything is typed. Your IDE autocompletes. Your agent gets structured outputs it can act on.

Prepare-Then-Confirm Built In

Every destructive method follows prepare-then-confirm.

Your agent calls prepare. ReelsFarm generates a draft. Your application presents the draft to the user. The user approves. Your agent calls confirm. The action executes.

The confirmation pattern is built into the SDK. Your application handles the review UI. The SDK enforces the confirmation requirement.

What Your Agent Can Do

Generate AI avatars from text descriptions or identity references. Composite products into UGC scenes with consistent avatars. Create TikTok slideshows with hooks, captions, and music timing. Generate hook libraries for testing. Manage AI character profiles across videos. Manage product asset libraries.

Schedule and publish to TikTok, Instagram, YouTube, and Facebook.

Your agent creates the content and publishes it. One SDK. One pipeline.

Getting Started

```bash npm install @reelsfarm/mcp-client ```

Create an API key in your ReelsFarm account. Pass it to the SDK.

Build your agent. The SDK handles generation and publishing. You handle the agent logic and user experience.

Related reading

Related comparisons

Turn one idea into a week of content.

Create, schedule, and publish AI-powered posts from one workflow built for consistent social growth.

Start for free