Skip to content
AI Agents CLIAI Agents CLI + Postemi

Schedule Social Media Posts from Any AI Agent with the CLI

  • Install it with npm install -g postemi
  • JSON output and a SKILL.md your agent can read
  • 20 platforms, including X, LinkedIn, Instagram and TikTok
Setup

How do I connect Postemi to AI Agents CLI?

Any agent that can run a command can use the CLI: Claude Code, Codex, Cursor, Hermes Agent, OpenClaw and others.
1Connectabout a minute

Add Postemi to AI Agents CLI

auth:login opens the browser, where you approve the device. On a server, set POSTEMI_API_KEY instead.

terminal
npm install -g postemi
postemi auth:login
2Asklive in Postemi

Then just ask AI Agents CLI

Once connected, AI Agents CLI calls the Postemi tools. Scheduled posts go out on time, even after you close the chat.

Schedule a post to X and LinkedIn for tomorrow at 9:00 announcing our new feature. Keep it short.
AI Agents CLI

Done. I found your X and LinkedIn accounts and scheduled both posts for 9:00 tomorrow. Want me to save a version for Instagram as a draft too?

via PostemiXLinkedIn
Also try
  • List my connected channels
  • Plan a week of posts about our launch
  • Save this as a draft instead
  1. 1

    Connect your social accounts in Postemi

    Sign in to Postemi and connect the accounts your agent may post to.

  2. 2

    Install and sign in

    auth:login opens the browser, where you approve the device. On a server, set POSTEMI_API_KEY instead.

  3. 3

    Point your agent at the skill

    The npm package includes SKILL.md, a reference written for agents. Copy it to your agent's skills folder, or tell the agent to read it.

  4. 4

    Ask your agent

    It runs the commands and reads the JSON they print.

Point your agent at the skill
terminal
postemi integrations:list
postemi posts:create -c "Hello" -i "<id>" \
-s "2026-11-02 09:00" --timezone Europe/London
One connection

One AI Agents CLI connection powers every channel you run

Connect your accounts in Postemi once. From then on AI Agents CLI can post to any of them, 20 platforms today, without a separate setup per network.

  • Each account keeps its own rules and character limit, and AI Agents CLI reads them first.
  • One request can go to several platforms, with the text adapted to each.
  • New accounts you connect in Postemi show up for AI Agents CLI at once.
Ways to connect

The CLI or the MCP server?

Both reach the same Postemi account. Many agents can use either.
The Postemi CLIShell
Setup
npm install -g postemi, then postemi auth:login
Needs
Node.js and a shell
Sign-in
Browser device sign-in, or POSTEMI_API_KEY
Best for
Scripts, cron, CI and analytics
The MCP serverNo install
Setup
Add https://mcp.postemi.com/mcp to your agent
Needs
An MCP client
Sign-in
Your Postemi account in the browser, no key
Best for
Chat apps and agents without a shell
What it can do

What can AI Agents CLI do with Postemi?

Every command the CLI has, grouped by what your agent does with it.

Create posts

posts:create makes a draft, a scheduled post or publishes now. Repeat -c for a thread.

Read and fix the calendar

posts:list, posts:find-slot, posts:status and posts:delete keep the plan in order.

Know the channels

integrations:list gives the ids; integrations:settings gives each channel's rules and limits.

Upload media

postemi upload sends a file and returns the URL that -m needs.

Read analytics

analytics:platform and analytics:post show how a channel and a post performed.

Built for agents

JSON on stdout, status and errors on stderr, a non-zero exit code on failure.

The MCP server

What is the Postemi MCP?

MCP (Model Context Protocol) is the other way in. Postemi runs a hosted MCP server at https://mcp.postemi.com/mcp, for agents that cannot run commands, like ChatGPT or Claude on the web.

The CLI and the MCP server use the same account and the same calendar. You can let a coding agent use the CLI and a chat app use MCP at the same time.

How AI Agents CLI uses Postemi

Once Postemi is connected, AI Agents CLI finds the tools by itself and calls them when you ask for a post.

  • Reads your connected accounts and each one's rules
  • Checks the calendar and your time zone before it picks a time
  • Can show a preview per account before it creates a post
  • Saves a draft, schedules, or publishes now, as you asked
  • Adds images and video from a link, or from an upload link you open
Server URL

https://mcp.postemi.com/mcp

SKILL.md (excerpt)
---
name: postemi
description: Postemi schedules and publishes social posts
from the command line.
---
Rule 1: Authenticate before anything.
Rule 2: Every file passed to -m must first go
through postemi upload.
# Tools it gets:
# list_integrations connected accounts
# get_integration_schema rules and limits
# list_posts the calendar
# preview_post what would go out
# create_post draft, schedule, publish
# delete_post remove an unpublished post
# upload_media_from_url add an image or video
# create_upload_link upload from your computer

Your AI agent can run your social calendar

AI Agents CLI schedules your next post

create_post

ChatGPT, Claude, Cursor and Codex sign in with your Postemi account. Manus, DeepSeek Harness and NanoClaw use an MCP key.

Example prompts

What can you ask AI Agents CLI to post?

Anything you would ask a teammate: name the platforms, the time and the tone, and AI Agents CLI handles the rest.
ReleaseXLinkedIn
Release notes to posts
Read CHANGELOG.md and write a post about the latest release. Schedule it on X and LinkedIn for tomorrow at 9:00, as drafts.
AutomationXLinkedIn
From CI
When this release job passes, run postemi posts:create to schedule the release note on X and LinkedIn for 9:00 tomorrow, as a draft.
ThreadX
A thread on X
Turn this blog post into a five part thread on X and schedule it for Tuesday at 17:00.
AnalyticsLinkedIn
Check last week
Use postemi analytics:platform for my LinkedIn account and tell me which posts did best last week.
Platforms

Which platforms can AI Agents CLI post to?

Any account you connect in Postemi: 20 platforms today. Connect them once, then post to any of them by asking AI Agents CLI.
Good to know

Do I need the CLI if my agent supports MCP?

No. If your agent supports MCP, the server is enough for posting. The CLI is useful for scripts, CI jobs and analytics, or when the agent has a shell but no MCP client.
AI Agents CLI
What it is
Commands your agent runs in a shell
How Postemi connects
npm install -g postemi
Best for
Scripts, CI and analytics
MCP Server
What it is
A hosted server your agent connects to
How Postemi connects
A URL and a sign-in
Best for
Posting from chat apps

MCP Server and Postemi

AI agents

Other AI agents that post through Postemi

The same Postemi account works with every agent below. Each page shows the exact setup.
FAQ

Frequently asked questions about AI Agents CLI and Postemi

postemi on npm, and the command is postemi too: npm install -g postemi.

Give your agent a command for every post

Install the Postemi CLI, sign in, and let your agent read the skill.

Install the CLI
Get started today

Grow your audience,not your workload

Postemi brings your social accounts together in one calendar, so you can spend more time on your leads and your business. Don't let managing your accounts take up ten hours a week.