OpenAI Codex

Zernio for OpenAI Codex

Add the server

Writes the entry to ~/.codex/config.toml.

then sign in

Run Pinterest from Codex

Run Pinterest Ads campaigns, send conversions to the Pinterest Conversions API, read analytics and publish posts on Pinterest, from Codex. Codex can run the same prompt as a scripted codex exec job, so a daily platform check asks the same question and answers in the same shape every time.

  • Pinterest Ads
  • Conversions
  • Analytics
  • Publishing

Join 200,000+ of the world's most ambitious developers and builders

Warner Music Group
Runable
ClickUp
MoFlo
RE/MAX
Readdy
Write the prompt once, run it on a schedule

A morning Pinterest Ads check from codex exec with Codex

Codex runs from the CLI, the IDE extension or a codex exec job with no screen. Put a platform check in a script and cron or CI runs it every morning; when a run turns up something, pick the thread up in the IDE.

  1. 01

    Save the prompt in your repo: "list Pinterest Ads ad sets that spent yesterday with zero results, as JSON".

  2. 02

    A cron job or CI step runs codex exec with it each morning; Codex reads the ad sets through Zernio.

  3. 03

    codex exec prints the final answer to stdout, so the script saves it or posts it wherever your team looks.

  4. 04

    When the list is long, open the session in the Codex IDE extension and decide what to pause there.

Pinterest numbers written to the repo every day

  1. 01

    Save the prompt: "write yesterday's Pinterest analytics to reports/ in the same format as last time".

  2. 02

    codex exec runs it from cron and Codex reads the numbers through Zernio's analytics tools.

  3. 03

    Each day's file is committed, so git diff shows what moved since last week.

Use cases

How people run Pinterest from Codex

Daily Pinterest Ads spend check in CI

A CI job runs codex exec each morning with a saved prompt. Codex lists Pinterest Ads ad sets that spent with no results and prints them, so the team sees waste before the budget does.

Script finds it, the IDE finishes it

When the morning run shows one of the Pinterest numbers moving, open Codex in your editor and ask why. It reads the same Zernio server from the same config file, so nothing needs setting up twice.

Event check before a launch

Before a campaign goes live, a codex exec step sends one test event per event name to the Pinterest Conversions API and fails the job if any is rejected.

Setup

Codex and Pinterest in 4 steps

Codex reaches Pinterest through the Zernio MCP server. No Zernio server to host and no Pinterest developer app of your own.

01

Connect Pinterest

Sign up free and connect a Pinterest account with at least one board in Zernio.

Connect Pinterest

02

Add the server

Writes the entry to ~/.codex/config.toml, which the Codex CLI and IDE extension share.

03

Sign in

Approve the connection in the browser window Codex opens.

04

Check it works

Run codex mcp list and confirm zernio is listed and connected.

Good to know in Codex

  • codex mcp add writes zernio to ~/.codex/config.toml, which the CLI, the IDE extension and codex exec runs all read.
  • codex exec prints only the final message to stdout, and -o saves it to a file, so a script can keep or forward the answer.
  • Codex asks before tool calls according to its approval settings; for unattended runs, write prompts that draft and report rather than send.
What it can do

What Codex can do on Pinterest

Codex can run the same prompt as a scripted codex exec job, so a daily platform check asks the same question and answers in the same shape every time.

Ads

Lists Pinterest Ads ad sets with spend and no results every morning, and pauses the ones you name in a later run.

Campaigns and boosted posts on Pinterest Ads, from a separately connected ad account.

Pinterest Ads with Zernio

Conversions

Sends a test event per event name to the Pinterest Conversions API from a CI step and reports which were accepted.

Pinterest Conversions API: events sent server-side to your ad account.

Conversions API docs

Analytics

Writes Pinterest numbers to dated files in the repo, so each run can be compared with git diff.

Per-pin impressions, saves and clicks, plus daily account impressions, engagements, saves, pin clicks and outbound clicks for the last 89 days.

Publishing

Queues the Pinterest announcement once a release tag lands, last in the run after the checks.

  • Image pins: one image per pin
  • Video pins: one video per pin, with a custom cover image or a cover frame picked by time
Prompts

Ask in plain words. Codex picks the tools.

Written for how Codex works. Copy one, change the details.

Write the prompt once, run it on a schedule, in Codex

Limits

Pinterest rules the agent runs into

Set by Pinterest's API or by Zernio, whichever agent you use. Checked against the Zernio Pinterest docs on December 4, 2026.

  • Every pin needs exactly 1 image or 1 video; there are no text-only pins, carousels or multi-image posts.
  • Send a boardId on every pin, or it lands on whichever board Pinterest returns first.

Connecting Codex is free. Its calls bill like the API requests behind them.

Each Pinterest account counts as one connected account. The first 2 connected accounts are free, then $6 per account a month, falling to $1 as you add more.

Frequently Asked Questions

Connect a Pinterest account with at least one board in Zernio first. Then, in Codex: add the server and sign in. Run codex mcp list and confirm zernio is listed and connected.

In ~/.codex/config.toml, which codex mcp add writes. The CLI, the IDE extension and codex exec all read it, so one setup covers all three.

Yes, with codex exec. It runs a prompt without the interactive screen, prints only the final message to stdout, and -o writes that message to a file. It expects a Git repository unless you pass --skip-git-repo-check.

codex exec --json streams events as JSON Lines, and --output-schema holds the final answer to a JSON Schema you supply, so counts and lists arrive in fixed fields.

Codex follows its approval settings for tool calls. For unattended runs, write the prompt to draft and report, then send from an interactive session after you have read the drafts.

Yes. codex exec resume --last, or resume with a session id, picks up a previous run with its context, so you can ask follow-up questions about what it found.

Impressions, saves and clicks per pin, plus daily account metrics covering every pin on the account, including pins published before connecting. Pinterest serves the last 89 days only.

Give Codex your Pinterest account

Connect a Pinterest account with at least one board, add Zernio to Codex, and ask.

  • Pinterest Ads
  • Conversions
  • Analytics
  • Publishing