How to publish YouTube Shorts with Claude Code, from script to post
A walkthrough for getting Claude Code to make a Short with Praeko Studio and schedule it on YouTube through Praeko: the prompt, the commands, what you approve at each step and how to read retention afterwards.
This guide takes a Short from an empty folder to a scheduled post on YouTube. Claude Code writes the script, builds the scenes and renders the video with Praeko Studio, then hands it to Praeko for publishing. You sign off on the script, on anything that costs money and on the post preview before it goes live.
Every command below uses @praeko/studio version 0.4.2, always with the scoped package name and a pinned version. If you have never used an AI agent before, step 1 starts with the install.
Tested with @praeko/studio 0.4.2 on 2026-12-03, on macOS, from setup to a private video on YouTube. The final voice in step 5 was left out of the test because it spends ElevenLabs credits.
What YouTube counts as a Short
YouTube treats an upload with a square or vertical aspect ratio and a length of up to three minutes as a Short. To keep a video out of Shorts, YouTube suggests a wider ratio such as 16:9. The details are on the YouTube Help page.
Studio renders Shorts at 1080x1920 (9:16), so the file comes out in the right shape.
What you need
- Claude Code, with a Claude subscription or an Anthropic Console account. Praeko does not bill for the agent or sit between you and it.
- Node 22 or newer with
npm, plusffmpegandffprobeon your PATH, and Chrome. The agent checks all of this and proposes install commands, then waits for your yes. See the Studio requirements. - A Praeko account with your YouTube channel connected. Access opens in batches through the waitlist.
- Operating system: Studio has only been tested on macOS. Linux and Windows have not been tested yet.
A note on licensing before your first render. Studio's own code is MIT, but its default video engine, Remotion, has its own license for companies with more than 3 people. The full breakdown is under Licenses. The alternative engine, HyperFrames (--engine hyperframes), is Apache-2.0.
1. Install Claude Code and open it in an empty folder
On macOS and Linux, the official Claude Code docs give this install command:
curl -fsSL https://claude.ai/install.sh | bashFor Windows, Homebrew and the other options, follow the official overview. Then create an empty folder, move into it and start the agent:
mkdir my-channel && cd my-channel
claudeClaude Code asks you to log in the first time.
2. Paste the setup prompt
This prompt comes from the Get started with your agent guide. Replace [channel name] with your channel's name and paste it into Claude Code:
Run `npx @praeko/studio@0.4.2 setup --plan --lang en` (it creates the `praeko-studio` folder here), show me the plan and, with my yes, run `npx @praeko/studio@0.4.2 setup --yes --no-login --lang en`. Never ask for, read or print keys. Then, INSIDE the `praeko-studio` folder, follow `npx @praeko/studio@0.4.2 docs first-video` (channel name: [channel name]) and, at the end, tell me the path of the MP4: I will drag the file into the Praeko dashboard myself. Publish nothing.setup --plan changes nothing on your machine. It checks your tools, detects which agents you have installed and shows what it would register in each one. Once you say yes, the real setup:
- registers Praeko's remote MCP server,
praeko, in Claude Code (you sign in through the browser with/mcp, and no key is written to a file); - creates the project along with Studio's instructions for the agent (for Claude Code,
.claude/skills/praeko-studio/SKILL.mdplus a block inCLAUDE.md); - writes
.praeko/config.jsonwith just the name of the key profile, never a secret, and appends lines to.gitignore.
It backs up every file before touching it, and setup uninstall removes only what it added.
3. The brand interview
Before the first script, the agent asks short questions one at a time, and you can skip any of them: channel name, who it is for, tone of voice, formats, visual style, editing style, colors, font and up to three reference videos. The answers land in brief.md, playbook.md and brand.json, which the agent reads before every script. It tells you what it filled in so you can check it.
Do not skip the channel name and handle: without them, Studio falls back to the folder name (@praekostudio), which shows up on the cover and at the end of the video. Also replace public/cover/avatar.png, which starts as an empty square, with your channel picture.
4. A test Short that costs nothing
The first video uses a draft voice. It is silent, estimated and free, and it exists so the agent can lay out the scenes. The agent follows this order, taken from docs first-video:
npx @praeko/studio@0.4.2 new my-test --title "<title>"
npx @praeko/studio@0.4.2 voice my-test --quality draft
npx @praeko/studio@0.4.2 compile my-test
npx @praeko/studio@0.4.2 check my-test
npx @praeko/studio@0.4.2 render my-test --scale 0.5
npx @praeko/studio@0.4.2 contact-sheet my-test
npx @praeko/studio@0.4.2 cover my-test
npx @praeko/studio@0.4.2 package my-test
npx @praeko/studio@0.4.2 review my-testBetween new and the voice step, the agent writes the script in script.txt and waits for your approval. Then it writes the scenes in episode.yaml, a declarative file where each item is tied to a spoken phrase. The cover title is a list of lines, such as title: ["3 TERMINAL", "SHORTCUTS"]. In 0.4.2, a title written as a single string passes compile without a warning and the cover renders one letter per line, so check the image.
You approve four things here: the script, the frame grid from contact-sheet, the cover and texts.md, which holds the title and description for each network. check will warn that the voice is estimated. With the draft voice, that warning is expected.
review builds a review package in out/my-test-review/ with frames from key moments, measurements and instructions. Studio does not call any model. Claude Code itself looks at the frames and writes the critique, one line per moment plus a verdict with three priorities, and you read it before you approve. More in Review the video.
5. Final voice and full-resolution render
A Short needs the final voice before it goes out. That voice runs on your own ElevenLabs account and spends your characters, so the agent shows you the text and your balance and waits for a yes before it runs --quality final. Store the voice key yourself, in your own terminal and outside the chat (the command asks for the key without echoing it):
npx @praeko/studio@0.4.2 voice account add principal --voice my-voice --voice-id <YOUR_VOICE_ID>
npx @praeko/studio@0.4.2 voice balanceUse your own voice or one you have permission to use. With the final voice in place, the agent runs compile again (the timings shift), renders without --scale to get full resolution and redoes the cover, package and review.
YouTube requires creators to disclose AI-generated or altered content that seems realistic. Its help page gives examples on both sides: cloning your own voice for a voice-over is on the list of things you don't have to disclose. check and package warn when the ai.synthetic field is missing from publication.json, but when you publish through Praeko you set the disclosure in YouTube itself, because Praeko's public API does not carry that field yet. See AI-generated content.
6. Publish in two steps
There are three ways to get the video out. For a first video, the simplest is the one in the prompt: drag the MP4 into the Praeko dashboard and schedule it there. That route needs no key and no Studio sign-in.
To let Claude Code publish on its own, it uses the remote praeko MCP server that setup already registered. Inside Claude Code, run /mcp and sign in on the Praeko screen. To register it by hand instead, the command is in Use Praeko with Claude Code:
claude mcp add --transport http praeko https://praeko.app/mcpThe video file itself never goes through MCP. The create_media_upload tool returns a curl command, and that curl reads your key from the PRAEKO_KEY variable of the terminal where you started Claude Code, even if MCP signed in through the browser. Create a key with the write scope in the dashboard, put it in that variable and never paste it into the chat. Claude Code asks for your approval before it runs the curl.
Then ask:
Publish the video my-test through the `praeko` MCP server, only after my yes at each step.
1. Call list_channels and tell me which channels you plan to publish to.
2. Upload the video and the cover: create_media_upload, run the curl it returns (the key comes from $PRAEKO_KEY in the environment; never ask for it or print it) and complete_media_upload.
3. Call create_post (or schedule_post, if I give you a time) WITHOUT confirm. Show me the whole preview: channels, time in BRT and UTC, media, texts, warnings.
4. Only repeat the call with confirm when I say "go ahead". If I change anything, ask for a new preview.The first call to create_post or schedule_post publishes nothing. It returns a preview and a confirmation_code that works once and expires after 10 minutes. Only the second call, with the same arguments plus confirm, saves the post. If any argument changes, the code stops working and you need a fresh preview. The full rules are on the MCP server page.
The third route is Studio's command line. npx @praeko/studio@0.4.2 schedule my-test --via praeko --when "dd/mm hh:mm" only simulates (note the day-first date). With --send, the video goes to YouTube as private and scheduled, and YouTube itself makes it public at the set time. The time has to be at least 5 minutes ahead, and the agent never adds --send unless you ask.
7. After the post: retention and comments
The same MCP server reads the numbers back. get_retention returns audience retention, impressions and CTR per YouTube post, and get_insights returns views, likes, comments and followers. A number that does not exist comes back as null, and the agent should say there is no data instead of guessing.
list_comments reads the comments on your latest video, and reply_comment posts a reply in two steps, one reply at a time, after your yes. Comment text arrives marked as untrusted, so the agent treats it as data and ignores any instructions written in it. From there, Claude Code can suggest the next script based on what worked. The prompts are in Get started with your agent.
What about Instagram and TikTok?
YouTube connects right away today. Instagram is in early access and TikTok is coming soon. Both depend on app approvals from Meta and TikTok, and for now only accounts that have been let in or invited test accounts can connect. package already writes the texts for all three networks, so the same episode is ready when your account gets access.
If something goes wrong
- The agent says it has no terminal: use the local Studio MCP server instead.
- The first render is slow: Remotion downloads Chrome Headless Shell the first time. To fetch it ahead of time, run
npx remotion browser ensurein the project folder. confirmwas rejected: the 10 minutes ran out or an argument changed. Ask for a new preview.- The upload
curlis refused before it runs: Claude Code asks for approval on commands that use$PRAEKO_KEY. Approve it in the session.
More cases in Use Praeko with Claude Code and Publish a video end to end.
Sources
- YouTube Help: Understand three-minute YouTube Shorts (accessed )
- YouTube Help: Disclosing use of GenAI content (accessed )
- Claude Code Docs: Overview (accessed )
- Claude Code Docs: Connect Claude Code to tools via MCP (accessed )
- Praeko Docs: Get started with your AI agent (accessed )
- Praeko Docs: Use Praeko with Claude Code (accessed )
- Praeko Docs: Praeko Studio: make videos with your agent (accessed )
- Praeko Docs: Praeko MCP server (accessed )
- Praeko Docs: Publish a video end to end (accessed )