Available in
Marketplaces, most starred first
Tags
Add to README
Shows its components, always-on context cost and install status, kept current. Add ?tokens=0 to hide the cost.
Marketplaces, most starred first
Shows its components, always-on context cost and install status, kept current. Add ?tokens=0 to hide the cost.
Marketplaces, most starred first
Shows its components, always-on context cost and install status, kept current. Add ?tokens=0 to hide the cost.
By ayrshare Verified Orgv0.3.0MITIn 1 marketplace
Schedule, publish and analyze social posts across networks like Instagram, LinkedIn and X from Claude Code. Needs an Ayrshare API key, and a hook asks for confirmation before each post is created or updated.
Trending plugins
7-day copy clicks
You run one by typing its /name in Claude Code.
1 caution to review before installing
Connects to a remote server outside your machine
Static checks of hooks, mods, MCP servers and commands. Not a security audit.
1 marketplace, most starred first
social-media, scheduling, publishing, analytics, instagram, tiktok, ayrshare, mcp ·
Shows its components, always-on context cost and install status, kept current. Add ?tokens=0 to hide the cost.
Claude Code asks for these when you enable the plugin. Sensitive values are stored in your system keychain.
Ayrshare API keyapi_key
Your Ayrshare API key, from app.ayrshare.com under Settings, then API Key. It is sent to the Ayrshare API on every call and is stored in your system's secure credential store.
SensitivestringRequired
X Consumer Key (optional)x_api_key
Your X app's Consumer Key (also called API Key), from the X Developer Console under OAuth 1.0 Keys. Needed for any X/Twitter call (posting, analytics, messages). Set it together with the X Consumer Secret, or leave both empty. Once saved, a blank field keeps the old value.
Sensitivestring
Profile-Key (optional)profile_key
A client profile's Profile-Key, to make every call act as that client by default. Leave it empty to act on your primary profile. Once saved, a blank field keeps the old value; run /ayrshare:setup to remove it.
Sensitivestring
X Consumer Secret (optional)x_api_secret
Your X app's Consumer Secret (also called API Key Secret), shown with the Consumer Key in the X Developer Console. Needed for any X/Twitter call (posting, analytics, messages). Set it together with the X Consumer Key, or leave both empty. Once saved, a blank field keeps the old value.
Sensitivestring
The unified social media API for AI agents. Publish, schedule, and analyze across 14+ networks directly from Claude Code, with post history for brand voice and validation against each platform's rules before every post. Powered by the Ayrshare API.
claude plugin marketplace add ayrshare/ayrshare-social-media-api-claude-plugin
claude plugin install ayrshare@ayrshare
Requires Claude Code 2.1.119 or later. Then, inside Claude Code, run /plugin configure ayrshare@ayrshare and enter your API key, then run /reload-plugins (or restart Claude Code) so the tools load. Claude Code stores the key in your system's secure credential store. If you added Ayrshare from Claude's plugin directory on claude.ai instead, Claude Code knows it as ayrshare@synced, so run /plugin configure ayrshare@synced. Plugins from claude.ai appear in Claude Code 2.1.273 or later; on an older version, update Claude Code or install from this repository's marketplace as above. If your Claude Code doesn't open the settings from either command, run /plugin, open the Installed tab, select ayrshare, then Configure options. In the VS Code extension, type /plugins and click the gear icon on the ayrshare row. /ayrshare:setup walks you through it. Scopes and other install paths are under Installation below.
Then use the plugin by asking in plain English (e.g. "show my recent Instagram posts", "post this to LinkedIn tomorrow at 9am"); the tools fire on intent, and the trigger-skills route them. /ayrshare:setup is the only slash command, so there is no /ayrshare:post or /ayrshare:get_post_history to type.
The plugin lets an agent run the full social workflow without leaving Claude Code. Before publishing, the agent validates each post against the target network's rules and asks you to confirm, so avoidable rejections are caught before anything goes live. A single request publishes to Facebook, Instagram, LinkedIn, X, TikTok, YouTube, Pinterest, Reddit, Telegram, Threads, Bluesky, and others. Post history is available for matching a brand's voice, and analytics can be read back to inform the next post. Platform integrations are maintained by Ayrshare, so upstream API changes are handled outside your code. The API currently handles 30M+ calls per day.
An LLM can generate an OAuth flow, but it does not cover Meta Tech Provider approval, X's pay-per-use API changes, or ongoing maintenance when a network changes its rules. The plugin handles:
validate_post dry-runs content against each network's rules (length, format, media requirements) before you publish, and validate_media checks that a media URL is reachable before you attach it in mediaUrls. X BYOK is supported for the 2026 mandate, and platform integrations are maintained so an upstream API change does not break your integration.By default the plugin validates a post and requests confirmation before publishing. The agent prepares the draft; the user approves it.
A PreToolUse hook (hooks/hooks.json) also makes Claude Code ask you before it runs any tool with a live side effect. If you decline, the tool does not run and no request reaches Ayrshare. The hook covers these tools:
| Tool | Why it asks |
|---|---|
create_post, update_post, retry_post | Publishes, schedules, or changes a post on real social accounts. |
add_comment, reply_comment | Posts a comment in public. |
send_message | Sends a direct message. |
set_auto_response | Turns the DM auto-responder on or off, or changes its reply. |
create_profile | Creates a client profile, which uses profile quota and cannot be deleted through MCP. |
update_ad | Pauses, resumes, deletes, or archives a boosted ad, which changes real ad spend. The same status is also set on the ad's ad set and campaign, so other ads there change too. |
boost_post | Boosts a published post as a paid ad, which spends real money from the ad account. |
register_webhook, unregister_webhook | Changes where Ayrshare sends your account's events, including message and comment content. |
7-day copy clicks
Built from public signals: copy clicks on this site, GitHub stars and activity, the README and the manifest. Not a security audit or an endorsement.
npx claudepluginhub ayrshare/ayrshare-social-media-api-claude-plugin --plugin ayrsharePlugins from other owners that cover similar ground