X · from Gemini CLI

Post to X from Gemini CLI.

A changelog line is seldom written for X. Gemini CLI is told by how much it is over and what its links will cost, and fixes both before sending.

X has the tightest ceiling of the networks a release usually goes to, and a paragraph lifted from a changelog is often past 280 characters. From Gemini CLI the draft is measured before anything leaves: the part that overflows is named with its overshoot, and Gemini CLI can tighten the sentence or turn the announcement into a chain of up to 25 posts. The reply to your request carries the link to the first post.

You connect X once by signing in through a browser in 1Social, so there is no developer account to apply for, no bearer token in a .env file and no X bill of your own. Gemini CLI shows the tool call and its arguments when it asks for approval, which on X is the last look at the exact words, links included. Links matter more here than elsewhere, because a post that carries one costs more units to send.

Asking Gemini CLI for an X post

The X ceilings in this exchange come from the same table the publisher enforces — the conversation is drawn, the numbers are not.

Gemini CLI16:40

› Set me up — what do you need?

Just the accounts. Connect them in the browser once and I can publish from here after that.

› Done, connected

I will tell you before publishing if a network cannot take what you wrote.

› Good. Drafting the launch note now

Send it over and I will check it before anything goes out.

› tweet the new release with a link to the github release page, make it a short thread if it won’t fit

from the latest tag · one link

1S

With the link it is over the limit, so here is a split and its cost:

X caption2803-part thread
Image or videooptional here
Reply chainsup to 25 parts
Attachments allowed4per post

Published as a chain, with the link in the first post only to keep the cost down.

› _

What X allows

Read from the same table the publisher enforces, so this cannot drift from what actually happens when you press send.

Caption limit
280 characters
Post with no image or video
Fine
Reply chains
Yes — up to 25 parts
Images or video per post
4
Image formats
Anything we accept for upload

Gemini CLI, on the other networks

X, from the other agents

Publishing to X from Gemini CLI

The price of each draft, up front

Repository drafts pick up links to tags, pull requests and docs. The preview prices every version, so Gemini CLI can keep the link in one part of a thread.

Split rather than clipped

When the announcement will not fit, Gemini CLI can turn it into a chain of replies, each part measured on its own before the first one is published.

Nothing from X in your dotfiles

The X connection is held by 1Social, so there is no consumer key or access token in your shell profile for Gemini CLI or a stray script to read.

Room for a second X server

Another X server for reading timelines can sit beside ours: Gemini CLI files every tool under its server’s name, so a publish call still reaches the server you meant.

How it works

1

Connect once

~2 min

Link the accounts you use in a browser. OAuth, no passwords typed into a chat, no API keys to paste anywhere.

ChatGPT

Claude

Cursor

2

Ask, in your own words

one sentence

Tell Gemini CLI to publish to X, now or on a day you name. No dashboard, no tab switch.

3

Read the receipt

per network

One line per network — what landed, what failed and why, and what genuinely could not be determined.

Two X servers, and what to call ours

People who post to X from Gemini CLI often already have another X server in their settings, for reading timelines or searching. That is fine: Gemini CLI gives every tool a name that starts with its server’s name, so the two never collide. The name you give our entry is what matters. If both entries share one server name, the one registered last replaces the other’s tools; and an underscore in the name breaks the rules you write to allow or block tools, without any warning. Call ours something like onesocial, then run /mcp to see what each server contributes.

A rule of X from Gemini CLI, not ours and not the network’s. From documentation, checked 2026-11-23.

When this is the wrong tool

If you picture a headless Gemini CLI job announcing each merged pull request on X with a link, price it first: X charges more for every post with a link in it, and a job that runs on each merge runs up that cost quietly. This publishes only, too; mentions, replies and the timeline stay in X.

Questions people actually ask

Can Gemini CLI post to X without an X developer account?

Yes. You sign in to X once in a browser through 1Social, and the API access sits on our side. Gemini CLI only holds its sign-in to our server, so neither your settings nor your project carries anything from X.

Why does Gemini CLI show a higher cost for a tweet with a link?

Because X charges more for posts that contain a link, and that is passed through in the units an X post uses. The preview shows the cost of each draft, so you can move the link into one part of a thread or drop it.

What happens if I have two X MCP servers in Gemini CLI at once?

If their tools share a name, one replaces the other, as Gemini CLI’s documentation warns. Run /mcp to see which server each tool belongs to, and keep only one entry offering a given name while you publish.

Something else? Ask us — a person answers.

Read next

Start where you already work.

Connect an account and post your first update in about two minutes. Every plan starts with a free trial.

Posts go out through each network’s official API — not scraping.