Skip to content

Gemini CLI + Wahlu

Post to LinkedIn from Gemini CLI with Wahlu

Connect Gemini CLI to Wahlu once, then plan, draft and schedule posts for LinkedIn personal profiles connected to Wahlu from the Gemini CLI terminal. Every schedule can wait for your approval.

What Gemini CLI can prepare on LinkedIn
  • Text post

    A caption on its own.

  • Image post

    One image with a caption.

  • Video post

    One video with a caption.

  • Link post

    A caption with a link card and its own title of up to 399 characters.

Ask Gemini CLI for LinkedIn posts

Example prompts and the steps to expect. These are illustrations, not recorded conversations.

Example prompt

“Write a LinkedIn post for my personal profile from the README in this project: what changed, who it helps and one honest lesson. Hold it for review.”

Example prompt

“Create a LinkedIn video post from the demo linked in the README in this project, visible to anyone, and run a readiness check.”

Example prompt

“Draft a LinkedIn link post pointing to the release notes for the README in this project, then tell me when my next free morning slot is.”

What Wahlu does on LinkedIn

Gemini CLI works through Wahlu's tools, so it can set the LinkedIn options Wahlu supports.

LinkedIn settings on a draft

Post type
Text, image, video or link.
Visibility
Anyone, or connections only.

Wahlu posts to LinkedIn personal profiles only. Company Page posting and native LinkedIn articles aren't available.

The tool calls, in order

  1. 01

    list_targetsFinds the brand's connected LinkedIn account and checks it's ready.

  2. 02

    upload_media_from_file, import_media_from_url or list_mediaBrings in the image or video, or picks one from your media library.

  3. 03

    create_draftCreates the draft with its caption and linkedin_settings, such as the post type.

  4. 04

    preflight_draftChecks the draft against LinkedIn's rules without changing it.

  5. 05

    create_schedulePuts it on the calendar at pending_review, held for your approval.

LinkedIn limits to know

Wahlu checks these before a post is scheduled, so the agent finds out early.

Getting images and video to LinkedIn

The local server can upload a file straight from your computer with upload_media_from_file, so screenshots and videos in your project don't need a public link.

Connect Gemini CLI to Wahlu

Set this up once and Gemini CLI can work on every network you've connected, not just LinkedIn.

  1. 1

    In the Wahlu app, create an API key under Settings → API Keys in your workspace, with only the permissions and brands you need.

  2. 2

    Add export WAHLU_API_KEY=your-key to your shell profile, with your key, and open a new terminal.

  3. 3

    Add the Wahlu configuration to ~/.gemini/settings.json. If the file already has settings, add wahlu inside its mcpServers object.

  4. 4

    Start a new Gemini CLI session and run /mcp to check that wahlu is connected and its tools are listed.

Checked against the Gemini CLI docs on 27 September 2026. Menus can change; if a step doesn't match what you see, follow the vendor's current instructions.

~/.gemini/settings.json
{
  "mcpServers": {
    "wahlu": {
      "command": "npx",
      "args": ["-y", "@wahlu/mcp-server@latest"],
      "env": {
        "WAHLU_API_KEY": "$WAHLU_API_KEY"
      }
    }
  }
}

Gemini CLI replaces $WAHLU_API_KEY with the value from your shell, so the key isn't saved in the settings file. You can also add the same configuration to a project's .gemini/settings.json to use Wahlu in that project only. Available local tools depend on the installed version. Check the local MCP server notes for its Node.js requirement and tool availability.

You stay in control.

Every Wahlu plan includes agent access, through MCP and the API. You choose the workspace, brands and permissions each connection gets, and can disconnect it at any time.

Held until you approve

Agents create schedules at pending_review unless you've told them to publish. A held schedule can't publish until you approve it in Wahlu or ask an agent with Publishing permission to approve it.

Publishing is its own permission

Publishing is separate from Manage your schedule. Leave it unticked and nothing your agent schedules can go out on its own.

Checked before it's scheduled

preflight_draft reports anything that would stop a post, such as media the network won't accept or a caption that's too long, without changing anything.

Some things stay in the app

Use the app for queues, draft media and platform settings, and connecting social accounts. Agents can change the name or caption of an unused draft and approve held schedules with the right permissions.

Your next LinkedIn post, drafted by Gemini CLI.

Connect your LinkedIn account in Wahlu, then give Gemini CLI a specific brief.