New MCP server: let ChatGPTClaudeClaude CodeCodexCursorOpenClaw or any AI agent schedule your posts See how it works

Grok Bot + Mastodon

Post to Mastodon from Grok Bot

Through iHatePosting, Grok Bot can publish posts with pictures or video to your Mastodon account. Paste one setup message to your Grok Bot and give it your API key in its secret prompt, then ask it for the post you want.

Setup takes about a minute. A post can hold up to 500 characters.

MastodonGrok Bot15 networks

Posting to Mastodon from Grok Bot

Add iHatePosting to Grok Bot once, connect Mastodon, and then describe the post. Setup takes about a minute.

Step 1

Add iHatePosting to Grok Bot once

Paste one setup message to your Grok Bot and give it your API key in its secret prompt. Then connect Mastodon in iHatePosting if you have not already.

Message to your Bot
Set up iHatePosting so you can draft, schedule and publish my social media posts. - Install its command line on your cloud computer: npm install -g ihateposting - Install its skill: npx skills add iHatePostingOrg/iHatePosting-Agent - Ask me for my iHatePosting API key through your secure form, never in this chat, and keep it as IHATEPOSTING_API_KEY. - Check it works: run ihateposting integrations:list. - Save posts as drafts unless I say otherwise, and ask me before you publish anything. When it works, show me my connected accounts.
Step 2

Ask for the Mastodon post

Describe the post in plain language. Grok Bot writes it, applies the settings and schedules it.

Grok Bot
> Post a short note about the new release on Mastodon tomorrow at 9:00. Grok Bot: Done. Scheduled on Mastodon.

What Grok Bot can do on Mastodon

On Mastodon, Grok Bot can publish posts with pictures or video to your Mastodon account.

Posts

Publish text posts to your account on mastodon.social, the server iHatePosting connects to.

Threads

Ask for a thread and the text is split into connected posts.

Media

Attach pictures or video from your media library.

Scheduling

Choose a date and time for the post.

How Grok Bot gets a post onto Mastodon

You say what you want and Grok Bot makes the calls. A typical conversation goes like this.

Find your Mastodon channel

Which Mastodon accounts do I have in iHatePosting?

What happens

  • Grok Bot lists your channels and finds Mastodon
  • It also reads the channel's rules and settings

Compose your content

Split this article summary into a Mastodon thread and schedule it for Friday at 11:00.

What happens

  • Grok Bot drafts the text for Mastodon
  • It uploads any media you mention

Schedule and publish

Yes, schedule it for tomorrow at 9:00.

What happens

  • Grok Bot schedules the post in iHatePosting
  • iHatePosting publishes it to Mastodon at that time

Mastodon settings reference

Mastodon needs nothing beyond the text, the media and the time.

FieldTypeRequiredDescription
(none)-NoNo extra settings: Grok Bot sends the text, the media and the time

What is Grok Bot?

Grok Bot is xAI's always-on agent, used through a Cursor account. You create named Bots and give each a job; your Bots share one cloud computer with a browser, files and a terminal.

Once a Bot has the iHatePosting command line installed, it writes, queues and sends your posts from that computer.

How iHatePosting works with Grok Bot

Installed as a skill, iHatePosting gives Grok Bot a SKILL.md that teaches it the commands and how to shape a post for each platform, and the ihateposting command line does the work.

  • Paste the message into a chat with the agent
Set up Grok Bot
# A message to paste into the chat Set up iHatePosting so you can draft, schedule and publish my social media posts. - Install its command line on your cloud computer: npm install -g ihateposting - Install its skill: npx skills add iHatePostingOrg/iHatePosting-Agent - Ask me for my iHatePosting API key through your secure form, never in this chat, and keep it as IHATEPOSTING_API_KEY. - Check it works: run ihateposting integrations:list. - Save posts as drafts unless I say otherwise, and ask me before you publish anything. When it works, show me my connected accounts.

Mastodon and the other platforms Grok Bot reaches

Ask for Mastodon and other channels in a single message; every channel still applies its own settings.

Mastodon requests to try in Grok Bot

A post

Post a short note about the new release on Mastodon tomorrow at 9:00.

A thread

Split this article summary into a Mastodon thread and schedule it for Friday at 11:00.

A picture

Post diagram.png on Mastodon with a one-sentence explanation.

Mastodon limits and gotchas to know

A few of Mastodon's rules shape how Grok Bot writes your request, so it helps to know them.

  • A post can hold up to 500 characters.
  • The channel has no extra settings to choose.

Frequently asked questions

Start free for 30 days

Paste one setup message to your Grok Bot and give it your API key in its secret prompt, connect Mastodon in iHatePosting, then ask Grok Bot for the post in plain language. It schedules the post and iHatePosting publishes it at the time you set.

Hand your Mastodon posts to Grok Bot

Start free for 30 days.