Codex + Pinterest
Post to Pinterest from Codex
Through iHatePosting, Codex can pin pictures or a video to the board you pick, each with its title, the page it leads to and a dominant colour. 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 description can hold up to 500 characters, and the title up to 100.
Posting to Pinterest from Codex
Add iHatePosting to Codex once, connect Pinterest, 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 Pinterest 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 Pinterest post
Describe the post in plain language. Codex writes it, applies the settings and schedules it.
> List my Pinterest boards, then pin dinner.png to the Recipes board with the title Ten-minute pasta and a link to the recipe.
Codex: Done. Scheduled on Pinterest.What Codex can do on Pinterest
On Pinterest, Codex can pin pictures or a video to the board you pick, each with its title, the page it leads to and a dominant colour.
Pins
Publish a picture pin, or up to five pictures.
Boards
List your boards and choose the one a pin goes to.
Link pins
Add the address the pin should open.
Video pins
Publish a video pin with a cover picture.
Scheduling
Choose a time and iHatePosting publishes the pin then.
How Codex gets a post onto Pinterest
You say what you want and Codex makes the calls. A typical conversation goes like this.
Find your Pinterest channel
Which Pinterest accounts do I have in iHatePosting?
What happens
- Codex lists your channels and finds Pinterest
- It can also run the boards helper: Lists your boards with their numeric ids.
Compose your content
Pin demo.mp4 with cover.png as its cover to my Product board on Friday at 14:00.
What happens
- Codex drafts the text for Pinterest
- 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 Pinterest at that time
Pinterest settings reference
Say the option in your own words and Codex fills in the matching field. This is every Pinterest setting it can use.
| Field | Type | Required | Description |
|---|---|---|---|
| board | string | Yes | The numeric id of the board (from the boards list of the channel), not the board name |
| title | string | No | The pin's title, up to 100 characters |
| link | string | No | The address the pin opens |
| dominant_color | string | No | The pin's dominant colour |
Common configurations
Each case below is a request Codex understands, followed by the Pinterest options it sets.
Choose a board
Pin it to my Recipes board
- Applies: board: the numeric id of Recipes
A link pin
Send people to https://example.com/recipe
- Applies: link:
https://example.com/recipe
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 ihatepostingPinterest and the other platforms Codex reaches
Ask for Pinterest and other channels in a single message; every channel still applies its own settings.
Pinterest requests to try in Codex
A recipe pin
List my Pinterest boards, then pin dinner.png to the Recipes board with the title Ten-minute pasta and a link to the recipe.
A video pin
Pin demo.mp4 with cover.png as its cover to my Product board on Friday at 14:00.
A set of pictures
Pin the five photos as one pin to my Travel board tomorrow at 9:00.
Pinterest limits and gotchas to know
A few of Pinterest's rules shape how Codex writes your request, so it helps to know them.
- A description can hold up to 500 characters, and the title up to 100.
- A pin needs at least one attachment; a video pin needs two, the video and its cover picture, and there can be only one video.
- With pictures, a pin can have at most five, and all of them must have the same width and height.
- board is the board's numeric id, never its name; the agent reads the ids with the boards helper first.
Frequently asked questions
Start free for 30 daysAdd the iHatePosting entry to Codex's config.toml and sign in with codex mcp login, connect Pinterest 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 description can hold up to 500 characters, and the title up to 100.
Codex can set board, title, link, dominant_color. 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.