Decorative doodle

Post to Slack from Claude Code

Claude Code can post and schedule Slack messages through Postiz. Add the Postiz MCP server with one command, sign in with OAuth, connect your Slack workspace in Postiz, and ask Claude Code to post release notes to #general, schedule a Monday reminder, or drop a summary of merged pull requests into the team channel.

Setup GuideGitHub

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

Last updated: September 2026

Decorative doodleDecorative doodle

How to post to Slack from Claude Code

Add the Postiz MCP server to Claude Code once, sign in with OAuth, connect Slack in Postiz, and then describe the post in plain language. Setup takes about a minute.

Setup once, then just ask

# One-time setup: add the Postiz MCP server (OAuth, no API key)
claude mcp add --transport http postiz https://mcp.postiz.com/mcp-oauth-dynamic

# Or install the Postiz skill instead
npx skills add gitroomhq/postiz-agent
export POSTIZ_API_KEY=your_api_key

# Then ask Claude Code:
> Summarize this week's merged PRs and post it
  to #engineering on Slack, Friday at 4pm

Claude Code: Done! Slack message scheduled in
  #engineering for Friday at 4:00 PM.

What can Claude Code do on Slack?

On Slack, Claude Code can send text and media messages to any channel your Postiz app is in, immediately or on a schedule.

📢

Channel Messaging

Post messages to any Slack channel your bot has access to. Share updates, announcements, and notifications automatically.

⏰

Scheduled Messages

Schedule messages for the perfect time. Queue up announcements, reminders, and updates to post when your team is most active.

🖼

Media Sharing

Attach images, files, and rich media to your Slack messages. Share screenshots, reports, and visual updates with your team.

👥

Team Communications

Automate recurring team updates, standup summaries, and status reports across multiple channels simultaneously.

🤖

Bot Integration

Leverage Slack bot tokens for seamless posting. Your AI agent authenticates once and posts on behalf of your workspace.

📅

Multi-Channel Posting

Target different channels for different content types. Send engineering updates to #dev and marketing wins to #general.

How does Claude Code post to Slack through Postiz?

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

1

Find Your Slack Integration

Ask Claude Code whether your Slack account is connected. It also checks which options the platform supports.

Example conversation

> Is my Slack account connected to Postiz?

Claude Code: Yes — your Slack account is connected
  and ready. Want me to post something?
2

Choose Your Channel

Identify the Slack channel ID where you want to post. You can find channel IDs in Slack by right-clicking a channel and selecting 'View channel details'.

Example conversation

> Draft a Slack post about our new
  feature launch

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

Create Your Post

Send a message to your Slack channel with the channel ID in settings. Schedule it for later or post immediately.

Example conversation

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

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

Slack Settings Reference

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

FieldTypeDescription
__typestringMust be "slack"
channelstringSlack channel ID (e.g. C12345)

Common Configurations

Ask Claude Code for any of these common Slack scenarios and it applies the matching settings.

General Channel Announcement

Just ask

> Post it with: General Channel Announcement

Claude Code: Got it. Applying:
  channel: C12345

Engineering Updates

Just ask

> Post it with: Engineering Updates

Claude Code: Got it. Applying:
  channel: C67890

Marketing Channel Post

Just ask

> Post it with: Marketing Channel Post

Claude Code: Got it. Applying:
  channel: CABCDE

Example prompts for Slack in Claude Code

These are prompts you can type into a Claude Code session, or pass to claude -p in a script. Claude Code reads your repo, calls Postiz, and confirms before publishing.

Release notes to a channel

Claude Code

> Post the v2.4 highlights from CHANGELOG.md
  to #product-updates on Slack with
  ./assets/release.png

Claude Code: Uploaded release.png. Message ready
  for #product-updates. Approve to send?

Recurring reminder

Claude Code

> Schedule "Sprint review in 15 minutes, agenda
  in Notion" to #team every other Thursday at
  1:45pm for the next 6 weeks

Claude Code: Scheduled 3 Slack messages in
  #team on the requested Thursdays.

CI failure summary, headless

Claude Code

$ claude -p "Read ci.log, summarize the failing
  tests in 3 lines, and post it to #dev on Slack
  via Postiz."

# Run this in the failure step of your pipeline

Slack limits and gotchas to know

Slack messages through Postiz go to one channel at a time, so keep these details in mind.

  • ✓channel is required and is a Slack channel ID (for example C12345). Claude Code can list channels and resolve the name for you.
  • ✓The Postiz Slack app must be a member of the channel you target.
  • ✓Media is uploaded through Postiz, so reference a file path or URL in your request.
  • ✓Claude Code asks for permission before posting, which keeps accidental messages out of busy channels.

What is Claude Code?

Claude Code is Anthropic's agentic coding tool that lives in your terminal. It handles software engineering tasks — writing features, fixing bugs, and answering questions about your codebase — and it can run shell commands and MCP tools like Postiz.

