X · from Codex

Post to X from Codex.

X is the network where the last look matters most. Codex can check a post as often as it likes and still stop before the one call that sends it.

X has the tightest ceiling of the networks a release goes to, 280 characters a post, and a summary Codex writes from a branch tends to run past it. The draft is checked against X before anything is sent: the part that is too long is named with how far over it runs, and Codex can tighten it or turn it into a chain of up to 25 posts. The same check shows what each version costs, which on X depends on whether it carries a link.

There is no X developer account to set up and no bearer token in your environment; you sign in to X once in a browser and the connection lives with 1Social. What stays on your side is the approval mode in config.toml, and on X it is worth choosing on purpose, because a published post is public the moment it lands and the first people to see it are the ones it was announced to.

Asking Codex 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.

Codex16:05

› 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 with a link to the changelog, if it doesn’t fit try it without the link first

from the latest tag · one link

1S

With the link it runs over, so here are both versions and what each costs:

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

Sent the shorter version without the link, after you approved the call.

› _

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

Codex, on the other networks

X, from the other agents

Publishing to X from Codex

The check never needs a yes

The draft check is marked read-only, so in writes mode Codex can measure and reprice an X post as many times as it needs and only stops when it comes to publishing.

Cost next to the count

Each draft comes back with its character count and its price in units, so a version with the link and one without can be compared before either is sent.

A chain when trimming fails

If the announcement cannot come down to one post without losing the point, Codex can split it into a reply chain, every part checked against X on its own.

One tool kept on ask

Codex accepts an approval mode per tool, so publish_post can stay on prompt while the reading tools run freely, which keeps the last look on X without slowing the rest.

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 Codex 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.

The writes mode was made for X

Codex can be told to ask before every tool call, before none, or — with default_tools_approval_mode set to writes — only before tools that are not marked read-only. Our tools carry that marking honestly: listing accounts and checking a draft are read-only, publishing is not. So under writes, Codex can check an X post, trim it, check it again and compare the cost with and without the link without interrupting you once, and the first prompt you see is the publish itself, with the final text in it. On a network with a short ceiling and a price per post, that is the moment to be asked.

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

When this is the wrong tool

If the plan is an X post for every merged pull request, each with a link back to it, read the pricing first: link posts are the dearest kind on the dearest network, and an automated job multiplies them. Nothing from X comes back into Codex either — no timeline, no mentions, no replies waiting to be answered.

Questions people actually ask

Can I make Codex ask before posting to X but not before checking the draft?

Yes. Set the default tools approval mode to writes in config.toml, or give publish_post an approval mode of its own. The draft check and the account list are marked read-only, so they run without a prompt, while the publish stops and waits for you.

Why does an X post from Codex cost more with a changelog link in it?

Because X charges more for a post that contains a link, and that difference is passed through in the units an X post uses. When a draft carries a link, Codex can check a version without it as well, so you choose between the two before anything is sent.

Do I need an X API key in Codex to tweet?

No. You sign in to X once in a browser and the API access sits on our side. Codex holds only its authorisation to 1Social, so nothing X-related lives in config.toml, a .env file or the repository it works in.

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.