X · from OpenCode

Post to X from OpenCode.

X is the network where a post costs the most to send. OpenCode sees the price in the preview, and one rule makes it stop before paying it.

A paragraph lifted from release notes is often past 280 characters, the tightest ceiling a release usually meets. From OpenCode the draft is previewed before anything leaves: a part that overflows is named with its overshoot, and OpenCode can shorten the sentence or turn the announcement into a chain of up to 25 posts. The reply carries a link to the first post once X has it.

You connect X once, through a browser sign-in in 1Social, so there is no developer account, no bearer token in a .env file and no X bill of your own. What a post costs is counted in units, and a post with a link costs more, which the preview shows for each draft. That is why X is the network where OpenCode’s allow-everything default deserves a second thought: one rule makes the publish call wait for you.

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

OpenCode16: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 new release with a link to the github release, make it a thread if it doesn’t fit

from the latest tag · one link

1S

With the link it runs over, so here is a split, with what each version costs:

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

Waiting on your approval for the publish call; the link sits in the first post only.

› _

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

OpenCode, on the other networks

X, from the other agents

Publishing to X from OpenCode

A price on every draft

Links to a tag, a pull request or the docs raise what an X post costs. The preview prices each version, so OpenCode can keep the link in one part of the chain.

Shortened or split, never clipped

When the note will not fit, OpenCode can tighten it or split it into replies, and every part is checked on its own before the first one is published.

An ask rule just for publishing

A permissions entry with the effect ask on 1social_publish_post stops OpenCode before an X post, while the preview and the account list keep running untouched.

Reject stops everything pending

Reject at an OpenCode prompt turns down every pending permission request in the session, not only the one shown, so a post and anything queued behind it stop together.

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

Out of the box, OpenCode posts to X without asking

Every OpenCode agent starts from a base policy that allows any action on any resource, and an MCP tool is just another action, named after the server and the tool. So the first time you say tweet this, the post can go out with no prompt at all. On most networks that is a matter of taste; on X it spends units, more for a post with a link. Add a rule to the permissions list in opencode.jsonc with the action 1social_publish_post, any resource and the effect ask, using whatever name you gave the server. The last matching rule wins, so it overrides the broad allow, and the preview keeps running without a question.

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

When this is the wrong tool

If the plan is a scripted OpenCode run that announces every merged pull request on X with a link, price it before you build it: each post with a link costs more, and a job that runs on every merge spends it quietly. Mentions, replies and the timeline also stay in X; nothing here reads them.

Questions people actually ask

Do I need X API keys in my OpenCode config to tweet?

No. X is connected once in the 1Social app with a browser sign-in, and the API access stays with us. The only credential OpenCode keeps is its sign-in to our server, so neither opencode.jsonc nor your environment holds anything from X.

How do I make OpenCode ask before it posts to X?

Add a rule to the permissions list in your config with the action set to the server name, an underscore and publish_post, the resource set to any, and the effect set to ask. Rules are read in order and the last match wins, so it takes precedence over the default allow.

Why does the preview in OpenCode price one tweet higher than another?

Because X charges more for a post that contains a link, and that is passed through in the units each post uses. Moving the link into a single part of the chain, or dropping it, keeps the other parts at the lower price.

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.