planpo.st
FeaturesFor AI agentsRevenue trackingPlatformsPricingBlogSupport
Sign inStart free trial →
planpo.st

Social scheduling with revenue built in. One platform for creators and businesses who treat social as a growth engine.

Product

SchedulerFor creatorsFor agenciesCompare toolsAlternativesPricing

Channels

InstagramLinkedInX (Twitter)ThreadsFacebookYouTubeTikTokAll channels →

AI agents

MCP serverFor AI agentsClaude CodeCursorChatGPTGemini CLIAll agents →

Revenue

Revenue trackingRevenue attributionStripeShopifyRevenueCatAll integrations →

Resources

DocsMCP toolsAPI referenceBlogAboutSupportContactPrivacyTerms

Compare planpo.st

  • planpo.st vs Postiz
  • planpo.st vs Buffer
  • planpo.st vs Hootsuite
  • planpo.st vs Later
  • planpo.st vs Sprout Social
  • planpo.st vs SocialBee
  • planpo.st vs Planable
  • planpo.st vs Metricool
  • planpo.st vs Loomly
  • planpo.st vs Publer
  • planpo.st vs Post Bridge
  • planpo.st vs Mixpost
  • planpo.st vs Blotato
  • planpo.st vs Typefully
  • planpo.st vs RecurPost
  • planpo.st vs Post Planner
  • All comparisons →
  • Alternatives →
© 2026 planpo.st · all rights reservedstatus: ● all systems normal
  1. Home
  2. /AI agents
  3. /Gemini CLI
  4. /Threads
Gemini CLI · Threads

How to post to Threads from Gemini CLI

Twenty ideas in a CSV become twenty Threads drafts in one bulk call, each under 500 characters.

Start 7-day free trial →Gemini CLI setup docs
On this pageStepsWhat worksSettingsPromptsLimitsRevenueFAQ

How do I post to Threads from Gemini CLI?

Add the planpo.st MCP server to Gemini CLI, connect Threads once in the dashboard, then ask. The first three steps are one-time.

  1. 1

    Create an API key and add planpo.st to Gemini CLI

    Make a scoped key in planpo.st under Settings. Add a planpost entry under mcpServers in settings.json, in ~/.gemini globally or .gemini in a project. For the hosted server the key is httpUrl, not url. The local entry runs npx -y planpost-mcp with the key in env.

  2. 2

    Confirm the server is connected

    Run /mcp inside Gemini CLI and check that planpost is listed with its tools.

  3. 3

    Connect Threads

    Connect the Threads profile in the dashboard under Connections. It is its own connection, separate from Instagram, and the agent can fetch a connect URL for you with get_connection_link.

  4. 4

    Know what the post needs

    A Threads post needs text of 500 characters or fewer. Media is optional and there are no platformSettings for Threads at all.

  5. 5

    Ask in your terminal

    Say what to post and when. Gemini CLI finds the Threads connection, creates the post, and tells you whether it was scheduled or kept as a draft, with the reason.

Hosted
{
  "mcpServers": {
    "planpost": {
      "httpUrl": "https://mcp.planpo.st/mcp",
      "headers": { "Authorization": "Bearer pk_live_xxx" },
      "timeout": 10000
    }
  }
}
Local
{
  "mcpServers": {
    "planpost": {
      "command": "npx",
      "args": ["-y", "planpost-mcp"],
      "env": { "PLANPOST_API_KEY": "pk_live_xxx" }
    }
  }
}

Config location: Global: ~/.gemini/settings.json · Per project: .gemini/settings.json. Replace pk_live_xxx with your own key.

Hosted or local for Gemini CLI?

For Gemini CLI either works, and local removes the one trap. The hosted entry must use httpUrl, and a url key is ignored without a word. The local npx entry has no such key to get wrong and needs Node 18 or newer.

  • Gemini CLI uses httpUrl for streamable HTTP, not url. The wrong key is a silent no-op.

The full walkthrough is on the Gemini CLI setup page.

What can Gemini CLI do on Threads?

It can publish text posts and posts with one image or one video, with clickable links in the text. It cannot publish a chain of connected posts or a multi-image carousel.

Text post

500

Up to 500 characters. Links in the text are clickable, which is the thing Threads has over Instagram and TikTok.

One image

The first image attached to the post goes out with it.

One video

Same rule: the first attachment, when it is a video, is published with the text.

Not available

limits

Connected multi-post chains and carousels. The "thread" post type belongs to X, despite the name.

Attachments are optional on Threads. When a post should carry one, Gemini CLI can take it from disk: it calls upload_media for a presigned URL, PUTs the file there with a shell command, and passes the returned asset into create_post. Files already uploaded come back from list_media, ready to reuse.

Which settings does a Threads post take?

Threads is the simplest network here: the publisher reads no platformSettings. Three post fields decide everything.

