Post from the terminal

One command adds Postbase to Gemini CLI. Ask it to announce a release or schedule a week of posts, and it handles each network's version for you.

Cancel anytime · or self-host for free

Connect Gemini CLI from the AI & API page

AI & API
New post

Use your API key to automate Postbase — hook up an AI agent over MCP, script it from the CLI, or call the REST API directly.

API keys

A key authenticates the MCP server, the REST API, and the CLI. Shown once — store it safely.

Docs
Generate key
Zapier workflowpb_live_…9c1e
Created 02 Sep 2026 · last used 22 Sep 2026
RotateRevoke

MCP client configuration

Connect the Postbase MCP server to your AI tool so it can schedule and publish for you.

Docs

Authentication

Sign in with PostbaseAPI key

No key to manage — your tool signs in through Postbase.

Client

Claude DesktopClaude CodeCursorVS CodeWindsurfGemini CLI

Run this to add the remote server to Gemini CLI.

gemini mcp add postbase --transport http https://mcp.postbase.so/mcpCopy

Connected apps

Tools you've signed in to Postbase from. Revoking cuts off their access immediately.

Cursor
Halden Coffee · connected 14 Sep 2026 · last used 22 Sep 2026
Revoke

Set up Postbase in Gemini CLI

About a minute, and you only do it once.

  1. Step 1

    Add the server

    Run the command in your terminal. Gemini CLI adds Postbase as a remote MCP server over HTTP.

  2. Step 2

    Sign in to Postbase

    A browser window opens. Sign in and pick the workspace the client may post to. There's no API key to copy or store.

  3. Step 3

    Ask for a post

    Tell Gemini CLI what to post, where and when. It checks your channels, writes the post (or a separate version per network) and schedules it. Every post shows up in your Postbase calendar.

Run this to add the remote server to Gemini CLI.
bash
gemini mcp add postbase --transport http https://mcp.postbase.so/mcp

What to ask Gemini CLI

Plain language works. These are a few things people ask for.

Ask Gemini CLIPostbase connected
  • Write a thread for X about today's release notes and schedule it for 10am.
  • Draft one post for LinkedIn and one for Bluesky about our new docs site.
  • List the posts scheduled for this week.
Ask Gemini CLI to draft or schedule a post…

You stay in control

Gemini CLI gets a small set of tools, and everything it does shows up in Postbase.

What can my agent call?
list_channelsSee connected accounts and their platforms.
create_postDraft or schedule a post/thread, with media, to any channels.
get_postCheck each channel: published with its link, or why it failed.
update_postEdit or reschedule a post before it goes out.
retry_postSend a post again where it failed.
get_analyticsSee which posts did best: likes, views and more.
list_mediaFind images and videos in your media library.
add_mediaAdd an image or video from a link.
list_scheduledReview what's queued to publish.
cancel_postPull a scheduled post before it goes out.

Ten tools, nothing surprising

Gemini CLI can create, edit and check posts and threads, retry what failed, read analytics, add media and cancel a post. It can't delete anything or change your account.

Take access back in one click

Gemini CLI shows up under Connected apps on your AI & API page. Revoke it and it's cut off immediately.

Connected apps

Tools you've signed in to Postbase from. Revoking cuts off their access immediately.

Claude
Halden Coffee · connected 23 Sep 2026 · last used 23 Sep 2026
Revoke
Cursor
Halden Coffee · connected 14 Sep 2026 · last used 22 Sep 2026
Revoke
ChatGPT
Halden Coffee · connected 18 Sep 2026 · last used 21 Sep 2026
Revoke

Every post Gemini CLI schedules lands in your calendar

Agent posts sit next to yours. Review, edit or cancel them before they go out.

Calendar
New post
21 – 27 Sep 2026Today
Mon
21
Tue
22
Wed
23
Thu
24
Fri
25
Sat
26
Sun
27
11:00
12:00
13:00
14:00
15:00
Manage channels

Networks Gemini CLI can post to

Any account you've connected in Postbase.

Frequently asked questions

Can I use an API key instead of signing in?

Yes. Create a key on the AI & API page and add the @postbasehq/mcp npm package to the mcpServers block of ~/.gemini/settings.json with POSTBASE_API_KEY set.

What can Gemini CLI do in my Postbase account?

Four things: list your connected channels, create a draft or scheduled post (or thread), list what's queued, and cancel a scheduled post. It can't delete posts, disconnect accounts or change settings.

Which networks can Gemini CLI post to?

Posts and threads go to X, LinkedIn, Bluesky and Mastodon, and videos to YouTube, with images or video from your Postbase media library. TikTok posts are saved as drafts, because TikTok requires you to choose who sees each one in the Postbase composer.

How do I stop Gemini CLI posting for me?

Open AI & API → Connected apps in Postbase and click Revoke next to Gemini CLI. Access ends immediately, and anything already scheduled stays in your calendar for you to keep or cancel.

Do I need a paid Postbase plan?

Every plan includes the MCP server, and every plan starts with a 7-day free trial. You can also self-host the open-source version for free.

Other AI tools

Ready to get started?

Connect Gemini CLI in a minute. It drafts and schedules, and you see every post in your calendar.

Cancel anytime · or self-host for free

Postbase

Copy your key now — you won't see it again.

pb_live_Qm7xT2vLr9KcH0sWbN8y…4f2aCopy
MCP client configuration

Authentication

Sign in with PostbaseAPI key

Client

Claude DesktopCursorVS Code
Connected apps
Claude
Halden Coffee · connected just now
Revoke
Cursor
Halden Coffee · connected 14 Sep 2026
Revoke
✓Claude connected to Halden Coffee