---
title: "Viraloop for AI Agents: API, MCP, CLI and Claude Skill"
description: "Give your agent a social media team. Viraloop exposes video generation, automations and publishing through a REST API, MCP servers, a CLI and a Claude Skill."
source: https://viraloop.io/agents
---
Viraloop for agents

# Give your agent a social media team

Every Viraloop capability is exposed the way agents consume it: a clean REST API, hosted and local MCP servers, a CLI with JSON output, and a Claude Skill that bootstraps itself. Hand your agent one scoped key and it can generate videos, run automations and keep your TikTok, Instagram and YouTube posting on autopilot.

[Create an API key](/settings/developers)[Developer docs](/developers)

Agent-readable index: https://viraloop.io/llms.txt

## Four ways to connect

All four are generated from the same API definition, so whichever your agent speaks, it sees the same operations.

### Claude Skill

Zero setup for Claude

One install teaches Claude the whole workflow: it sets up the CLI itself, generates content, publishes and monitors. If the CLI is missing, the skill installs it.

```
npx skills add Viraloop/viraloop-skill
```

[github.com/Viraloop/viraloop-skill →](https://github.com/Viraloop/viraloop-skill)

### Remote MCP

No install at all

A hosted MCP server with 23 tools, always in sync with the API. Point any MCP client at the URL with your key and start calling tools.

```
claude mcp add --transport http viraloop \
  https://viraloop.io/api/v1/mcp \
  --header "Authorization: Bearer vl_live_..."
```

[MCP setup guide →](/developers/docs/mcp)

### Local MCP

For stdio-only clients

The same tools served from your machine over stdio, one npx away. Ships inside the CLI package, so it can never lag the API.

```
claude mcp add viraloop \
  --env VIRALOOP_API_KEY=vl_live_... \
  -- npx -y viraloop-mcp
```

[MCP setup guide →](/developers/docs/mcp)

### CLI

For scripts and shells

Every endpoint as a command with --json output, agent-friendly exit codes and --wait polling for async work.

```
npm install -g viraloop
viraloop login
viraloop generate --count 3 --json
```

[npmjs.com/package/viraloop →](https://www.npmjs.com/package/viraloop)

## What your agent can do

### Generate ready-to-post videos

Batches of AI suggestions built from your brand context: wall-of-text, slideshow and green-screen formats with captions, hashtags and a rationale.

### Publish and schedule

Post to connected TikTok, Instagram and YouTube accounts, now or at a scheduled slot. Server-side rendering and per-platform results included.

### Run automations end to end

Create an automation, generate a week of posts in one call, review them, launch. Everything publishes itself at its slot.

### Talking-head influencer videos

Generate videos of your AI influencers speaking any script, then post the result anywhere.

### Read performance

Views, likes, comments and shares per platform on every post, plus the posting calendar to plan around.

### Track spend

Credit balance and a full ledger, so an agent can check before it spends and report after.

## Built to be trusted with a key

Keys are scoped (new ones default to read-only), revocable in one click, rate limited per key, and every request shows up in your usage dashboard. Posting is restricted to the accounts your team connected, and credits are the hard ceiling on anything that generates media.

[Manage keys](/settings/developers)[How auth works](/developers/docs/authentication)
