Example prompt
“Read the README in this project and write an X post announcing the release in under 280 characters. Hold it for review tomorrow at 9am.”
Gemini CLI + Wahlu
Connect Gemini CLI to Wahlu once, then plan, draft and schedule posts for X accounts connected to Wahlu from the Gemini CLI terminal. Every schedule can wait for your approval.
Text post
Words on their own, with no media.
Image post
One to four images, or one GIF on its own. Text is optional.
Video post
One video, MP4 or MOV, up to 512 MB. Text is optional.
Example prompts and the steps to expect. These are illustrations, not recorded conversations.
Example prompt
“Read the README in this project and write an X post announcing the release in under 280 characters. Hold it for review tomorrow at 9am.”
Example prompt
“Create an X image post from the screenshots in docs/launch for the README in this project, then run a readiness check.”
Example prompt
“Check whether anything is already scheduled on X this week before you draft a post about the README in this project.”
Gemini CLI works through Wahlu's tools, so it can set the X options Wahlu supports.
Agents can post X threads of up to 25 posts with thread_parts. Polls, quote posts and long posts for X Premium aren't available. X follower and post numbers show in the app on paid plans; agents can't read them yet.
list_targetsFinds the brand's connected X account and checks it's ready.
upload_media_from_file, import_media_from_url or list_mediaBrings in the image or video, or picks one from your media library.
create_draftCreates the draft with its caption and x_settings, such as the post type.
preflight_draftChecks the draft against X's rules without changing it.
create_schedulePuts it on the calendar at pending_review, held for your approval.
Wahlu checks these before a post is scheduled, so the agent finds out early.
Posts up to 280 characters by X's count: a link counts as 23 and an emoji as 2.
X: counting charactersImages can be JPEG, PNG or WebP. Wahlu takes images and GIFs up to 5 MB.
X API: media best practicesVideos are MP4 or MOV. Wahlu takes videos up to 512 MB.
X API: media best practicesThe 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.
Set this up once and Gemini CLI can work on every network you've connected, not just X.
In the Wahlu app, create an API key under Settings → API Keys in your workspace, with only the permissions and brands you need.
Add export WAHLU_API_KEY=your-key to your shell profile, with your key, and open a new terminal.
Add the Wahlu configuration to ~/.gemini/settings.json. If the file already has settings, add wahlu inside its mcpServers object.
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.
{
"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.
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.
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 separate from Manage your schedule. Leave it unticked and nothing your agent schedules can go out on its own.
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.
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.
Connect your X account in Wahlu, then give Gemini CLI a specific brief.