Instagram · from OpenCode

Post to Instagram from OpenCode.

Instagram fetches its pictures from the web, and OpenCode works with files. The upload tool covers the gap, once OpenCode knows the path.

Every Instagram post needs a picture or a video, and from OpenCode that is a file: a screenshot in the docs folder, a design export, a chart a script drew. Instagram takes the image from a public address, so OpenCode asks our upload tool for a target, sends the bytes there with curl from its shell, and puts the address it gets back into the post. By default OpenCode runs both steps without a prompt, so you may not be asked anything at all.

The draft is checked against Instagram before anything leaves: a picture present, a caption within 2,200 characters, a carousel of no more than 10 items. Publishing goes through Meta’s API to a professional account, Business or Creator, that you signed in with in a browser. Instagram gets its own line in OpenCode’s reply, so a refusal here does not hide what happened to Facebook or anything else in the same request.

Asking OpenCode for an Instagram post

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

OpenCode10:32

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

› post docs/screens/onboarding.png to instagram with a short caption about the new onboarding, crop it if instagram won’t take that shape

local file · taller than Instagram allows

1S

That capture is too tall for an Instagram feed post, so I cropped a copy:

Instagram caption2,200fits
Image or videorequired — attached
Reply chainsjoined into one post
Attachments allowed10per post

Published with the cropped copy; the file in docs/screens is unchanged.

› _

What Instagram allows

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

Caption limit
2,200 characters
Post with no image or video
Refused by Instagram
Reply chains
No — the parts are joined into one post
Images or video per post
10
Image formats
Anything we accept for upload

OpenCode, on the other networks

Instagram, from the other agents

Publishing to Instagram from OpenCode

The path does the attaching

Name the file and OpenCode requests an upload target, sends the bytes from your disk and passes the public address on, with no hosting step of your own.

Measured with a shell tool first

OpenCode can read the pixel size with sips or ImageMagick and crop a copy to a shape Instagram takes before anything is uploaded, leaving the original untouched.

Several exports, one carousel

List a few files in the order you want and OpenCode uploads each one in turn, then publishes them together as a single carousel post on the account.

Stopped before, not after

A published Instagram post cannot be removed through the API, so an ask rule on the publishing tool is where you read the caption one last time.

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 Instagram, 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.

An image in the prompt is not an image in the post

In OpenCode’s desktop and web clients you can drop or paste a picture into the prompt, and with a model that takes image input the model sees it, which helps with the caption. Nothing in OpenCode’s documentation says that attachment is passed on to a tool, and Instagram needs a public address to fetch from. So keep the file in the project and give OpenCode its path: it uploads that file and posts the result. The shape matters as well. Instagram refuses feed pictures outside a range from slightly tall portrait to wide landscape, and a full-page capture of an app is usually far outside it.

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

When this is the wrong tool

Reach for the Instagram app instead when the picture was taken on your phone a minute ago; getting it onto the computer first is a detour. Stories are outside what this publishes, which is feed posts and carousels, and a post that is live can only be removed inside Instagram.

Questions people actually ask

Can I drag an image into the OpenCode desktop app and post it to Instagram?

Dragging it in lets a model with image input see it, which helps with the caption, but nothing documented hands that attachment to a tool. Give OpenCode the file’s path as well, and it uploads that file through 1Social before publishing.

Will OpenCode ask before uploading a picture to Instagram?

Not with its default permissions, which allow both the shell command that sends the file and the publishing call. If you want a pause, add an ask rule for the publishing tool, and another for shell commands if you want those approved too.

Which Instagram accounts can OpenCode publish to?

Only professional ones. Instagram’s publishing API does not reach personal accounts from any client, so switch yours to Creator or Business in the Instagram app first; the switch costs nothing, and the account then connects in 1Social with a browser sign-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.