Instagram · from Claude Code
Post to Instagram from Claude Code.
Instagram needs a picture, and in a terminal the picture is a file path. Claude Code turns the path into something Instagram can fetch.
Instagram refuses a post without an image or video, so the first question in a terminal is where the picture is. With Claude Code it is usually a file: a screenshot in the docs folder, an export from a design tool, a render the build produced. Claude Code cannot attach that file the way a chat app does, so it uses our upload tool instead — it asks for an upload link, sends the file’s bytes there with a command of its own, and passes the public address it gets back into the post.
From there the draft is checked against Instagram before sending: picture present, caption inside 2,200 characters, carousel within 10 items. Publishing goes through Meta’s API on a professional account — Business or Creator — that you signed in with in a browser. The reply in the terminal has a line for Instagram of its own, separate from any other network in the same request.
Asking Claude Code 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.
› 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/dashboard.png to instagram with a short caption about the new dashboard, crop it if instagram won’t take the shape
local file · wider than Instagram allows
The screenshot is too wide for Instagram, so I cropped a copy first:
Published to Instagram with the cropped copy. The original file is untouched.
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
Claude Code, on the other networks
Instagram, from the other agents
- Instagram from ChatGPT
- Instagram from Claude
- Instagram from Cursor
- Instagram from OpenClaw
- Instagram from Hermes
- Instagram from Codex
- Instagram from Claude Cowork
- Instagram from Gemini CLI
- Instagram from VS Code
- Instagram from Windsurf
- Instagram from Cline
- Instagram from Kilo Code
- Instagram from Zed
- Instagram from OpenCode
- Instagram from Amp
- Instagram from Goose
- Instagram from Grok
- Instagram from Perplexity
- Instagram from Le Chat
- Instagram from Raycast
- Instagram from LM Studio
- Instagram from Warp
- Instagram from Kimi Code
- Instagram from Junie
- Instagram from DeepSeek
Publishing to Instagram from Claude Code
A path is enough
Name the file and Claude Code does the rest: an upload link, the bytes sent from your machine, and the public address passed on to the post.
The shape fixed before upload
Claude Code can read a picture’s dimensions and, with a tool already on your machine, crop or pad a copy to a shape Instagram takes before uploading it.
A carousel from a folder
Point at a folder of exports and ask for a carousel. The files go up one by one and are published together as one post, in the order you name them.
No undo once it is live
A published Instagram post cannot be removed through the API, so the permission prompt before the publish call is the last place to stop it.
How it works
Connect once
~2 minLink the accounts you use in a browser. OAuth, no passwords typed into a chat, no API keys to paste anywhere.
ChatGPT
Claude
Cursor
Ask, in your own words
one sentenceTell Claude Code to publish to Instagram, now or on a day you name. No dashboard, no tab switch.
Read the receipt
per networkOne line per network — what landed, what failed and why, and what genuinely could not be determined.
Screenshots are the wrong shape more often than photos
Instagram takes pictures between a slightly tall portrait and a wide landscape, and refuses anything outside that range however good the file is. A phone photo usually fits. The pictures a project holds often do not: a full-page capture of a web app is far taller than Instagram allows, and a screenshot of a wide terminal or dashboard can be wider. From a chat app that means a trip to an image editor. Claude Code has the file and a shell, so it can read the dimensions, make a cropped or padded copy with a tool already on the machine, and upload that instead — ask for it in the same sentence.
A limitation of Instagram from Claude Code itself — it stays true whoever publishes for us. From documentation, checked 2026-11-23.
When this is the wrong tool
If the photo is on your phone, a chat app on the phone gets it to Instagram in fewer steps; from Claude Code it first has to be on the machine. Stories, Reels covers and anything other than feed posts and carousels are not part of this, and a post that has gone out stays out unless you delete it in Instagram.
Questions people actually ask
Can Claude Code post a screenshot from my repo to Instagram?
Yes. Give it the path; it gets an upload link from 1Social, sends the file, and publishes with the returned address on your professional account. If the screenshot is outside the shapes Instagram accepts, ask Claude Code to crop a copy first.
Why can’t Claude Code just hand Instagram the file path?
Because a path only means something on your own machine. Instagram fetches the picture from a public address, so the file has to be uploaded first. A local web server will not do either: only public https addresses are accepted.
Which Instagram accounts can Claude Code publish to?
Professional ones, Business or Creator, because Instagram only allows publishing through its API on those. A personal account can be switched to Creator at no cost in the Instagram app, then connected in a browser like any other.
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.