X · from Claude Code

Post to X from Claude Code.

A release note written for the repo is rarely written for X. The check says by how much it is over, and what the links in it will cost.

X is the tightest fit of the networks a release announcement goes to. A paragraph from the changelog is usually past 280 characters, and pasted in whole it would be cut mid-word. From Claude Code the draft is checked against X before anything is sent: the part that is over is named with its overshoot, and Claude Code can tighten that sentence or turn the announcement into a chain of up to 25 posts.

You sign in to X once in a browser; there is no developer account, no API key in an environment variable and no X bill of your own. Claude Code shows the tool call and its arguments before it runs, which on X is the last look at the exact text, and the reply carries the link to the first post so it can be opened straight from the terminal.

Asking Claude Code 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.

Claude Code16:22

› 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 release and link the github release page, if it doesn’t fit make it a short thread

from the latest tag · one link

1S

With the link it does not fit in one, so here is the split and the cost:

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

Sent as a chain. The link sits in the first part only, which keeps 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

Claude Code, on the other networks

X, from the other agents

Publishing to X from Claude Code

Links priced before they post

A note drafted from a repository tends to carry links to the tag, the pull request and the docs. The check shows the unit cost of each version before you pick one.

A chain when the note will not shrink

Ask for a thread and the announcement goes out as a chain of replies, every part measured against X’s ceiling on its own before the first is sent.

No X token in your environment

There is no bearer token in a .env file or a shell profile for the agent to read or leak; the X connection is held on our side, not on your laptop.

The prompt shows the final draft

Claude Code displays the exact arguments of the publish call before running it, which is the last chance to read the post the way X will show it.

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 Claude Code 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.

Every link from the repo raises the price

X charges us for every post and several times more for a post that contains a link, so X deliveries weigh more in units than other networks, and a post with a link weighs more again. That bites harder from Claude Code than from a chat, because an announcement drafted from a repository picks up links by default — the release page, the pull request, the docs, the commit. Ask for a preview first and the cost appears next to the character count; a chain with the link in one part costs less than one where every part carries it.

A limitation of this product. Ours to fix. From documentation, checked 2026-11-23.

When this is the wrong tool

If the plan is to post every merged pull request to X with a link back to it, look at the pricing first: link posts are the dearest kind on the dearest network, and an automated job multiplies that. This also does not read X — no timeline, mentions or replies come back to the terminal.

Questions people actually ask

Can Claude Code tweet from the command line?

Yes, once 1Social is added as an MCP server and X is connected in a browser. You ask in plain words, Claude Code checks the post against X’s limit, asks you to approve the call, and the reply gives the link to the post.

Why does a tweet from Claude Code cost more with a GitHub link in it?

Because X charges more for posts containing a link, and that difference is passed through in the units an X post uses. The preview shows the cost of each draft, so you can keep the link to one part of a thread or leave it out.

Do I need an X developer account to post from Claude Code?

No. You sign in to X once in a browser and the API access is on our side. Nothing X-related is stored in the project, the shell or the Claude Code settings on your machine.

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.