Codex + LinkedIn
Post to LinkedIn from Codex
Through iHatePosting, Codex can publish posts to your profile or a company page, turn several pictures into a carousel, and tag companies. Add the iHatePosting entry to Codex's config.toml and sign in with codex mcp login, then ask it for the post you want.
Setup takes about a minute. A post can hold up to 3,000 characters.
Posting to LinkedIn from Codex
Add iHatePosting to Codex once, connect LinkedIn, and then describe the post. Setup takes about a minute.
Add iHatePosting to Codex once
Add the iHatePosting entry to Codex's config.toml and sign in with codex mcp login. Then connect LinkedIn in iHatePosting if you have not already.
Add to the end of ~/.codex/config.toml, then run the login command.
[mcp_servers.ihateposting]
url = "https://app.ihateposting.com/mcp/oauth"
# then, in a terminal:
codex mcp login ihatepostingAsk for the LinkedIn post
Describe the post in plain language. Codex writes it, applies the settings and schedules it.
> Write a short LinkedIn post about v2.4 from CHANGELOG.md and schedule it for tomorrow at 9:00 with release.png.
Codex: Done. Scheduled on LinkedIn.What Codex can do on LinkedIn
On LinkedIn, Codex can publish posts to your profile or a company page, turn several pictures into a carousel, and tag companies.
Profile and company pages
Post to your own profile, or to a company page you manage; each is its own channel.
Picture carousels
Give two or more pictures and ask for a carousel, with a name for it.
Company mentions
Find a company by its page name and tag it in the post.
Video posts
Attach one video to a post.
Scheduling
Pick the day and hour; iHatePosting publishes at that time.
How Codex gets a post onto LinkedIn
You say what you want and Codex makes the calls. A typical conversation goes like this.
Find your LinkedIn channel
Which LinkedIn accounts do I have in iHatePosting?
What happens
- Codex lists your channels and finds LinkedIn
- It can also run the mention helper: Find a company page to tag by its exact vanity name (the part after linkedin.com/company/).
Compose your content
Post a thank-you to Microsoft on LinkedIn tomorrow at noon and tag their company page.
What happens
- Codex drafts the text for LinkedIn
- It uploads any media you mention
Schedule and publish
Yes, schedule it for tomorrow at 9:00.
What happens
- Codex schedules the post in iHatePosting
- iHatePosting publishes it to LinkedIn at that time
LinkedIn settings reference
Say the option in your own words and Codex fills in the matching field. This is every LinkedIn setting it can use.
| Field | Type | Required | Description |
|---|---|---|---|
| post_as_images_carousel | boolean | No | Publish the pictures as one carousel |
| carousel_name | string | No | The name shown for the carousel |
Common configurations
Each case below is a request Codex understands, followed by the LinkedIn options it sets.
A carousel
Post the three slides as a carousel called Launch week
- Applies:
post_as_images_carousel: true,carousel_name: Launch week
A plain post
Post it as a normal post
- Applies:
post_as_images_carousel: false
What is Codex?
Codex is OpenAI's coding agent. The command line, the IDE extension and the ChatGPT desktop app all read the same config.toml, so one entry connects every one of them.
It can read a repository, write the announcement for a change and schedule it in iHatePosting.
How iHatePosting works with Codex
Once connected, iHatePosting hands Codex its tools: your channels, posts, media and each channel's settings (14 tools in all). Codex calls them while you describe what you want.
- iHatePosting MCP server (sign in): Entry in
~/.codex/config.toml, thencodex mcp login - iHatePosting MCP server (API key): Entry in
~/.codex/config.tomlthat names the variable holding your key - iHatePosting skill (command line): npx skills add
iHatePostingOrg/iHatePosting-Agent
# iHatePosting MCP server (sign in)
[mcp_servers.ihateposting]
url = "https://app.ihateposting.com/mcp/oauth"
# then, in a terminal:
codex mcp login ihatepostingLinkedIn and the other platforms Codex reaches
Ask for LinkedIn and other channels in a single message; every channel still applies its own settings.
LinkedIn requests to try in Codex
Announce a release
Write a short LinkedIn post about v2.4 from CHANGELOG.md and schedule it for tomorrow at 9:00 with release.png.
Tag a company
Post a thank-you to Microsoft on LinkedIn tomorrow at noon and tag their company page.
A slide carousel
Turn slide1.png, slide2.png and slide3.png into a LinkedIn carousel called Launch week and schedule it for Thursday at 10:00.
LinkedIn limits and gotchas to know
A few of LinkedIn's rules shape how Codex writes your request, so it helps to know them.
- A post can hold up to 3,000 characters.
- A post with a video can have only one attachment.
- A carousel needs at least two attachments, and they must all be pictures.
- To tag a company, the agent searches by the part of the company's address after linkedin.com/company/, then puts the tag into the text.
Frequently asked questions
Start free for 30 daysAdd the iHatePosting entry to Codex's config.toml and sign in with codex mcp login, connect LinkedIn in iHatePosting, then ask Codex for the post in plain language. It schedules the post and iHatePosting publishes it at the time you set.
A post can hold up to 3,000 characters.
Codex can set post_as_images_carousel, carousel_name. The settings reference on this page lists what each one does.
No. The first route opens an iHatePosting sign-in in your browser, and no key changes hands. The route that takes a key uses one from Settings → Agents / Dev in iHatePosting. The command line signs in with ihateposting auth:login.
Yes. Name a day and a time and iHatePosting publishes the post then, whether or not Codex is still open.