---
title: "Post to X from Claude Code"
description: "Claude Code writes X threads, Community posts and Articles, and PostQueen publishes them. X connects once your paid plan starts; posts use AI credits."
canonical_url: "https://postqueen.ai/claude-code/x"
markdown_url: "https://postqueen.ai/claude-code/x.md"
last_updated: "2026-10-20"
llms_txt: "https://postqueen.ai/llms.txt"
---

# Post to X from Claude Code.

Claude Code + X

Ask Claude Code to write a launch-day thread, caption a short demo clip or draft a long Article, and PostQueen publishes it on X when you said. X is the one network that connects only on a paid plan, and each post to it uses AI credits.

[Start 7-day trial for $0](https://app.postqueen.ai/auth?utm_source=postqueen.ai&utm_medium=landing&utm_campaign=trial&utm_content=agent-channel-hero) [How it works](https://postqueen.ai/claude-code/x#how)

Every post waits on your calendar first.

How it works

## Three steps, then just ask.

1

### Connect X on your paid plan

Log in on x.com with the profile PostQueen should post as, then choose X in Add Channel. Trial still running? Ending it is offered on the X connect step.

2

### Keep the key out of the address

Run claude mcp add with the bare PostQueen address and pass your key in an Authorization header as a Bearer token.

3

### Plan the thread

Tell Claude Code what you’re launching, how many parts and how far apart. Each part must fit 280 characters, or 25,000 on a channel set as Verified, and PostQueen checks that before scheduling.

[The full Claude Code setup](https://postqueen.ai/claude-code#setup) [Everything about X](https://postqueen.ai/channels/x)

What you can publish

## Post types on X.

- Supported Text post 280 characters, or 25,000 on channels marked Verified
- Supported Images and GIFs Up to 4 pictures or 1 GIF, resized to 1,000 px wide
- Supported Video One MP4, alone in the post
- Supported Thread Each part replies to the one before, with its own media and delay
- Supported Community post Paste the community link; your followers see it too
- Supported Article Draft or publish long-form Articles with X Premium
- Supported AI and paid partnership labels Label a post as made with AI or as a paid partnership
- Not supported Polls and quote posts Not available

Limits at a glance

## X limits.

|  |  |  |
| --- | --- | --- |
| Post text | 280, or 25,000 on Verified channels; a link counts as 23 characters | [Official docs](https://docs.x.com/fundamentals/counting-characters) |
| Media per post | 4 pictures, or 1 GIF, or 1 video; no mixing | [Official docs](https://docs.x.com/x-api/posts/create-post) |
| Image file | Up to 5 MB after resizing; animated GIFs up to 15 MB | [Official docs](https://docs.x.com/x-api/media/quickstart/best-practices) |
| Video | MP4 up to 1 GB; length depends on your X account | [Official docs](https://docs.x.com/x-api/media/introduction) |
| Posts per day | 50 posts and 200 replies a day for unverified accounts | [Official docs](https://help.x.com/en/rules-and-policies/x-limits) |
| Cashtags | 1 cashtag per post | [Official docs](https://docs.x.com/x-api/posts/manage-tweets/integrate) |
| Article text | Up to 100,000 characters, images only |  |

From each network’s documentation and PostQueen’s own checks.

What to ask

## Ask Claude Code for the post.

- Write a 5-part X thread about our launch for Tuesday at 9am, with the demo video on the first part and 15 minutes between parts.
- Send our launch post to this X Community link on Monday at 10am and limit replies to accounts we mention.
- Draft an X Article on why we built the app, with cover.png as its cover, and save it to my X drafts.

### Good to know

- Posts to X are paid with AI credits from your plan. Posts to the other networks stay unlimited.
- An X post holds up to 4 pictures, a single GIF or a single video, never a combination, and any link counts as 23 characters.
- Posts over 280 characters, Articles and replies limited to subscribers need X Premium on the account.
- X itself holds an unverified account to 50 posts and 200 replies a day.

## Claude Code and X, answered.

Anything else? Write to [support@postqueen.ai](mailto:support@postqueen.ai) and a person answers.

### Can I connect X to use with Claude Code during the trial?

Connecting X has to wait for your paid plan; it isn’t offered while the trial runs. The X connect step can close the trial early if you’d rather not wait. Any X channel you added before stays connected.

### Can Claude Code write an X thread?

Yes. Part two answers part one, part three answers part two, and each can bring its own media and delay. Through the CLI, Claude Code repeats -c once for each part.

### Can Claude Code write X Articles?

Yes, on an account with X Premium. An Article has a title, an optional cover and up to 100,000 characters, with images as its only media. PostQueen can publish it or leave it in your X drafts.

### Can Claude Code label a post as made with AI?

Yes. Ask for the AI label or the paid partnership label and PostQueen adds it to the X post. You can also choose who can reply.

Keep going

## More ways to post.

### Claude Code on other networks

- [Instagram Post from Claude Code](https://postqueen.ai/claude-code/instagram)
- [TikTok Post from Claude Code](https://postqueen.ai/claude-code/tiktok)
- [LinkedIn Post from Claude Code](https://postqueen.ai/claude-code/linkedin)
- [Facebook Post from Claude Code](https://postqueen.ai/claude-code/facebook)
- [YouTube Post from Claude Code](https://postqueen.ai/claude-code/youtube)
- [Threads Post from Claude Code](https://postqueen.ai/claude-code/threads)
- [Pinterest Post from Claude Code](https://postqueen.ai/claude-code/pinterest)

### Other agents on X

- [ChatGPT Post to X](https://postqueen.ai/chatgpt/x)
- [Claude Post to X](https://postqueen.ai/claude/x)
- [OpenClaw Post to X](https://postqueen.ai/openclaw/x)
- [Codex Post to X](https://postqueen.ai/codex/x)

### Hand your socials to Claude Code.

Get your time back. Every post still lands on your calendar first.

[Start 7-day trial for $0](https://app.postqueen.ai/auth?utm_source=postqueen.ai&utm_medium=landing&utm_campaign=trial&utm_content=agent-channel-band) $0 due today. Cancel in one click.
