1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[5540],{97771:function(e,t,s){(window.__NEXT_P=window.__NEXT_P||[]).push(["/claude-code/x",function(){return s(57954)}])},57954:function(e,t,s){"use strict";s.r(t),s.d(t,{__N_SSG:function(){return z}});var a=s(85893),o=s(67294),i=s(9008),n=s.n(i),l=s(25675),d=s.n(l),r=s(41664),c=s.n(r),p=s(56969),x=s(86245),m=s(57465),h=s(58866);let u=[{value:"everyone",label:"Everyone"},{value:"following",label:"Following"},{value:"mentionedUsers",label:"Mentioned Users"},{value:"subscribers",label:"Subscribers"},{value:"verified",label:"Verified"}],f=[{field:"__type",type:"string",required:!0,description:'Must be "x"'},{field:"who_can_reply_post",type:"string",required:!0,description:"Who can reply: everyone, following, mentionedUsers, subscribers, verified"},{field:"community",type:"string",required:!1,description:"X Community URL to post into"}],g="claude mcp add --transport http postiz ".concat("https://mcp.postiz.com/mcp-oauth-dynamic"),w="https://postiz.com/claude-code/x",y=[{question:"How do I post to X from Claude Code?",answer:"Run claude mcp add --transport http postiz https://mcp.postiz.com/mcp-oauth-dynamic once, sign in to Postiz in the browser, and connect your X account in Postiz. Then type a plain-language request in Claude Code, such as asking for a scheduled tweet. Claude Code calls the Postiz tools, applies X settings, and confirms the scheduled time."},{question:"Can Claude Code post a thread on X?",answer:"Yes. Ask for a thread and Claude Code splits the content into separate tweets under 280 characters each, keeps them in order, and can attach different media to each tweet. Postiz publishes them as a native X thread at the scheduled time, so you do not have to paste tweets one by one."},{question:"Which X settings can Claude Code control through Postiz?",answer:"Two settings are exposed for X: who_can_reply_post (everyone, following, mentionedUsers, subscribers, or verified) and community (an X Community URL). Mention either in plain language, for example asking that only verified accounts reply, and Claude Code sets the matching field before it schedules the post."},{question:"Can I tweet from CI or a cron job with Claude Code and Postiz?",answer:"Yes. Claude Code has a headless mode, claude -p, that runs a single prompt and exits. Call it from a shell script, a cron entry, or a GitHub Action after a release, and Postiz publishes the tweet at the time you asked for. The MCP server or skill must already be configured on that machine."},{question:"Do I need an X API key to use Claude Code with Postiz?",answer:"No. You connect your X account inside Postiz once with OAuth, and Claude Code authenticates to Postiz over OAuth when you add the MCP server. There is no X developer key, bearer token, or API key to paste. If you prefer the Postiz skill route, the only key is your POSTIZ_API_KEY."},{question:"Is posting to X from Claude Code different from using the Claude.ai connector?",answer:"The workflow is the same idea, but Claude Code runs in your terminal or IDE and can read your repo while writing tweets. The Claude.ai directory connector works in chat and lacks image, video, and clipping tools. Adding the custom MCP link in Claude Code gives you the full Postiz toolset."}],j=[{title:"Launch thread from your repo",prompt:"> Read README.md and write a 6-tweet thread\n introducing the project. Schedule it on X\n for Monday 10am with ./assets/hero.png on\n the first tweet.",reply:"Claude Code: Drafted 6 tweets (each under 280\n characters). Uploaded hero.png. Scheduled\n on X for Monday 10:00 AM."},{title:"Community post with limited replies",prompt:'> Post "New release: v2.4 is out with dark mode\n and 2x faster builds" to my X account and\n the community https://x.com/i/communities/123,\n only verified accounts can reply',reply:"Claude Code: Posted to X with\n who_can_reply_post: verified and the\n community link attached."},{title:"Headless from a release script",prompt:'$ claude -p "Summarize the git log since the last\n tag as one tweet and schedule it on X via\n Postiz for today at 4pm."',reply:"# Runs without an interactive session,\n# ideal for a G
1itHub Action or cron job"}],C=["Standard X accounts are limited to 280 characters per post. Ask for a thread when the message is longer and Claude Code splits it into ordered tweets.","who_can_reply_post is required on every X post. If you do not mention reply controls, Claude Code uses everyone.","To post into an X Community, give Claude Code the full community URL; it goes into the community setting.","Media is uploaded through Postiz first, so reference a local file path (./assets/hero.png) and Claude Code handles the upload.","Claude Code asks for permission before it publishes. Keep that prompt on for anything that goes live."],b=[{slug:"linkedin",name:"LinkedIn"},{slug:"reddit",name:"Reddit"},{slug:"warpcast",name:"Warpcast"},{slug:"telegram",name:"Telegram"},{slug:"discord",name:"Discord"}],N={"@context":"https://schema.org","@graph":[{"@type":"WebPage","@id":w,url:w,name:"Post to X (Twitter) from Claude Code with Postiz MCP",description:"Schedule tweets and threads on X from Claude Code through the Postiz MCP server. Set reply controls, target X Communities, and run it headless from CI.",dateModified:"2026-09-23",isPartOf:{"@type":"WebSite",name:"Postiz",url:"https://postiz.com"},about:{"@type":"SoftwareApplication",name:"Postiz",applicationCategory:"BusinessApplication",operatingSystem:"Web",url:"https://postiz.com"}},{"@type":"BreadcrumbList",itemListElement:[{"@type":"ListItem",position:1,name:"Home",item:"https://postiz.com"},{"@type":"ListItem",position:2,name:"Claude Code",item:"https://postiz.com/claude-code"},{"@type":"ListItem",position:3,name:"X",item:w}]},{"@type":"FAQPage",mainEntity:y.map(e=>({"@type":"Question",name:e.question,acceptedAnswer:{"@type":"Answer",text:e.answer}}))}]},v=e=>{let{children:t,title:s}=e;return(0,a.jsxs)("div",{className:"rounded-[16px] overflow-hidden border border-white border-opacity-10",children:[s&&(0,a.jsx)("div",{className:"bg-[#1A1919] px-5 py-3 border-b border-white border-opacity-10",children:(0,a.jsx)("p",{className:"text-[14px] text-[#d1d1d1] font-mono",children:s})}),(0,a.jsx)("pre",{className:"bg-[#0e0e0e] p-5 overflow-x-auto",children:(0,a.jsx)("code",{className:"text-[14px] leading-[22px] text-[#d1d1d1] font-mono whitespace-pre",children:t})})]})},k=e=>{let{number:t,title:s,description:o,code:i,codeTitle:n}=e;return(0,a.jsxs)("div",{className:"flex flex-col lg:flex-row gap-6 lg:gap-10 items-start",children:[(0,a.jsxs)("div",{className:"flex-1 space-y-3",children:[(0,a.jsxs)("div",{className:"flex items-center gap-3",children:[(0,a.jsx)("div",{className:"w-10 h-10 flex items-center justify-center bg-gradient-to-br from-[#682EE1] to-[#2A0772] rounded-full shrink-0",children:(0,a.jsx)("span",{className:"text-[16px] font-jakarta font-bold",children:t})}),(0,a.jsx)("h4",{className:"text-[20px] leading-[22px] sm:text-[24px] sm:leading-[26.4px] font-jakarta font-semibold",children:s})]}),(0,a.jsx)("p",{className:"text-[16px] leading-[24px] sm:text-[18px] sm:leading-[27px] text-[#d1d1d1] pl-[52px]",children:o})]}),(0,a.jsx)("div",{className:"flex-1 w-full",children:(0,a.jsx)(v,{title:n,children:i})})]})},P=e=>{let{icon:t,title:s,description:o}=e;return(0,a.jsxs)("div",{className:"flex flex-col gap-4 p-6 sm:p-8 bg-[#1A1919] rounded-[16px] sm:rounded-[20px] border border-white border-opacity-10",children:[(0,a.jsx)("div",{className:"w-12 h-12 sm:w-14 sm:h-14 flex items-center justify-center bg-gradient-to-br from-[#682EE1] to-[#2A0772] rounded-xl",children:(0,a.jsx)("span",{className:"text-2xl sm:text-3xl",children:t})}),(0,a.jsx)("h4",{className:"text-[20px] leading-[22px] sm:text-[24px] sm:leading-[26.4px] font-jakarta font-semibold",children:s}),(0,a.jsx)("p",{className:"text-[16px] leading-[20.83px] sm:text-[18px] sm:leading-[23.44px] text-[#d1d1d1]",children:o})]})};var z=!0;t.default=(0,p.C)(()=>{let[e,t]=(0,o.useState)(!1),s=(0,o.useCallback)(()=>{navigator.clipboard.writeText(g),t(!0),setTimeout(()=>t(!1),2e3)},[]);return(0,a.jsxs)(a.Fragment,{children:[(0,a.jsxs)(n(),{children:[(0,a.jsx)("title",{children:"Post to X (Twitter) from Claude Code with Postiz MCP"}),(0,a.jsx)("meta",{name:"description",content:"Schedule tweets and threads on X from Claude Code through the Postiz MCP server. Set reply controls, target X Communities, and run it headless from CI."}),(0,a.jsx)("link",{rel:"canonical",href:"https://postiz.com/claude-code/x"}),(0,a.jsx)("meta",{property:"og:type",content:"website"}),(0,a.jsx)("meta",{property:"og:url",content:"https://postiz.com/claude-code/x"}),(0,a.jsx)("meta",{property:"og:title",content:"Post to X (Twitter) from Claude Code with Postiz MCP"}),(0,a.jsx)("meta",{property:"og:description",content:"Schedule tweets and threads on X from Claude Code through the Postiz MCP server. Set reply controls, target X Communities, and run it headless from CI."}),(0,a.jsx)("meta",{property:"og:image",content:"https://postiz.com/api/og?title=Post%20to%20X%20%28Twitter%29%20from%20Claude%20Code%20with%20Postiz%20MCP"}),(0,a.jsx)("meta",{name:"twitter:card",content:"summary_large_image"}),(0,a.jsx)("meta",{name:"twitter:title",content:"Post to X (Twitter) from Claude Code with Postiz MCP"}),(0,a.jsx)("meta",{name:"twitter:description",content:"Schedule tweets and threads on X from Claude Code through the Postiz MCP server. Set reply controls, target X Communities, and run it headless from CI."}),(0,a.jsx)("meta",{name:"twitter:image",content:"https://postiz.com/api/og?title=Post%20to%20X%20%28Twitter%29%20from%20Claude%20Code%20with%20Postiz%20MCP"}),(0,a.jsx)("script",{type:"application/ld+json",dangerouslySetInnerHTML:{__html:JSON.stringify(N)}})]}),(0,a.jsxs)("div",{className:"flex flex-col items-center max-w-[1440px] mx-auto overflow-hidden",children:[(0,a.jsxs)("section",{className:"!mt-[73px] sm:!mt-[120px] !pt-0 !pb-0 space-y-[30px] px-5",children:[(0,a.jsxs)("div",{className:"flex justify-center",children:[(0,a.jsx)(d(),{src:m.WW,alt:"Decorative doodle",className:"hidden lg:block"}),(0,a.jsx)(d(),{src:m.Of,alt:"Decorative doodle",className:"block lg:hidden"})]}),(0,a.jsxs)("div",{className:"flex flex-col items-center",children:[(0,a.jsx)("div",{className:"min-h-[12px] sm:min-h-[10px]"}),(0,a.jsx)("nav",{"aria-label":"Breadcrumb",className:"mb-4",children:(0,a.jsxs)("ol",{className:"flex flex-wrap items-center justify-center gap-2 text-[14px] leading-[18px] text-[#d1d1d1]",children:[(0,a.jsx)("li",{children:(0,a.jsx)(c(),{href:"/",className:"hover:text-white transition-colors",children:"Home"})}),(0,a.jsx)("li",{"aria-hidden":"true",children:"/"}),(0,a.jsx)("li",{children:(0,a.jsx)(c(),{href:"/claude-code",className:"hover:text-white transition-colors",children:"Claude Code"})}),(0,a.jsx)("li",{"aria-hidden":"true",children:"/"}),(0,a.jsx)("li",{"aria-current":"page",className:"text-white",children:"X"})]})}),(0,a.jsxs)("div",{className:"max-w-[900px] relative",children:[(0,a.jsx)("h1",{className:"text-center",children:"Post to X (Twitter) from Claude Code"}),(0,a.jsx)(d(),{src:m.ai,alt:"Decorative underline",className:"absolute left-[50%] -translate-x-[50%] hidden lg:block"})]}),(0,a.jsx)("div",{className:"min-h-[24px] sm:min-h-[32px]"}),(0,a.jsx)("p",{className:"max-w-[700px] text-[18px] leading-[23.44px] sm:text-[22px] sm:leading-[28.64px] font-[400] text-[#d1d1d1] text-center",children:"Claude Code can write, schedule, and publish X posts through Postiz. Add the Postiz MCP server with one terminal command, sign in with OAuth, and then ask Claude Code to tweet, split a launch note into a thread, restrict who can reply, or post into an X Community, all without leaving your co
1debase."}),(0,a.jsx)("div",{className:"min-h-[32px] sm:min-h-[40px]"}),(0,a.jsxs)("div",{className:"flex flex-col sm:flex-row gap-4 w-full sm:w-auto",children:[(0,a.jsx)(x.zx,{variant:"primary",size:"lg",className:"!w-full sm:!w-fit",asLink:"https://docs.postiz.com/providers/x",alt:"View X setup guide",children:"Setup Guide"}),(0,a.jsx)(x.zx,{variant:"secondary",size:"lg",className:"!w-full sm:!w-fit",asLink:"https://github.com/anthropics/claude-code",alt:"View on GitHub",children:"GitHub"}),(0,a.jsx)(x.zx,{variant:"secondary",size:"lg",className:"!w-full sm:!w-fit",alt:"Copy the Claude Code MCP command",onClick:s,children:e?"Copied!":"Copy MCP command"})]}),(0,a.jsx)("div",{className:"min-h-[16px] sm:min-h-[24px]"}),(0,a.jsx)("p",{className:"text-[14px] leading-[18.23px] text-[#d1d1d1] text-center",children:"Please make sure there is always a human in the loop."}),(0,a.jsx)(h.O9,{as:"p",className:"mt-2 text-[14px] leading-[18.23px] text-[#d1d1d1] text-center",date:"2026-09-23"})]}),(0,a.jsx)(d(),{src:m.eP,alt:"Decorative doodle",className:"hidden lg:block absolute top-[320px] left-0"}),(0,a.jsx)(d(),{src:m.IB,alt:"Decorative doodle",className:"block sm:hidden absolute bottom-[73px] left-0"}),(0,a.jsx)(d(),{src:m.cW,alt:"Decorative doodle",className:"hidden lg:block absolute top-[120px] right-0"}),(0,a.jsx)(d(),{src:m.lh,alt:"Decorative doodle",className:"block sm:hidden absolute bottom-[233px] right-0"})]}),(0,a.jsx)("section",{className:"py-[40px] sm:py-[60px] px-5 w-full",children:(0,a.jsxs)("div",{className:"max-w-[900px] mx-auto space-y-6",children:[(0,a.jsx)("h2",{className:"text-center",children:"How to post to X from Claude Code"}),(0,a.jsx)("p",{className:"max-w-[700px] mx-auto text-center text-[18px] leading-[23.44px] sm:text-[20px] sm:leading-[28.64px] text-[#d1d1d1]",children:"Add the Postiz MCP server to Claude Code once, sign in with OAuth, connect X in Postiz, and then describe the post in plain language. Setup takes about a minute."}),(0,a.jsx)("div",{className:"min-h-[10px] sm:min-h-[20px]"}),(0,a.jsx)(v,{title:"Setup once, then just ask",children:"# One-time setup: add the Postiz MCP server (OAuth, no API key)\nclaude mcp add --transport http postiz https://mcp.postiz.com/mcp-oauth-dynamic\n\n# Or install the Postiz skill instead\nnpx skills add gitroomhq/postiz-agent\nexport POSTIZ_API_KEY=your_api_key\n\n# Then ask Claude Code:\n> Turn CHANGELOG.md into a 5-tweet thread\n about v2.4 and schedule it on X for\n tomorrow at 9am, everyone can reply\n\nClaude Code: Done! 5-tweet thread scheduled\n on X for tomorrow at 9:00 AM."})]})}),(0,a.jsxs)("section",{className:"space-y-[40px] sm:space-y-[60px] py-[50px] sm:py-[90px] px-5 w-full",children:[(0,a.jsx)("h2",{className:"text-center",children:"What can Claude Code do on X?"}),(0,a.jsx)("p",{className:"max-w-[700px] mx-auto text-center text-[18px] leading-[23.44px] sm:text-[20px] sm:leading-[28.64px] text-[#d1d1d1]",children:"On X, Claude Code can publish single tweets, ordered threads, media posts, and X Community posts, and it can set who is allowed to reply to each one."}),(0,a.jsxs)("div",{className:"grid grid-cols-1 md:grid-cols-2 lg:grid-cols-3 gap-4 max-w-[1200px] mx-auto",children:[(0,a.jsx)(P,{icon:"\uD83D\uDDE3",title:"Reply Controls",description:"Control who can reply to your posts: everyone, people you follow, mentioned users, subscribers, or verified accounts only."}),(0,a.jsx)(P,{icon:"\uD83E\uDDF5",title:"Thread Support",description:"Ask for a thread and Claude Code splits it into separate tweets, posted in order."}),(0,a.jsx)(P,{icon:"\uD83C\uDFD8",title:"Community Posting",description:"Post directly to X Communities by providing a community URL. Reach targeted audiences with relevant content."}),(0,a.jsx)(P,{icon:"â",title:"Simple Text Posts",description:"Quickly publish text-only tweets with hashtags, mentions, and links. No media upload required for basic posts."}),(0,a.jsx)(P,{icon:"\uD83D\uDCF8",title:"Media Attachments",description:"Attach images or videos to your posts. Upload media through Postiz and include it seamlessly in your scheduled tweets."}),(0,a.jsx)(P,{icon:"\uD83D\uDCC5",title:"Scheduled Posting",description:"Schedule posts with precise timestamps. Queue up a week of content in minutes and let Postiz handle the publishing."})]})]}),(0,a.jsx)("section",{className:"py-[50px] sm:py-[90px] px-5 w-full",children:(0,a.jsxs)("div",{className:"max-w-[1200px] mx-auto
1space-y-[40px] sm:space-y-[60px]",children:[(0,a.jsx)("h2",{className:"text-center",children:"How does Claude Code post to X through Postiz?"}),(0,a.jsx)("p",{className:"max-w-[700px] mx-auto text-center text-[18px] leading-[23.44px] sm:text-[20px] sm:leading-[28.64px] text-[#d1d1d1]",children:"You describe what you want in plain language and Claude Code handles the Postiz calls for you. Here is how a typical conversation goes."}),(0,a.jsxs)("div",{className:"space-y-10 sm:space-y-16",children:[(0,a.jsx)(k,{number:1,title:"Find Your X Integration",description:"Ask Claude Code whether your X account is connected. It also checks which options the platform supports.",code:"> Is my X account connected to Postiz?\n\nClaude Code: Yes â your X account is connected\n and ready. Want me to post something?",codeTitle:"Example conversation"}),(0,a.jsx)(k,{number:2,title:"Compose Your Content",description:"Describe your tweet or thread. Ask for a thread and Claude Code splits it into separate tweets; mention an image or video and it uploads it for you.",code:'> Draft an X post about our new\n feature launch\n\nClaude Code: Here\'s a draft for X:\n "We just shipped something big..."\n Want me to add media and schedule it?',codeTitle:"Example conversation"}),(0,a.jsx)(k,{number:3,title:"Schedule & Publish",description:"Schedule your post for a specific time or publish immediately. Set reply controls and optionally target an X Community.",code:"> Yes â add screenshot.png and schedule\n it for tomorrow at 9am\n\nClaude Code: Done! Scheduled on X for\n tomorrow at 9:00 AM.",codeTitle:"Example conversation"})]})]})}),(0,a.jsx)("section",{className:"py-[50px] sm:py-[90px] px-5 w-full",children:(0,a.jsxs)("div",{className:"max-w-[1200px] mx-auto space-y-[40px]",children:[(0,a.jsx)("h2",{className:"text-center",children:"X Settings Reference"}),(0,a.jsx)("p",{className:"max-w-[600px] mx-auto text-center text-[18px] leading-[23.44px] sm:text-[20px] sm:leading-[28.64px] text-[#d1d1d1]",children:"Mention any of these in plain language and Claude Code sets them for you. These are the X options it can apply to any post."}),(0,a.jsx)("div",{className:"overflow-x-auto",children:(0,a.jsxs)("table",{className:"w-full border-collapse",children:[(0,a.jsx)("thead",{children:(0,a.jsxs)("tr",{children:[(0,a.jsx)("th",{className:"text-left p-4 border-b border-white border-opacity-10 text-[16px] font-jakarta font-semibold",children:"Field"}),(0,a.jsx)("th",{className:"text-left p-4 border-b border-white border-opacity-10 text-[16px] font-jakarta font-semibold",children:"Type"}),(0,a.jsx)("th",{className:"text-left p-4 border-b border-white border-opacity-10 text-[16px] font-jakarta font-semibold hidden sm:table-cell",children:"Required"}),(0,a.jsx)("th",{className:"text-left p-4 border-b border-white border-opacity-10 text-[16px] font-jakarta font-semibold",children:"Description"})]})}),(0,a.jsx)("tbody",{children:f.map((e,t)=>{let{field:s,type:o,required:i,description:n}=e;return(0,a.jsxs)("tr",{children:[(0,a.jsx)("td",{className:"p-4 border-b border-white border-opacity-5",children:(0,a.jsx)("code",{className:"text-[14px] font-mono text-white bg-white bg-opacity-5 px-2 py-1 rounded",children:s})}),(0,a.jsx)("td",{className:"p-4 border-b border-white border-opacity-5 text-[#d1d1d1] text-[14px] font-mono",children:o}),(0,a.jsx)("td",{className:"p-4 border-b border-white border-opacity-5 text-[#d1d1d1] text-[14px] hidden sm:table-cell",children:i?"Yes":"No"}),(0,a.jsx)("td",{className:"p-4 border-b border-white border-opacity-5 text-[#d1d1d1] text-[16px]",children:n})]},t)})})]})})]})}),(0,a.jsx)("section",{className:"py-[50px] sm:py-[90px] px-5 w-full",children:(0,a.jsxs)("div",{className:"max-w-[900px] mx-auto space-y-[40px]",children:[(0,a.jsx)("h2",{className:"text-center",children:"Common Configurations"}),(0,a.jsx)("p",{className:"max-w-[600px] mx-auto text-center text-[18px] leading-[23.44px] sm:text-[20px] sm:leading-[28.64px] text-[#d1d1d1]",children:"Ask Claude Code for any of these common X scenarios and it applies the matching settings."}),(0,a.jsxs)("div",{className:"space-y-6",children:[(0,a.jsxs)("div",{children:[(0,a.jsx)("h4",{className:"text-[18px] sm:text-[20px] font-jakarta font-semibold mb-3",children:"Public Post â Everyone Can Reply"}),(0,a.jsx)(v,{title:"Just ask",children:"> Post it with: Public Post â Everyone Can Reply\n\nClaude Code: Got it. Applying:\n who_can_reply_post: everyone"})]}),(0,a.jsxs)("div",{children:[(0,a.jsx)("h4",{className:"text-[18px] sm:text-[20px] font-jakarta font-semibold mb-3",children:"Followers Only Replies"}),(0,a.jsx)(v,{title:"Just ask",children:"> Post it with: Followers Only Replies\n\nClaude Code: Got it. Applying:\n who_can_reply_post: following"})]}),(0,a.jsxs)("div",{children:[(0,a.jsx)("h4",{className:"text-[18px] sm:text-[20px] font-jakarta font-semibold mb-3",children:"Community Post with Verified Replies"}),(0,a.jsx)(v,{title:"Just ask",children:"> Post it with: Community Post with Verified Replies\n\nClaude Code: Got it. Applying:\n who_can_reply_post: verified\n community: https://x.com/i/communities/1234567890"})]}),(0,a.jsxs)("div",{children:[(0,a.jsx)("h4",{className:"text-[18px] sm:text-[20px] font-jakarta font-semibold mb-3",children:"Mentioned Users Only"}),(0,a.jsx)(v,{title:"Just ask",children:"> Post it with: Mentioned Users Only\n\nClaude Code: Got it. Applying:\n who_can_reply_post: mentionedUsers"})]})]})]})}),(0,a.jsx)("section",{className:"py-[50px] sm:py-[90px] px-5 w-full",children:(0,a.jsxs)("div",{className:"max-w-[1200px] mx-auto
1space-y-[40px]",children:[(0,a.jsx)("h2",{className:"text-center",children:"Example prompts for X in Claude Code"}),(0,a.jsx)("p",{className:"max-w-[700px] mx-auto text-center text-[18px] leading-[23.44px] sm:text-[20px] sm:leading-[28.64px] text-[#d1d1d1]",children:"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."}),(0,a.jsx)("div",{className:"grid grid-cols-1 lg:grid-cols-3 gap-6",children:j.map((e,t)=>{let{title:s,prompt:o,reply:i}=e;return(0,a.jsxs)("div",{className:"flex flex-col gap-4 p-6 bg-[#1A1919] rounded-[20px] border border-white border-opacity-10",children:[(0,a.jsx)("h3",{className:"text-[18px] leading-[24px] sm:text-[20px] sm:leading-[26px] font-jakarta font-semibold",children:s}),(0,a.jsx)(v,{title:"Claude Code",children:"".concat(o,"\n\n").concat(i)})]},t)})})]})}),(0,a.jsx)("section",{className:"py-[50px] sm:py-[90px] px-5 w-full",children:(0,a.jsxs)("div",{className:"max-w-[900px] mx-auto space-y-6",children:[(0,a.jsx)("h2",{className:"text-center",children:"X limits and gotchas to know"}),(0,a.jsx)("p",{className:"max-w-[700px] mx-auto text-center text-[18px] leading-[23.44px] sm:text-[20px] sm:leading-[28.64px] text-[#d1d1d1]",children:"X enforces a few rules that Claude Code and Postiz respect automatically, but knowing them helps you phrase requests."}),(0,a.jsx)("ul",{className:"space-y-3 p-6 sm:p-8 bg-[#1A1919] rounded-[20px] border border-white border-opacity-10",children:C.map((e,t)=>(0,a.jsxs)("li",{className:"flex items-start gap-3 text-[16px] leading-[24px] text-[#d1d1d1]",children:[(0,a.jsx)("span",{className:"text-[#682EE1] mt-1 shrink-0",children:"â"}),e]},t))})]})}),(0,a.jsx)("section",{className:"py-[50px] sm:py-[90px] px-5 w-full",children:(0,a.jsxs)("div",{className:"max-w-[1200px] mx-auto space-y-[40px] sm:space-y-[60px]",children:[(0,a.jsxs)("div",{className:"flex flex-col items-center space-y-4",children:[(0,a.jsx)("h2",{className:"text-center",children:"What is Claude Code?"}),(0,a.jsx)("p",{className:"max-w-[700px] text-center text-[18px] leading-[23.44px] sm:text-[22px] sm:leading-[28.64px] text-[#d1d1d1]",children:"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."}),(0,a.jsxs)("p",{className:"max-w-[700px] text-center text-[16px] leading-[24px] text-[#d1d1d1]",children:["Not the same as"," ",(0,a.jsx)(c(),{href:"/claude-cowork",className:"text-[#a87fef] hover:text-white transition-colors",children:"Claude Cowork"})," ","(Anthropic's desktop agent for knowledge workers) or the"," ",(0,a.jsx)(c(),{href:"/claude",className:"text-[#a87fef] hover:text-white transition-colors",children:"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 X posts."]})]}),(0,a.jsxs)("div",{className:"grid grid-cols-1 md:grid-cols-2 lg:grid-cols-3 gap-4",children:[(0,a.jsx)(P,{icon:"\uD83D\uDCBB",title:"Terminal & IDE Native",description:"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."}),(0,a.jsx)(P,{icon:"\uD83D\uDD27",title:"Agentic Execution",description:"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."}),(0,a.jsx)(P,{icon:"â¡",title:"Parallel Tasks",description:"Run several Claude Code sessions side by side, or spawn subagents in one. Schedule posts to different platforms while it handles other coding work."})]}),(0,a.jsx)("div",{className:"bg-[#0e0e0e] rounded-[20px] p-6 sm:p-10 border border-white border-opacity-10",children:(0,a.jsxs)("div",{className:"flex flex-col md:flex-row gap-8",children:[(0,a.jsxs)("div",{className:"flex-1 space-y-4",children:[(0,a.jsx)("h4",{className:"text-[20px] leading-[22px] sm:text-[24px] sm:leading-[26.4px] font-jakarta font-semibold",children:"How Postiz Works with Claude Code"}),(0,a.jsx)("p",{className:"text-[16px] leading-[24px] text-[#d1d1d1]",children:"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."}),(0,a.jsx)("ul",{className:"space-y-3",children:["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
1when 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"].map((e,t)=>(0,a.jsxs)("li",{className:"flex items-start gap-3 text-[16px] leading-[24px] text-[#d1d1d1]",children:[(0,a.jsx)("span",{className:"text-[#682EE1] mt-1 shrink-0",children:"â"}),e]},t))})]}),(0,a.jsx)("div",{className:"flex-1",children:(0,a.jsx)(v,{title:"Install Postiz",children:'# Option A: add the Postiz MCP server\nclaude mcp add --transport http postiz https://mcp.postiz.com/mcp-oauth-dynamic\n\n# Option B: install the Postiz skill\nnpx skills add gitroomhq/postiz-agent\nexport POSTIZ_API_KEY=your_api_key\n\n# Then just ask\nclaude "list my social media integrations"'})})]})})]})}),(0,a.jsx)("section",{className:"py-[50px] sm:py-[90px] px-5 w-full",children:(0,a.jsxs)("div",{className:"max-w-[1200px] mx-auto space-y-[40px] sm:space-y-[60px]",children:[(0,a.jsxs)("div",{className:"flex flex-col items-center space-y-4",children:[(0,a.jsx)("h2",{className:"text-center",children:"X Posting with Claude Code"}),(0,a.jsx)("p",{className:"max-w-[700px] text-center text-[18px] leading-[23.44px] sm:text-[22px] sm:leading-[28.64px] text-[#d1d1d1]",children:"Tell Claude Code what to post from your terminal or IDE â it discovers your integrations via Postiz and handles the entire publishing workflow."})]}),(0,a.jsxs)("div",{className:"grid grid-cols-1 lg:grid-cols-2 gap-6",children:[(0,a.jsxs)("div",{className:"flex flex-col gap-6 p-6 sm:p-8 bg-[#1A1919] rounded-[20px] border border-white border-opacity-10",children:[(0,a.jsxs)("div",{className:"flex items-center gap-4",children:[(0,a.jsx)("div",{className:"w-12 h-12 sm:w-14 sm:h-14 flex items-center justify-center bg-[#D97757] rounded-xl",children:(0,a.jsx)("span",{className:"text-2xl sm:text-3xl",children:"\uD83D\uDCBB"})}),(0,a.jsxs)("div",{children:[(0,a.jsx)("h4",{className:"text-[20px] leading-[22px] sm:text-[24px] sm:leading-[26.4px] font-jakarta font-semibold",children:"Just Ask Claude Code"}),(0,a.jsx)("p",{className:"text-[14px] text-[#d1d1d1]",children:"Terminal and IDE integration"})]})]}),(0,a.jsx)("p",{className:"text-[16px] leading-[24px] sm:text-[18px] sm:leading-[27px] text-[#d1d1d1]",children:"Tell Claude Code what to post from your terminal or IDE â it discovers your integrations via Postiz and handles the entire publishing workflow."}),(0,a.jsx)(v,{title:"Claude Code CLI",children:'$ claude "Post to X about our\n new feature launch, schedule for\n tomorrow at 9am"\n\nClaude Code: I\'ll handle that.\n Found your X integration.\n Composing and scheduling the post.\n\n Done! Your post is scheduled.\n Post ID: abc-123'})]}),(0,a.jsxs)("div",{className:"flex flex-col gap-6 p-6 sm:p-8 bg-[#1A1919] rounded-[20px] border border-white border-opacity-10",children:[(0,a.jsxs)("div",{className:"flex items-center gap-4",children:[(0,a.jsx)("div",{className:"w-12 h-12 sm:w-14 sm:h-14 flex items-center justify-center bg-[#D97757] rounded-xl",children:(0,a.jsx)("span",{className:"text-2xl sm:text-3xl",children:"\uD83D\uDCBB"})}),(0,a.jsxs)("div",{children:[(0,a.jsx)("h4",{className:"text-[20px] leading-[22px] sm:text-[24px] sm:leading-[26.4px] font-jakarta font-semibold",children:"Parallel Tasks"}),(0,a.jsx)("p",{className:"text-[14px] text-[#d1d1d1]",children:"Multiple tasks at once"})]})]}),(0,a.jsx)("p",{className:"text-[16px] leading-[24px] sm:text-[18px] sm:leading-[27px] text-[#d1d1d1]",children:"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."}),(0,a.jsx)(v,{title:"Claude Code Parallel Tasks",children:'# Run multiple posting tasks in parallel\n$ claude -p "Schedule a post about our\n launch to X for tomorrow 9am" &\n\n$ claude -p "Write a LinkedIn article\n about our new feature and schedule\n for tomorrow noon" &\n\n$ claude -p "Fix the bug in auth.ts"\n\n# All three tasks run simultaneously'})]})]}),(0,a.jsx)("div",{className:"bg-[#0e0e0e] rounded-[20px] p-6 sm:p-10 border border-white border-opacity-10",children:(0,a.jsxs)("div",{className:"flex flex-col md:flex-row gap-8",children:[(0,a.jsxs)("div",{className:"flex-1 space-y-4",children:[(0,a.jsx)("h4",{className:"text-[20px] leading-[22px] sm:text-[24px] sm:leading-[26.4px] font-jakarta font-semibold",children:"Why Claude Code + Postiz for X"}),(0,a.jsx)("p",{className:"text-[16px] leading-[24px] text-[#d1d1d1]",children:"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 X workflows."}),(0,a.jsx)("ul",{className:"space-y-3",children:["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 X + other platforms in a single session","Powered by Claude â Anthropic's most capable models"].map((e,t)=>(0,a.jsxs)("li",{className:"flex items-start gap-3 text-[16px] leading-[24px] text-[#d1d1d1]",children:[(0,a.jsx)("span",{className:"text-[#682EE1] mt-1 shrink-0",children:"â"}),e]},t))})]}),(0,a.jsx)("div",{className:"flex-1",children:(0,a.jsx)(v,{title:"SKILL.md (auto-discovered)",children:"---\nname: postiz\ndescription: Social media automation\n CLI for scheduling posts across\n 30+ platforms including X\nmetadata:\n claude-code:\n requirements:\n env:\n - POSTIZ_API_KEY\n binaries:\n - postiz\n---\n\n# Available Commands\n- postiz integrations:list\n- postiz integrations:settings <id>\n- postiz posts:create\n- postiz upload <file>\n- postiz analytics:platform <id>\n\n# X Settings\nwho_can_reply_post, community"})})]})})]})}),(0,a.jsx)("section",{className:"py-[50px] sm:py-[90px] px-5 w-full",children:(0,a.jsxs)("div",{className:"max-w-[1200px] mx-auto
1space-y-[40px] sm:space-y-[60px]",children:[(0,a.jsxs)("div",{className:"flex flex-col items-center space-y-4",children:[(0,a.jsx)("h2",{className:"text-center",children:"Also Works with Claude Cowork"}),(0,a.jsxs)("p",{className:"max-w-[700px] text-center text-[18px] leading-[23.44px] sm:text-[22px] sm:leading-[28.64px] text-[#d1d1d1]",children:["Postiz works with any AI agent that can run commands or call MCP tools. That includes"," ",(0,a.jsx)(c(),{href:"/claude-cowork",className:"text-[#a87fef] hover:text-white transition-colors",children:"Claude Cowork"}),", Anthropic's desktop agent, and the"," ",(0,a.jsx)(c(),{href:"/claude",className:"text-[#a87fef] hover:text-white transition-colors",children:"Claude.ai connector"}),". See the"," ",(0,a.jsx)(c(),{href:"/agent",className:"text-[#a87fef] hover:text-white transition-colors",children:"agents overview"})," ","for every supported agent."]})]}),(0,a.jsx)("div",{className:"max-w-[900px] mx-auto",children:(0,a.jsxs)("div",{className:"flex flex-col gap-6 p-6 sm:p-8 bg-[#1A1919] rounded-[20px] border border-white border-opacity-10",children:[(0,a.jsxs)("div",{className:"flex items-center gap-4",children:[(0,a.jsx)("div",{className:"w-12 h-12 sm:w-14 sm:h-14 flex items-center justify-center bg-[#D97757] rounded-xl",children:(0,a.jsx)("span",{className:"text-2xl sm:text-3xl font-bold text-white",children:"C"})}),(0,a.jsxs)("div",{children:[(0,a.jsx)("h4",{className:"text-[20px] leading-[22px] sm:text-[24px] sm:leading-[26.4px] font-jakarta font-semibold",children:"Claude Cowork"}),(0,a.jsx)("p",{className:"text-[14px] text-[#d1d1d1]",children:"by Anthropic"})]})]}),(0,a.jsx)("p",{className:"text-[16px] leading-[24px] sm:text-[18px] sm:leading-[27px] text-[#d1d1d1]",children:"Claude Cowork reads the Postiz skill so it knows what it can do, then autonomously discovers your X integration, composes your tweet or thread, applies reply settings, and schedules the post."}),(0,a.jsx)(v,{title:"Claude Cowork",children:"> Post a thread about our product launch\n on X, schedule for tomorrow, everyone\n can reply\n\nClaude Cowork: Done! Scheduled on X for\n tomorrow at 9:00 AM."})]})})]})}),(0,a.jsx)("section",{className:"py-[50px] sm:py-[90px] px-5 w-full",children:(0,a.jsxs)("div",{className:"max-w-[1200px] mx-auto space-y-[40px]",children:[(0,a.jsx)("h2",{className:"text-center",children:"Post to X and other platforms from Claude Code"}),(0,a.jsx)("p",{className:"max-w-[700px] mx-auto text-center text-[18px] leading-[23.44px] sm:text-[20px] sm:leading-[28.64px] text-[#d1d1d1]",children:"One request can schedule the same content to X and other channels, and each platform keeps its own settings. Every platform below has its own Claude Code guide."}),(0,a.jsx)("div",{className:"max-w-[900px] mx-auto",children:(0,a.jsx)(v,{title:"Example",children:'> Post "Excited to announce our new feature!" to\n X and LinkedIn tomorrow at 9am, then schedule\n a daily tip on X every weekday at 10am\n\nClaude Code: Done! Scheduled:\n - X + LinkedIn: tomorrow 9:00 AM\n - Daily tips on X: Mon-Fri 10:00 AM'})}),(0,a.jsx)("div",{className:"grid grid-cols-1 sm:grid-cols-2 lg:grid-cols-3 gap-4",children:b.map(e=>{let{name:t,slug:s}=e;return(0,a.jsxs)(c(),{href:"/claude-code/".concat(s),className:"flex items-center justify-between p-5 bg-[#1A1919] rounded-[16px] border border-white border-opacity-10 hover:border-[#682EE1] hover:border-opacity-50 transition-all group",children:[(0,a.jsxs)("span",{className:"text-[18px] font-jakarta font-semibold group-hover:text-[#a87fef] transition-colors",children:["Post to ",t," from Claude Code"]}),(0,a.jsx)("span",{className:"text-[#d1d1d1] group-hover:text-[#682EE1] transition-colors",children:"â"})]},s)})}),(0,a.jsxs)("p",{className:"text-center text-[14px] leading-[22px] text-[#d1d1d1]",children:["See all 25 platforms in the"," ",(0,a.jsx)(c(),{href:"/claude-code",className:"text-[#a87fef] hover:text-white transition-colors",children:"Claude Code social media guide"}),", compare agents on the"," ",(0,a.jsx)(c(),{href:"/agent",className:"text-[#a87fef] hover:text-white transition-colors",children:"AI agents overview"}),", read about the"," ",(0,a.jsx)(c(),{href:"/mcp",className:"text-[#a87fef] hover:text-white transition-colors",children:"Postiz MCP server"}),", or check"," ",(0,a.jsx)(c(),{href:"/pricing",className:"text-[#a87fef] hover:text-white transition-colors",children:"pricing"}),". For the channel itself, see",(0,a.jsx)(c(),{href:"/channels/x",className:"text-[#a87fef] hover:text-white transition-colors",children:"X scheduling features in Postiz"}),"."]})]})}),(0,a.jsx)("section",{className:"py-[50px] sm:py-[90px] px-5 w-full",children:(0,a.jsxs)("div",{className:"max-w-[1200px] mx-auto
1space-y-[40px]",children:[(0,a.jsx)("h2",{className:"text-center",children:"Reply Options"}),(0,a.jsx)("div",{className:"grid grid-cols-1 sm:grid-cols-2 lg:grid-cols-5 gap-4 max-w-[1100px] mx-auto",children:u.map(e=>{let{value:t,label:s}=e;return(0,a.jsxs)("div",{className:"flex flex-col gap-2 p-5 bg-[#1A1919] rounded-[16px] border border-white border-opacity-10 text-center",children:[(0,a.jsx)("p",{className:"text-[18px] font-jakarta font-semibold",children:s}),(0,a.jsx)("code",{className:"text-[12px] font-mono text-[#d1d1d1] bg-white bg-opacity-5 px-2 py-1 rounded break-all",children:t})]},t)})})]})}),(0,a.jsx)("section",{className:"py-[50px] sm:py-[90px] px-5 w-full",children:(0,a.jsxs)("div",{className:"max-w-[900px] mx-auto space-y-[30px] sm:space-y-[40px]",children:[(0,a.jsx)("h2",{className:"text-center",children:"X and Claude Code: frequently asked questions"}),(0,a.jsx)("div",{className:"space-y-4",children:y.map((e,t)=>{let{question:s,answer:o}=e;return(0,a.jsxs)("div",{className:"p-6 sm:p-8 bg-[#1A1919] rounded-[16px] sm:rounded-[20px] border border-white border-opacity-10",children:[(0,a.jsx)("h3",{className:"text-[18px] leading-[24px] sm:text-[20px] sm:leading-[26px] font-jakarta font-semibold",children:s}),(0,a.jsx)("p",{className:"mt-3 text-[16px] leading-[24px] sm:text-[18px] sm:leading-[27px] text-[#d1d1d1]",children:o})]},t)})})]})}),(0,a.jsx)("section",{className:"py-[50px] sm:py-[90px] sm:px-5 w-full",children:(0,a.jsxs)("div",{className:"flex flex-col lg:flex-row justify-between items-left lg:items-center gap-10 px-5 py-10 sm:p-15 rounded-none sm:rounded-[20px] w-full max-w-[1200px] mx-auto",style:{backgroundColor:"#682EE1"},children:[(0,a.jsxs)("div",{className:"space-y-5 sm:space-y-4",children:[(0,a.jsx)("h3",{className:"text-left text-[30px] leading-[33px] sm:text-[48px] sm:leading-[52.8px] font-jakarta font-[700]",children:"Start posting to X"}),(0,a.jsx)("p",{className:"max-w-[620px] text-white text-left text-[18px] leading-[23.44px] sm:text-[22px] sm:leading-[28.64px] font-[400]",children:"Install Postiz Agent and automate your X content strategy with AI-powered scheduling and publishing."})]}),(0,a.jsx)("div",{className:"flex flex-col sm:flex-row gap-4",children:(0,a.jsx)(x.zx,{variant:"primary",size:"lg",asLink:"https://docs.postiz.com/providers/x",alt:"Get started with X",reverseColor:!0,children:"Get Started"})})]})})]})]})})}},function(e){e.O(0,[7947,1766,6969,2888,9774,179],function(){return e(e.s=97771)}),_N_E=e.O()}]);
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.