OpenAI Codex

Zernio for OpenAI Codex

Add the server

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

then sign in

Run YouTube from Codex

Read analytics, reply to comments, run Google Ads campaigns, send conversions to the Google Ads conversion API and publish posts on YouTube, 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.

  • Analytics
  • Inbox
  • Google Ads
  • Conversions
  • 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

YouTube numbers written to the repo every day 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: "write yesterday's YouTube 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.

YouTube comments counted by a script, answered by you

  1. 01

    Save the prompt: "count YouTube comments waiting more than 24 hours and draft replies to out/drafts.md without sending".

  2. 02

    A scheduled codex exec run reads the conversations through Zernio and writes the counts and drafts.

  3. 03

    You read out/drafts.md, edit what needs it, and ask Codex in the CLI to send the approved ones.

Use cases

How people run YouTube from Codex

YouTube report files committed daily

codex exec writes yesterday's YouTube analytics to a markdown file in the repo on a schedule. Because each run is committed, a plain git diff shows what changed week to week.

Script finds it, the IDE finishes it

When the morning run flags one of the YouTube threads, open Codex in your editor, read the conversation through Zernio and write the reply there. Same config file, same server, no second setup.

Event check before a launch

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

Setup

Codex and YouTube in 4 steps

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

01

Connect YouTube

Sign up free and connect a YouTube channel you own, on a personal Google account or a Brand Account in Zernio.

Connect YouTube

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 YouTube

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.

Analytics

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

Per-video views, likes and comments, plus daily views and watch time, channel insights, audience demographics and retention curves (daily and demographic data run 2 to 3 days behind).

Inbox

Counts YouTube comments waiting too long in a scheduled run and drafts replies to a file, sending only after you say so.

List, reply to and delete comments on videos, and approve, reject or hold comments for review with an optional author ban.

Ads

Lists Google 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 Google Ads, from a separately connected ad account.

Google Ads with Zernio

Conversions

Sends a test event per event name to the Google Ads conversion API from a CI step and reports which were accepted.

Google Ads conversions: events sent server-side to an enabled conversion action, which YouTube campaigns optimize toward.

Conversions API docs

Publishing

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

  • Videos: one video per post, with title, description, tags, visibility, category and an optional custom thumbnail
  • Shorts: detected by YouTube from the video itself (3 minutes or shorter, vertical or square), with no flag to set
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

YouTube rules the agent runs into

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

  • Unverified channels are limited to 15-minute videos, and YouTube applies custom thumbnails only on phone-verified channels.
  • YouTube caps API use at 10,000 quota units a day per project; liking a video and creating a playlist cost 50 units each, and a first caption read costs 200.

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

Each YouTube 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 YouTube channel you own, on a personal Google account or a Brand Account 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.

No. YouTube's Analytics API does not expose impressions or impressions click-through rate. You get views, likes, comments, watch time, subscriber changes, demographics and retention.

Give Codex your YouTube account

Connect a YouTube channel you own, on a personal Google account or a Brand Account, add Zernio to Codex, and ask.

  • Analytics
  • Inbox
  • Google Ads
  • Conversions
  • Publishing