FieldAllowed valuesIf you leave it outWorth knowing
platformContent.threadsText, 500 characters or fewerThe shared contentOver 500 here is rejected with a 400. Shared content over 500 saves the post as a draft with char_limit.
media, platformMedia.threadsOne image or one videoText postOnly the first attachment is sent. A second image is ignored, not turned into a carousel.
postType"post""post""thread" with a Threads connection returns 400: Thread can only publish to X (Twitter).
platformSettings.threads.*Not readDoes not applyAnything sent here is stored and ignored.

What do I type to post to Threads from Gemini CLI?

Plain requests work. Each example lists the tool calls Gemini CLI makes in response.

1. A week of short posts

You say

Read content-plan.md. Pull five separate points out of it and schedule one Threads post per weekday next week, each under 500 characters.

Tool calls

suggest_schedule({ numberOfPosts: 5, platforms: ["threads"], startDate: "<Monday>", endDate: "<Friday>" })
bulk_create_posts({ defaults: { connectionIds: ["<threads id>"], campaign: "weekly-notes" }, posts: [ { content: "...", scheduledFor: "..." }, ... ] })

Five scheduled posts from one call. Rows are independent, so one over-long post is saved as a draft and the other four are still scheduled.

2. Post with a link and a picture

You say

The file is ~/Pictures/cover.jpg. Schedule it on Threads tomorrow 12:00 with two sentences about the update and the link to the changelog.

Tool calls

upload_media({ filename: "cover.jpg", contentType: "image/jpeg", size: <bytes> })
PUT <file> to the returned URL (shell)
create_post({ content: "<two sentences> https://...", media: [<image>], connectionIds: ["<threads id>"], schedule: "tomorrow 12:00" })

One post with the image and a link people can tap. Attach a single image; a second one would not be published.

3. From a blog post you already published

You say

Take the newest article from my blog feed and write three Threads drafts from it, different angle each.

Tool calls

list_content_sources()
fetch_source_content({ id: "<source id>" })
list_imported_content({ id: "<source id>" })
repurpose_content({ posts: [ { content: "...", connectionIds: ["<threads id>"] }, ... ] })

Three drafts in the dashboard. Nothing is scheduled until you or the agent pick the ones worth keeping.

What stops a Threads post from Gemini CLI?

The tag on a card is the code that comes back in the tool result.

500 characters

char_limit

Text that fits LinkedIn will not fit here. Give Threads its own cut in platformContent.threads when one post goes to both.

One attachment

The publisher sends the first image or video and nothing after it. A post with four images arrives with one.

No chains

There is no multi-post format for Threads in planpo.st. A long idea goes out as several separate posts, scheduled a few minutes apart if you want them near each other.

No settings to tune

No reply controls, no topic tags. If a prompt asks for them, the values are stored on the post and have no effect.

Links work

A URL in the text is clickable. This is the cheapest place in the lineup to put a tracked link.

httpUrl, not url

Gemini CLI

Gemini CLI uses httpUrl for streamable HTTP servers and ignores a url key without an error. If the tools never show up, look at that one word first. I lost twenty minutes to it.

Can Gemini CLI tell me what a Threads post earned?

Yes. A link in a Threads post is clickable, so a tracked link gives a click that a later payment can be matched to, and the amount sits next to the post. get_revenue_overview returns totals and recent transactions over the same connection that published it.

Stripe integration How revenue attribution works

Gemini CLI and Threads: questions people ask

Can it post a thread on Threads?
No. The thread post type publishes a reply chain on X only. On Threads each post stands alone, up to 500 characters.
How many images can a Threads post have?
One. The first attachment is published and any others are left out.
What happens when Gemini CLI sends a Threads post that breaks a rule?
It is told at once. The usual case on Threads is text over 500 characters: the post is kept as a draft and the tool result carries char_limit plus the fix, which Gemini CLI applies with update_post.
Why does Gemini CLI not see the planpo.st tools?
Most often the hosted entry says url where Gemini CLI expects httpUrl, and the wrong key is ignored silently. Fix the key, restart, and the Threads tools appear. The local npx entry avoids the question.
Can I rerun the same prompt every week?
Yes, and it is what this pairing is good at. Keep the prompt in a file next to the plan it reads, and run it on Monday to fill the Threads schedule.

Keep going

Threads from other agents

Claude Code to ThreadsCursor to ThreadsClaude Desktop to ThreadsChatGPT to ThreadsCodex CLI to ThreadsGoogle Antigravity to ThreadsHermes Agent to Threads

Other networks from Gemini CLI

Gemini CLI to LinkedInGemini CLI to InstagramGemini CLI to XGemini CLI to FacebookGemini CLI to YouTubeGemini CLI to TikTok

Background

Gemini CLI overviewGemini CLI setupThreads scheduling guideMCP tool reference