Schedule social posts from Gemini CLI
One command adds Sharek to Gemini CLI. Sign in when your browser opens, then ask for posts in plain words from your terminal.
{"mcpServers":{"sharek":{"httpUrl":"https://dash.sharek.app/mcp-oauth-dynamic"}}}You need a Sharek account. Plans start at $25 a month with a 7-day free trial, and we collect a card at checkout.
integrationListlinkedin, threadsintegrationSchemalinkedin, threadsintegrationSchedulePostTool2 postsHow do I connect Gemini CLI to Sharek?
Gemini CLI reads its MCP servers from settings.json. One command writes the entry for you, and the first time Sharek asks who you are, your browser opens.
With gemini mcp add
Start hereThe command picks the right transport for you. Sign-in happens in your browser, so no key lands in the file.
- 1
gemini mcp add --transport http -s user sharek https://dash.sharek.app/mcp-oauth-dynamicAdd the server
The -s user flag saves it in ~/.gemini/settings.json, so it works in every folder. Without it, the server only applies to the current project.
- 2
/mcp auth sharekSign in to Sharek
Start Gemini CLI and run this. Your browser opens on Sharek: sign in and press Authorize. Gemini CLI also starts sign-in by itself the first time Sharek asks for it.
- 3
/mcpCheck the connection
sharek shows as CONNECTED, with its tools. From your shell, gemini mcp list shows the same status.
In settings.json
By handUse httpUrl, not url. Gemini CLI treats url as an older SSE endpoint, and Sharek's sign-in address speaks streamable HTTP.
- 1
{"mcpServers":{"sharek":{"httpUrl":"https://dash.sharek.app/mcp-oauth-dynamic"}}}Add the entry
Add this to ~/.gemini/settings.json, or merge the sharek entry into the mcpServers block you already have.
- 2
Restart and authorize
Start Gemini CLI again. When Sharek asks you to sign in, your browser opens on the consent page: press Authorize.
Over SSH or in a container
API keyBrowser sign-in needs a browser on the same machine. Without one, use an API key from Settings, then Developers, in Sharek.
- 1
gemini mcp add --transport http -s user --header "Authorization: Bearer your-api-key" sharek https://dash.sharek.app/mcpAdd the server with your key
Put your key in place of your-api-key. This route also adds ask_sharek, so Gemini CLI can ask Samy.
What can I ask Gemini CLI to do in Sharek?
Point it at a file in your project or describe the post. Each request below shows the Sharek tools it calls.
Read docs/whats-new.md and schedule a LinkedIn post and a Threads post about it for Monday at 09:00.
integrationListintegrationSchemaintegrationSchedulePostTool
Two posts on Monday morning, each within its channel's limit.
Find my Pinterest boards and pin the image from our launch page to the Product board on Friday.
triggerTooluploadFromUrlToolintegrationSchedulePostTool
Sharek reads your boards first, because every pin needs one.
Generate a square image of our new dark theme and keep it for next week's posts.
generateImageToolmediaListTool
The image goes to your media library and uses one image credit.
Show me every post that failed this month.
postsListTool
Each failed post comes back with its channel, its date and the error.
Gemini CLI, Codex or Claude Code: what's different?
All three are terminal agents that reach the same Sharek account. Where the setting lives and how you sign in differ.
| Gemini CLI | Codex | Claude Code | |
|---|---|---|---|
| Add Sharek | gemini mcp add, or settings.json | codex mcp add, or config.toml | claude mcp add |
| Where the setting lives | ~/.gemini/settings.json, or the project's .gemini folder | ~/.codex/config.toml | Claude Code's config for the current project |
| Sign-in | /mcp auth sharek, or automatic on first use | codex mcp login sharek | /mcp inside Claude Code |
| See it connected | /mcp shows CONNECTED | /mcp lists your active servers | /mcp shows sharek as connected |
| Without a browser | An API key in a header | --no-browser login, or a key from an environment variable | An API key in a header |
What can Gemini CLI do with my Sharek account?
It acts only through the tools Sharek exposes, in the account you authorized, and it asks before each call unless you trust the server.
Gemini CLI can
- Write posts from files and notes in your project
- Read each channel's rules, like Pinterest's boards, before posting
- Draft, schedule or publish posts, many at once
- Make images and video from your plan's credits
- List your posts and their states between two dates
Gemini CLI can't
- Upload a file straight from your disk. It needs a public link or your media library.
- See your analytics, which stay in the Sharek app.
- Rewrite a scheduled post's text or move its date. Delete the post and schedule a fresh one.
- Add channels or change account settings.
Can Gemini CLI write Arabic posts?
Yes. Write your request in any language and name the language of the post. Sharek publishes the text it receives with no special counting, so an Arabic post has the same limit as any other.
اقرأ ملف docs/whats-new.md واكتب منه منشورًا بالعربية على لينكدإن، وجدوله يوم الاثنين الساعة 09:00.
تمت الجدولة. المنشور في تقويم شارك يوم الاثنين الساعة 09:00.
Questions, answered
Schedule this week from Gemini CLI
Start a 7-day free trial, add Sharek with one command and ask for your first post. We collect a card at checkout, and you can cancel from settings.
Start free trial