Skip to content

Post to YouTube from Gemini CLI

Kreatix's MCP server (https://api.kreatix.cc/mcp) lets Gemini CLI schedule posts on every YouTube account you connect, move or cancel them and read their stats. Plans start at $13 a month after a 7-day free trial with a card.

Gemini CLI is Google's AI agent for the terminal. Developers use it to work on code with Gemini models, and it can call MCP tools such as Kreatix. A video with a title, a description and the visibility you choose; YouTube takes no text-only post.

Updated November 2026

Run once in a terminal

gemini mcp add --transport http --scope user kreatix https://api.kreatix.cc/mcp

Then start gemini and type /mcp auth kreatix. Your browser opens: sign in to Kreatix and press Allow. No Kreatix account yet? You create it on that sign-in page.

Connect Gemini CLI to Kreatix

Sign in with Kreatix

No key to copy: paste the address, sign in to Kreatix and press Allow.

  1. In Kreatix, connect the pages Gemini CLI should post to (kreatix.cc/pages).
  2. Run once: gemini mcp add --transport http --scope user kreatix https://api.kreatix.cc/mcp
  3. Start gemini and type /mcp auth kreatix. Your browser opens: sign in to Kreatix and press Allow.
  4. Check it with /mcp inside Gemini CLI, or run gemini mcp list in a terminal. kreatix should show as Connected.
gemini mcp add --transport http --scope user kreatix https://api.kreatix.cc/mcp

With a key

For setups without sign-in. The key works like a password, so keep it to yourself.

  1. In Kreatix, connect the pages Gemini CLI should post to (kreatix.cc/pages).
  2. In Kreatix, open Settings > AI agent and create a key. It is shown once.
  3. Run the gemini mcp add command from the snippet with your key in place of YOUR_KEY. It saves Kreatix with the key in the Authorization header.
  4. Check it with gemini mcp list. kreatix should show as Connected.
gemini mcp add --transport http --scope user --header "Authorization: Bearer YOUR_KEY" kreatix https://api.kreatix.cc/mcp

What Gemini CLI can do on YouTube

A video with a title, a description and the visibility you choose; YouTube takes no text-only post.

SettingValuesNeededWhat it does
media_urlURLYesThe video: a link from your Kreatix library or a public YouTube, TikTok, Instagram or Facebook post, which Kreatix imports first.
youtube_titlestring (max 100)NoThe title, up to 100 characters. Without it, Kreatix makes one from the caption's first line, minus hashtags and @mentions.
youtube_privacypublic, unlisted, privateNoWho can see the video. Left out, the video goes up public.
captionstring (max 5000)NoBecomes the video description, cut at 5,000 bytes, and the source of the title when youtube_title is empty.
cover_urlURLNoSet as the video's custom thumbnail right after the upload. If YouTube refuses it, the video stays up without it.

Ask in plain words

Ask inside a Gemini CLI session, for example "Use Kreatix to move tonight's posts on my brand group to 21:00." For a one-off question from a script or the shell: gemini -p "Which of my Kreatix pages got the most views this week?"

  • gemini -p "Put this video on my YouTube channel Friday at 17:00 as unlisted. Title: How we pack 500 orders a day."
  • gemini -p "Post my newest TikTok video to YouTube tonight at 20:00 with a clear title."
  • gemini -p "How many views did my YouTube channel get in the last 30 days, compared with the month before?"

YouTube rules to know

  • A title of your own takes at most 100 characters; without one, Kreatix uses the caption's first line minus hashtags and @mentions.
  • YouTube does not take < and >, so Kreatix sends them as ‹ and ›.
  • Leave youtube_privacy out and the video goes up public.
  • Scheduled videos go up marked as not made for kids.
  • If YouTube says an upload limit is reached, Kreatix moves the post 6 hours later, up to 5 times, then marks it failed.

Tips for Gemini CLI

  • --scope user saves Kreatix to ~/.gemini/settings.json, so it works in every folder. Without it, the entry goes to the current project's .gemini/settings.json.
  • Gemini CLI asks before each MCP tool call. Choose "Always allow this tool" only for the reading tools, and don't add --trust: it skips every confirmation, also for posts.
  • The command writes an mcpServers entry with httpUrl, the key Gemini CLI uses for a streamable HTTP server. The url key is for SSE servers, which Kreatix is not.
  • For a setup that can only read, add --include-tools list_channels,list_groups,list_posts,get_stats to the command.
  • Kreatix asks the agent to confirm the pages, caption and time with you before it schedules. It cannot delete pages, read messages or change your account, and you can remove it any time in Settings > AI agent.

Questions

How do I post to YouTube from Gemini CLI?

Connect Gemini CLI to Kreatix once, as shown above. Then ask it to post: name your YouTube pages or a page group, the video or text and the time. Kreatix asks Gemini CLI to confirm the pages, caption and time with you before it schedules.

What title will my video get?

The youtube_title you give, up to 100 characters. Without one, Kreatix takes the caption's first line, drops hashtags and @mentions and fits it into 100 characters. With no caption at all, the title is Untitled.

Can I upload as private or unlisted?

Yes. Set youtube_privacy to public, unlisted or private. Left out, the video goes up public.

What happens when YouTube's upload limit is hit?

Kreatix does not drop the post: it moves it 6 hours later and tries again, up to 5 times. After that the post shows as failed, so you see it.

Does the cover I pick show on YouTube?

Kreatix sets cover_url as the custom thumbnail right after the upload. If YouTube refuses it, for example when the channel can't use custom thumbnails yet, the video stays up and only the thumbnail is skipped.

The sign-in page did not open. What now?

Gemini CLI's sign-in needs a browser on the same computer, because the answer comes back to a localhost address. Type /mcp auth kreatix again from a local terminal. On a remote machine without a browser, use the key route instead.

How do I remove Kreatix from Gemini CLI?

Run gemini mcp remove --scope user kreatix. Gemini CLI keeps sign-in tokens in ~/.gemini/mcp-oauth-tokens.json. If you used a key, also delete it in Kreatix under Settings > AI agent.

Kreatix schedules one video to every page you run, each with its own platform settings.

Start your 7-day free trial

Gemini CLI with other platforms

YouTube from other agents