doodle top mobile

Post to Twitch from Codex

Codex can post to your Twitch chat through Postiz. Install the Postiz skill or add the Postiz MCP server to Codex, connect your Twitch channel in Postiz, then say what to send. Codex writes the chat message or announcement, picks the announcement color you name, and schedules it around your stream times.

Setup GuideGitHub

Please make sure there is always a human in the loop.

Last updated: September 2026

doodle left mobiledoodle right mobile

How do I post to Twitch from Codex?

Set up Codex once with the Postiz skill or the Postiz MCP server, connect Twitch in Postiz, then ask. The whole setup takes a few minutes.

Setup, then just ask

# One-time setup, option A: Postiz skill + CLI
npx skills add gitroomhq/postiz-agent
export POSTIZ_API_KEY=your_api_key   # or: postiz auth:login

# One-time setup, option B: Postiz MCP server (OAuth, no key)
codex mcp add postiz --url https://mcp.postiz.com/mcp-oauth-dynamic
codex mcp login postiz

# Then just ask Codex:
> Send a "going live" announcement
  to my Twitch chat at 8pm

Codex: Done! Your Twitch post is scheduled.

Twitch-Specific Features

💬

Chat Messages

Send messages directly to your Twitch chat. Keep your community engaged with automated updates, links, and announcements.

📣

Announcements

Broadcast highlighted announcements that stand out in chat. Perfect for stream starts, events, and important updates.

🎨

Colored Announcements

Choose from primary, blue, green, orange, or purple colors for your announcements. Match your brand or highlight different content types.

🔔

Stream Notifications

Schedule pre-stream hype messages and go-live notifications. Let your audience know when you're about to start streaming.

⏰

Scheduled Posting

Queue up chat messages and announcements for specific times. Perfect for timed promotions during streams or pre-stream countdowns.

🤖

AI-Powered Chat

Let AI agents compose and send context-aware chat messages. Automate community engagement while maintaining your voice.

How does Codex post to Twitch?

You describe what you want in plain language and Codex handles the Postiz calls for you. Here is how a typical conversation goes.

1

Find Your Twitch Integration

Ask Codex whether your Twitch account is connected. It also checks which options the platform supports.

Example conversation

> Is my Twitch account connected to Postiz?

Codex: Yes — your Twitch account is connected
  and ready. Want me to post something?
2

Choose Your Message Type

Decide whether to send a regular chat message or a highlighted announcement. Announcements support color customization for extra visibility.

Example conversation

> Draft a Twitch post about our new
  feature launch

Codex: Here's a draft for Twitch:
  "We just shipped something big..."
  Want me to add media and schedule it?
3

Create Your Post

Send a chat message or announcement to your Twitch channel. Schedule it for a specific time or post immediately.

Example conversation

> Yes — add screenshot.png and schedule
  it for tomorrow at 9am

Codex: Done! Scheduled on Twitch for
  tomorrow at 9:00 AM.

Twitch Settings Reference

Mention any of these in plain language and Codex sets them for you. These are the Twitch options it can apply to any post.

FieldTypeDescription
__typestringMust be "twitch"
messageTypestring"message" or "announcement" (default: message)
announcementColorstring"primary", "blue", "green", "orange", or "purple" (only for announcements)

Common Configurations

Ask Codex for any of these common Twitch scenarios and it applies the matching settings.

Simple Chat Message

Just ask

> Post it with: Simple Chat Message

Codex: Got it. Applying:
  messageType: message

Purple Announcement

Just ask

> Post it with: Purple Announcement

Codex: Got it. Applying:
  messageType: announcement
  announcementColor: purple

Green Giveaway Announcement

Just ask

> Post it with: Green Giveaway Announcement

Codex: Got it. Applying:
  messageType: announcement
  announcementColor: green

Blue Event Announcement

Just ask

> Post it with: Blue Event Announcement

Codex: Got it. Applying:
  messageType: announcement
  announcementColor: blue

What is Codex?

