Post to LinkedIn from Claude Code
Claude Code can draft, schedule, and publish LinkedIn posts through Postiz. Connect the Postiz MCP server once, sign in with OAuth, and ask Claude Code to share a blog post, turn a set of screenshots into an image carousel, or post to your company page instead of your personal profile, directly from the terminal.
Please make sure there is always a human in the loop.
Last updated: September 2026
How to post to LinkedIn from Claude Code
Add the Postiz MCP server to Claude Code once, sign in with OAuth, connect LinkedIn 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:
> Share our new blog post on LinkedIn with
./blog/cover.png, tomorrow at 9am
Claude Code: Done! Your LinkedIn post is
scheduled for tomorrow at 9:00 AM.What can Claude Code do on LinkedIn?
On LinkedIn, Claude Code can publish text posts, single images, documents, videos, and image carousels, to either a personal profile or a company page.
Professional Posts
Publish polished text posts with hashtags, mentions, and links. Perfect for thought leadership and industry insights.
Image Carousels
Turn multiple images into a swipeable carousel post. Great for slide decks, infographics, and visual storytelling.
Company Pages
Post as your company page using the linkedin-page type. Manage brand content alongside personal profiles.
Analytics Tracking
Track post performance with Postiz analytics. Monitor impressions, engagement, and reach across your LinkedIn content.
Media Attachments
Attach images, documents, and videos to your posts. Upload through Postiz for seamless media management.
Scheduled Posting
Schedule posts with precise timestamps. Plan your LinkedIn content calendar weeks in advance and let Postiz handle publishing.
How does Claude Code post to LinkedIn 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.
Find Your LinkedIn Integration
Ask Claude Code whether your LinkedIn account is connected. It also checks which options the platform supports.
Example conversation
> Is my LinkedIn account connected to Postiz?
Claude Code: Yes — your LinkedIn account is connected
and ready. Want me to post something?Upload Your Media
Point Claude Code at your images and it uploads them for carousel or single-image posts.
Example conversation
> Draft a LinkedIn post about our new
feature launch
Claude Code: Here's a draft for LinkedIn:
"We just shipped something big..."
Want me to add media and schedule it?Create Your Post
Schedule a LinkedIn post with your content, images, and platform-specific settings like carousel mode and carousel naming.
Example conversation
> Yes — add screenshot.png and schedule
it for tomorrow at 9am
Claude Code: Done! Scheduled on LinkedIn for
tomorrow at 9:00 AM.LinkedIn Settings Reference
Mention any of these in plain language and Claude Code sets them for you. These are the LinkedIn options it can apply to any post.
| Field | Type | Description |
|---|---|---|
__type | string | Must be "linkedin" (personal) or "linkedin-page" (company page) |
post_as_images_carousel | boolean | Post multiple images as a carousel. Default: false |
carousel_name | string | Display name for the carousel (shown in LinkedIn UI) |
Common Configurations
Ask Claude Code for any of these common LinkedIn scenarios and it applies the matching settings.
Simple Text Post (Personal Profile)
Just ask
> Post it with: Simple Text Post (Personal Profile)
Claude Code: Got it. Applying:
(defaults)Image Carousel with Title
Just ask
> Post it with: Image Carousel with Title
Claude Code: Got it. Applying:
post_as_images_carousel: yes
carousel_name: Weekly InsightsCompany Page Post
Just ask
> Post it with: Company Page Post
Claude Code: Got it. Applying:
(defaults)Company Page Carousel
Just ask
> Post it with: Company Page Carousel
Claude Code: Got it. Applying:
post_as_images_carousel: yes
carousel_name: Product Roadmap Q2Example prompts for LinkedIn 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 as a carousel
Claude Code
> Take the 5 screenshots in ./release-shots and
post them on LinkedIn as a carousel called
"What's new in v2.4" with a short intro,
Tuesday 8am
Claude Code: Uploaded 5 images. Scheduled on
LinkedIn with post_as_images_carousel: true
and carousel_name: "What's new in v2.4".Company page instead of profile
Claude Code
> Post the announcement in ANNOUNCEMENT.md to
our LinkedIn company page, not my profile,
at 10am today
Claude Code: Found your linkedin-page channel.
Scheduled for 10:00 AM today.Weekly engineering update, headless
Claude Code
$ claude -p "Summarize this week's merged PRs
into a LinkedIn post under 3,000 characters
and schedule it via Postiz for Friday 3pm."
# Add this to a Friday cron job and the
# update ships without opening a terminalLinkedIn limits and gotchas to know
LinkedIn has a couple of rules worth knowing before you ask Claude Code to post.
- ✓LinkedIn posts are capped at 3,000 characters. Claude Code keeps drafts under the limit if you mention LinkedIn in the request.
- ✓Personal profiles use the linkedin channel type and company pages use linkedin-page. Say which one you mean, or Claude Code asks.
- ✓Carousels are built from several images with post_as_images_carousel set to true; a single image is posted as a normal image post.
- ✓carousel_name is the label LinkedIn shows for the carousel document, so give it a readable title.
- ✓Images and documents are uploaded through Postiz first, so point Claude Code at local files or URLs.
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 LinkedIn 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"LinkedIn 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 LinkedIn about our
new feature launch, schedule for
tomorrow at 9am"
Claude Code: I'll handle that.
Found your LinkedIn integration.
Composing and scheduling the post.
Done! Your post is scheduled.
Post ID: abc-123Parallel 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 simultaneouslyWhy Claude Code + Postiz for LinkedIn
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 LinkedIn 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
- ✓Reads SKILL.md for automatic command discovery
- ✓Cross-post to LinkedIn + 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 LinkedIn
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>
# LinkedIn Settings
__type, post_as_images_carousel,
carousel_nameAlso 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.
Claude Cowork
by Anthropic
Claude Cowork reads the Postiz skill so it knows what it can do, then autonomously discovers your LinkedIn integration, uploads your images, creates a carousel if needed, and schedules the post.
Claude Cowork
> Create a LinkedIn carousel from my
slide deck images, schedule for
tomorrow morning
Claude Cowork: Done! Scheduled on LinkedIn for
tomorrow at 9:00 AM.Post to LinkedIn and other platforms from Claude Code
One request can schedule the same content to LinkedIn 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
LinkedIn and X tomorrow at 9am, then schedule
a daily tip on LinkedIn every weekday at 10am
Claude Code: Done! Scheduled:
- LinkedIn + X: tomorrow 9:00 AM
- Daily tips on LinkedIn: Mon-Fri 10:00 AMSee 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, seeLinkedIn scheduling features in Postiz.
Account Types
Personal Profile
linkedinCompany Page
linkedin-pageLinkedIn and Claude Code: frequently asked questions
How do I post to LinkedIn from Claude Code?
Add the Postiz MCP server with claude mcp add --transport http postiz https://mcp.postiz.com/mcp-oauth-dynamic, sign in to Postiz, and make sure your LinkedIn profile or company page is connected in Postiz. Then describe the post in Claude Code. It drafts the copy, uploads any media, and schedules the post for the time you asked.
Can Claude Code post to a LinkedIn company page?
Yes. Postiz exposes company pages as a separate linkedin-page channel type alongside the personal linkedin type. Tell Claude Code you want the company page and it picks the right channel. You can also ask it to post the same update to both your profile and the page in one request.
How do I create a LinkedIn image carousel with Claude Code?
Give Claude Code several images and ask for a carousel. It uploads the images through Postiz, sets post_as_images_carousel to true, and uses your chosen name as carousel_name. LinkedIn shows the result as a swipeable document post. Without the carousel request, multiple images are posted as a regular multi-image post.
Can Claude Code write LinkedIn posts from my codebase?
Yes, and that is the main advantage over a chat-only agent. Claude Code can read your changelog, README, or merged pull requests and turn them into a LinkedIn post before scheduling it through Postiz. It keeps the copy under the 3,000-character limit and asks for permission before anything is published.
Can I automate LinkedIn posting with Claude Code in CI?
Yes. Use headless mode, claude -p "...", inside a GitHub Action, cron job, or release script. Claude Code runs the single prompt, calls Postiz, and exits. The Postiz MCP server or skill needs to be configured on the machine that runs the job, and the LinkedIn channel must already be connected in Postiz.
Start posting to LinkedIn
Install Postiz Agent and automate your LinkedIn content strategy with AI-powered scheduling and publishing.