From merged PR to launch post, without leaving Codex
Add Margin to Codex with one command and sign in once in your browser. Codex reads the release you just tagged, designs the cover card, thread or carousel on your Margin canvas with your brand board, and saves drafts or scheduled posts. Posting right away always waits for your yes.
We just tagged v1.8. Make an X release thread with a cover card and a matching LinkedIn post, and save both as drafts.
- Read the v1.8 tag's commits and release notes
- Designed a 16:9 cover card and a 4:5 LinkedIn image
- Saved a 5-part X thread and a LinkedIn post as drafts
Both drafts are in Margin, and the two designs are on your Releases canvas. Change anything there, then tell me when to schedule.
01 · Just ask
Start with a normal sentence.
Describe what you want to share. Your assistant handles the layout, sizing, and draft scheduling.
“Turn this PR's changelog into a 5-slide LinkedIn carousel with one feature per slide.”
Reads the PR, designs five editable slides from your brand board and leaves them on your canvas to review.
“Upload demo.mp4 from the repo and schedule it as a YouTube Short and an Instagram reel for Wednesday at noon.”
Brings the finished video into Margin, checks which accounts take it and schedules both posts in your calendar.
“Which of our last 10 launch posts did best, and on which network? Draft the next one in that format.”
Reads your real per-network numbers and puts a new draft on the canvas in the format that performed.
02 · How it works
From setup to scheduled post.
One command and one browser sign-in, with no keys to paste.
- 01
Add Margin as a Codex MCP server
Run codex mcp add margin --url https://margin.design/mcp. Codex keeps it in your own config, so it's there in every project.
- 02
Sign in once
If the browser doesn't open by itself, run codex mcp login margin. Sign in to Margin, pick the organizations Codex may open and press Allow.
- 03
Point it at the release
Give Codex the tag, the diff or the notes. It designs on your Margin canvas, and you can edit any frame before the post is scheduled.
03 · Why Margin
Design, review, and publish together.
Every graphic Codex makes stays editable on your brand canvas, so your team always has the final word.
From the release to the post
Codex reads the tag, diff or release notes in your repo and turns them into a cover card, a thread or a carousel sized for each network.
Edit what Codex made
Every design is HTML on a shared Margin canvas. Teammates comment and change copy directly; nothing is a flattened export.
One setup for the CLI, the IDE and the app
The Codex CLI, its IDE extension and the ChatGPT desktop app read the same MCP configuration, so Margin added once from the terminal is there in all three.
You decide what goes live
Posting right away always shows you what each account gets and waits for your yes. Scheduled posts and drafts wait in the calendar, where you can edit or cancel them.
Add Margin to Codex in one command
Codex saves it for you, across projects. If the browser doesn't open on its own, run codex mcp login margin, sign in to Margin and press Allow. In your config the server is named margin. The full playbook for agents is get-started.md.
codex mcp add margin --url https://margin.design/mcpBring your own assistant
From idea to published post.
Keep your brand board, editable designs, team review, and 9-network scheduling in one workspace, powered by the assistant you already use.
04 · FAQ
Common questions.
Quick answers on connecting your assistant, editing designs, and staying in control before publishing.
Does Margin work in the Codex IDE extension and the desktop app?
Yes, the one setup covers both. In the app or the extension, select Authenticate when Margin asks you to sign in.
Is this the same connection as Margin in ChatGPT on the web?
No. ChatGPT on the web doesn't read Codex's local configuration, so connect Margin there separately in ChatGPT's own settings. Both can open the same Margin organization.
What if the sign-in page doesn't open?
Run codex mcp login margin. On a machine without a browser, add --no-browser, open the link it prints anywhere, and paste the address you land on back into the terminal.
More AI assistant & channel guides
View all connectorsPopular social size guides
All 9 network sizesX image & header sizes
Header banners, uncropped single images, 4-image posts, and video.
LinkedIn post & banner sizes
Feed graphics, profile and company covers, and document carousels.
Threads & Bluesky sizes
Image, video, and character rules for Threads and Bluesky.