Codex is OpenAI's coding agent. It runs as the Codex CLI in your terminal (npm install -g @openai/codex), as an IDE extension, and in the cloud, and it can run shell commands and call MCP servers, which is how it drives Postiz. Codex is not ChatGPT: ChatGPT is the chat assistant on chatgpt.com and connects to Postiz differently (see the ChatGPT guide). For the full setup, start at the Codex + Postiz hub.

💻

Terminal & IDE Native

Codex runs in your terminal or IDE. You type what you want in plain English and it handles Postiz for you — no extra configuration needed.

🔧

Autonomous Execution

Codex runs commands inside a sandbox with approval rules you control, and works through multi-step tasks like discovering channels, uploading media, and scheduling Twitch posts.

⚡

Parallel Tasks

Run multiple Codex tasks simultaneously. Schedule posts to different platforms in parallel while Codex handles other coding work.

How Postiz Works with Codex

Codex discovers Postiz two ways: the postiz skill, which it loads from .agents/skills or ~/.agents/skills and which you can invoke with $postiz, or the Postiz MCP server added with codex mcp add. Either way it learns the available tools and chains them for Twitch workflows.

  • ✓Install the Postiz skill with npx skills add, or add the Postiz MCP server with codex mcp add
  • ✓Codex loads skills from .agents/skills and reads SKILL.md to learn the Postiz CLI
  • ✓Authenticate with POSTIZ_API_KEY or postiz auth:login; the MCP route uses OAuth instead
  • ✓Codex runs commands in its sandbox and asks for approval based on your permission settings
  • ✓Works alongside your coding tasks in parallel

Install Postiz

# Install the Postiz skill
npx skills add gitroomhq/postiz-agent

# Set your API key
export POSTIZ_API_KEY=your_api_key

# Or add the Postiz MCP server instead (OAuth, no API key)
codex mcp add postiz --url https://mcp.postiz.com/mcp-oauth-dynamic
codex mcp login postiz

# Then ask, interactively or headless
codex "list my social media integrations"
codex exec "post today's changelog to Twitch"

Twitch Posting with Codex

Tell Codex what to post from your terminal or IDE — it discovers your integrations via Postiz and handles the entire publishing workflow.

💻

Just Ask Codex

Terminal and IDE integration

Tell Codex what to post from your terminal or IDE — it discovers your integrations via Postiz and handles the entire publishing workflow.

Codex CLI

$ codex "Post to Twitch about our
  new feature launch, schedule for
  tomorrow at 9am"

Codex: I'll handle that.
  Found your Twitch integration.
  Composing and scheduling the post.

  Done! Your post is scheduled.
  Post ID: abc-123
💻

Parallel Tasks

Multiple tasks at once

Codex can handle multiple tasks in parallel. Schedule posts to different platforms while it works on other coding tasks simultaneously.

Codex Parallel Tasks

# Run multiple posting tasks in parallel
$ codex "Schedule a post about our
  launch to X for tomorrow 9am" &

$ codex "Write a LinkedIn article
  about our new feature and schedule
  for tomorrow noon" &

$ codex "Fix the bug in auth.ts"

# All three tasks run simultaneously

Why Codex + Postiz for Twitch

Codex's autonomous execution makes Postiz a natural fit. The agent reads the SKILL.md to understand every available command, then autonomously chains them together for Twitch workflows.

  • ✓Runs in your terminal or IDE — just type what you want
  • ✓Autonomous execution in sandboxed environments
  • ✓Parallel task support — post while coding
  • ✓Announcement colors applied automatically based on your instructions
  • ✓Cross-post to Twitch + other platforms in a single session
  • ✓Powered by OpenAI's most capable models

SKILL.md (loaded by Codex from .agents/skills)

---
name: postiz
description: Social media automation
  CLI for scheduling posts across
  30+ platforms including Twitch
homepage: https://docs.postiz.com/public-api/introduction
---

# Loaded by Codex from .agents/skills
# Invoke explicitly with $postiz

# Available Commands
- postiz integrations:list
- postiz integrations:settings <id>
- postiz posts:create
- postiz upload <file>
- postiz analytics:platform <id>

# Twitch Settings
messageType, announcementColor

Also Works with Claude Code

Postiz works with any AI agent that can run commands or call MCP tools — you ask, the agent does the work. That includes Anthropic's Claude Code: see the Claude Code Twitch guide, or the Postiz Agent page for any other agent.

