Post to X with Gemini CLI

Connect Gemini CLI to dopost to post to your X account and manage your calendar.

Connect Gemini CLI to dopost

Set up the connection

Recommended

Add the hosted server and authenticate with /mcp auth

Sign in to dopost to connect your accounts. No API key is needed.

.gemini/settings.json
{
  "mcpServers": {
    "dopost": { "httpUrl": "https://mcp.dopost.co/mcp" }
  }
}
  1. 1Add dopost under mcpServers in .gemini/settings.json.
  2. 2Start Gemini CLI and run /mcp auth dopost to sign in.
  3. 3Ask Gemini to list your connected accounts.
Full Gemini CLI guide

Requirements for posting to X

  • An X account connected in dopost
  • 280 characters per post. dopost checks each post before scheduling.
  • Up to 4 images per post.
  • A Community post cannot also be a reply.
  • The account must be a member of the Community.
dopost X scheduler

X formats

Check the formats and media supported by this connection.

FormatMedia per postMedia requiredWith Gemini CLI
Post or thread4No

What you can ask Gemini CLI

Schedule a post

Schedule this post on X for tomorrow at 10am.

Check the calendar

What posts do I have scheduled on X for next week?

Reschedule posts

Move Friday’s X posts to Monday, keeping the same times.

X performance

Check the available metrics for your posts.

Compare the performance of my X posts this month.

Gemini CLI and X questions

Can Gemini CLI post to X?

Yes. Connect your X account in dopost and follow the Gemini CLI setup guide.

Can Gemini CLI post an X thread?

Yes. Gemini CLI sends the first post with up to 20 follow-ups, and dopost publishes them in order as one thread.

Do I need an X developer app or API key?

No. You connect X once in dopost and Gemini CLI uses that connection. There is no developer account, review or token to manage.

Can I check my X results?

Yes. You can check the available metrics for your X accounts and posts.

Can I review content before scheduling?

You can ask the agent to show you the content before scheduling it.

Start posting to X with Gemini CLI

Create your dopost account and connect your social accounts.

See plans and pricing