Not the same as Claude Cowork (Anthropic's desktop agent for knowledge workers) or the Postiz connector for Claude.ai (chat in the browser or desktop app). Claude Code runs in your terminal and IDE and can read your repository while it writes Slack posts.

💻

Terminal & IDE Native

Claude Code runs in your terminal, with extensions for VS Code and JetBrains. You type what you want in plain English and it handles Postiz for you.

🔧

Agentic Execution

Claude Code plans and works through multi-step tasks on its own — discovering channels, uploading media, and scheduling posts — and asks for permission before it acts.

⚡

Parallel Tasks

Run several Claude Code sessions side by side, or spawn subagents in one. Schedule posts to different platforms while it handles other coding work.

How Postiz Works with Claude Code

Claude Code discovers Postiz through the Postiz skill or the Postiz MCP server. It reads the SKILL.md (or the MCP tool list) to learn what it can do, then chains calls together for social media workflows.

  • ✓Install the Postiz skill, or add the Postiz MCP server with claude mcp add
  • ✓Claude Code discovers the Postiz tools over MCP, or reads SKILL.md when you use the skill
  • ✓MCP route: sign in with OAuth, no API key. Skill route: set POSTIZ_API_KEY
  • ✓Claude Code asks for permission before running commands
  • ✓Works alongside your coding tasks in parallel

Install Postiz

# Option A: add the Postiz MCP server
claude mcp add --transport http postiz https://mcp.postiz.com/mcp-oauth-dynamic

# Option B: install the Postiz skill
npx skills add gitroomhq/postiz-agent
export POSTIZ_API_KEY=your_api_key

# Then just ask
claude "list my social media integrations"

Slack Posting with Claude Code

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

💻

Just Ask Claude Code

Terminal and IDE integration

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

Claude Code CLI

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

Claude Code: I'll handle that.
  Found your Slack integration.
  Composing and scheduling the post.

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

Parallel Tasks

Multiple tasks at once

Claude Code runs headless with claude -p, so several tasks can run in parallel. Schedule posts to different platforms while it works on other coding tasks.

Claude Code Parallel Tasks

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

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

$ claude -p "Fix the bug in auth.ts"

# All three tasks run simultaneously

Why Claude Code + Postiz for Slack

Claude Code'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 Slack workflows.

  • ✓Runs in your terminal or IDE — just type what you want
  • ✓Permission-based execution — you stay in control
  • ✓Parallel task support — post while coding
  • ✓Channel targeting applied automatically based on your instructions
  • ✓Cross-post to Slack + other platforms in a single session
  • ✓Powered by Claude — Anthropic's most capable models

SKILL.md (auto-discovered)

---
name: postiz
description: Social media automation
  CLI for scheduling posts across
  30+ platforms including Slack
metadata:
  claude-code:
    requirements:
      env:
        - POSTIZ_API_KEY
      binaries:
        - postiz
---

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

# Slack Settings
channel (required)

Also Works with Claude Cowork

Postiz works with any AI agent that can run commands or call MCP tools. That includes Claude Cowork, Anthropic's desktop agent, and the Claude.ai connector. See the agents overview for every supported agent.

C

Claude Cowork

by Anthropic

Claude Cowork reads the Postiz skill so it knows what it can do, then autonomously discovers your Slack integration, identifies the correct channel, and sends your message.

Claude Cowork

> Post a deployment update to #engineering
  on Slack

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

Post to Slack and other platforms from Claude Code

One request can schedule the same content to Slack and other channels, and each platform keeps its own settings. Every platform below has its own Claude Code guide.

Example

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

Claude Code: Done! Scheduled:
  - Slack + Discord: tomorrow 9:00 AM
  - Daily tips on Slack: Mon-Fri 10:00 AM

See all 25 platforms in the Claude Code social media guide, compare agents on the AI agents overview, read about the Postiz MCP server, or check pricing. For the channel itself, seeSlack scheduling features in Postiz.

Slack and Claude Code: frequently asked questions

How do I post to Slack from Claude Code?

Add the Postiz MCP server to Claude Code, sign in to Postiz with OAuth, and connect your Slack workspace in Postiz. Then tell Claude Code the channel and the message. It resolves the channel ID, writes or formats the text, uploads any attachment, and sends or schedules the message through Postiz.

Can Claude Code post to Slack from a CI pipeline?

Yes. Call claude -p with a prompt from a pipeline step, for example summarizing failing tests from a log file and posting to #dev. Claude Code reads the file, drafts the message, sends it through Postiz, and exits. The Postiz MCP server or skill must be configured on the runner.

How does Claude Code find the Slack channel ID?

Slack channels in Postiz are addressed by ID, such as C12345. Ask Claude Code which Slack channels Postiz can post to and it lists them with names, then picks the one you mean. If the name is ambiguous, it asks rather than guessing, and it requests permission before sending.

Can Claude Code schedule recurring Slack messages?

Yes. Describe the schedule, such as every other Thursday at 1:45pm for six weeks, and Claude Code creates the individual scheduled messages through Postiz. Each one appears in your Postiz calendar and can be edited or cancelled later, either in Postiz or by asking Claude Code.

Start posting to Slack

Install Postiz Agent and automate your Slack communications with AI-powered scheduling and messaging.