C

Claude Code

by Anthropic

Claude reads the Postiz skill so it knows what it can do, then autonomously discovers your Twitch integration, picks the right message type and color, and sends the message.

Claude Code

> Send a purple announcement to Twitch:
  "Stream starting now! Let's build!"

Claude: Done! Scheduled on Twitch for
  tomorrow at 9:00 AM.

Can Codex post to Twitch and other platforms at once?

Announce your stream on Twitch and other platforms in a single request. Each platform gets its own settings.

Example

> Post "Excited to announce our new feature!" to
  Twitch and LinkedIn tomorrow at 9am, then schedule
  a daily tip on Twitch every weekday at 10am

Codex: Done! Scheduled:
  - Twitch + LinkedIn: tomorrow 9:00 AM
  - Daily tips on Twitch: Mon-Fri 10:00 AM

Announcement Colors

Primary

primary

Blue

blue

Green

green

Orange

orange

Purple

purple

What can I ask Codex to post on Twitch?

Codex takes plain-English prompts in an interactive session, as a one-off codex exec command, or through the $postiz skill. These are the kinds of prompts people type for Twitch.

Prompts for Twitch

> Send a "going live in 10 minutes" announcement to my
  Twitch chat at 7:50pm, purple

$ codex exec "Post a plain chat message on Twitch with tonight's
  stream topic at 8pm"

> $postiz Schedule a Twitch announcement every Friday at 8pm for
  the next month reminding viewers about game night

What Twitch rules should Codex follow?

These are the Twitch limits and required settings Postiz enforces. Codex reads them from postiz integrations:settings, and you can mention any of them in your prompt.

  • ✓messageType is message (default) or announcement.
  • ✓announcementColor applies only to announcements: primary, blue, green, orange, or purple.
  • ✓Twitch chat is text, so Codex sends messages and links rather than images or video.
  • ✓Schedule going-live posts a few minutes before your stream; Postiz publishes them without Codex running.

Codex and Twitch FAQ

How do I post to Twitch from Codex?

Install the Postiz skill with npx skills add gitroomhq/postiz-agent, or add the Postiz MCP server with codex mcp add postiz --url https://mcp.postiz.com/mcp-oauth-dynamic. Connect Twitch in Postiz once, then ask Codex in plain English what to post and when. Codex resolves the Twitch settings, uploads any media, and schedules the post.

What is the difference between a Twitch message and an announcement from Codex?

A message is a normal line in chat sent from your channel. An announcement is highlighted by Twitch with a colored bar so viewers notice it. Codex sets messageType to announcement when you say "announce" and picks announcementColor from primary, blue, green, orange, or purple based on your prompt.

Can Codex time Twitch posts around my stream schedule?

Yes. Give Codex your stream times and it schedules a going-live announcement a few minutes before each one, plus reminders during the week. Because Postiz publishes at the scheduled time on its own, Codex does not need to be running while you stream or when the message goes out.

Can Codex post to Twitch on a schedule without me watching?

Yes. Postiz stores scheduled Twitch posts and publishes them at the chosen time, so Codex does not need to stay open. For unattended runs, call codex exec with your prompt from a script or cron job. Keep a human reviewing the output, since Codex will publish exactly what it is told to publish.

Do I need a Postiz API key to post to Twitch from Codex?

Not with the MCP route. Run codex mcp login postiz and Codex signs in to your Postiz account over OAuth, so it only reaches channels you already connected, including Twitch. The CLI skill route needs either postiz auth:login or a POSTIZ_API_KEY environment variable. Your Twitch login itself never leaves Postiz.

Is posting to Twitch from Codex the same as posting from ChatGPT?

No. Codex is OpenAI's coding agent for your terminal and IDE, and it reaches Postiz through the Postiz skill or MCP server. ChatGPT is the chat assistant on chatgpt.com, which connects to Postiz as an app or custom MCP connector. Both can publish to Twitch; see the ChatGPT guide for that setup.

Start posting to Twitch

Install Postiz Agent and automate your Twitch chat with AI-powered announcements and messaging.