How to connect LinkedIn to Gemini CLI
- 1
Paste the install line in Gemini CLI
Google's Gemini CLI runs in your terminal and can run commands, so the install is the same single line as for Claude Code. It adds the Scorper skills to Gemini CLI and links this machine to your account with a scoped key. No API key to paste, no config file to edit.
Type into the Gemini CLI chat, or into any terminalnpx scorper@latest init
Needs Node 18 or newer. scorper doctor confirms the install afterwards.
- 2
Sign in with the code from your email
Gemini CLI asks for your email. A 6-digit code arrives, you type it into the chat. No account yet? One is created on the spot, no password. You pick a plan and its 7-day free trial starts at checkout.
- 3
Say “connect my linkedin”
Gemini CLI opens LinkedIn's approval page in your browser. Log into the right LinkedIn account first, approve, come back. Gemini CLI confirms the connection.
- 4
Tell it what to post
post this to linkedin, more formal than the instagram captionGemini CLI uploads the media, proposes a caption, then reads the whole post back. Say yes and it publishes to LinkedIn. Say “schedule it for 6pm tomorrow” instead and it queues it.
What you can publish to LinkedIn from Gemini CLI
Text posts, image posts, video posts and carousels to a connected LinkedIn profile.
LinkedIn rewards a different voice from Instagram, and that is where posting from an AI pays off: one prompt, two captions. Say "post this to instagram and linkedin, more formal on linkedin" and your AI drafts a version for each, reads both back, and publishes both. Developers and founders often wire this to their release process: when a version ships, a prompt turns the changelog into a LinkedIn post and schedules it for the next working morning.
LinkedIn's own rules, which your AI works within
| Rule | |
|---|---|
| Post length | Up to 3,000 characters. Only the first few lines show before "see more". |
| Images | Up to 20 images per post on LinkedIn; JPEG or PNG. |
| Video | MP4, 3 seconds to 10 minutes, up to 5 GB. |
| Documents | LinkedIn renders PDFs as swipeable carousels. |
| Hashtags | No hard cap; three to five is the usual practice. |
| Connection | LinkedIn approvals last 60 days. Your AI tells you when a reconnect is due; it is one browser approval. |
Prompts that work in Gemini CLI
Scheduling: “schedule this for 9am monday on linkedin”. The calendar: “what's going out this week?”. Moving things: “move friday's post to saturday”. Everything you schedule from Gemini CLI also shows in the dashboard calendar.
Something only Gemini CLI users should know
The account link belongs to the machine, not the agent. If you switch between Gemini CLI and Claude Code or Codex on the same computer, run the install from each one to add its skills, and they all post through the same connected accounts. scorper doctor shows which agents on the machine have the skills.
What happens before anything posts
⏺ Posting to LinkedIn your profile Caption: "Three things I wish someone told me at 21…" Confirm? > yes ✓ Posted · link below
Honest limits
- LinkedIn publishing goes through the official LinkedIn API, so LinkedIn's rules above apply. Scorper does not work around them.
- The AI-agent connection is on every plan. Pro posts to Instagram only. Max ($25 a month), Studio and Agency post to every social.
- The install needs Node 18 or newer on the machine.
- Some things are easier in the dashboard than in chat: bulk-editing a month of scheduled posts, for example. Both views share one calendar.
Frequently asked questions
- Can Gemini CLI post to LinkedIn on its own?
- Not without a connection. Gemini CLI can write a caption but has no permission to publish. Scorper is that permission: one command installs the posting skills and links your machine to your account, then Gemini CLI can publish and schedule to LinkedIn through the official API.
- Can the AI post to a LinkedIn company page?
- The connection is made to the LinkedIn account you approve in the browser. If you need company-page publishing, check the connected-accounts list after approval (say "what's connected?") before relying on it.
- Will the LinkedIn caption be the same as the Instagram one?
- Only if you want it to be. Ask for a different tone per platform and your AI writes a separate caption for LinkedIn. Both are read back before anything posts.
- How do I know the skills are installed for Gemini CLI?
- Run scorper doctor. It lists each agent it found on the machine (Claude Code, Codex, Gemini CLI, Cursor) with a tick or a cross. A cross next to Gemini CLI means run npx scorper@latest init from Gemini CLI once more.
- Will it post without asking me?
- No. Gemini CLI reads the exact post back (platform, media, caption) and publishes only after you confirm. Scheduled posts are shown before they are queued.
- What does posting to LinkedIn from Gemini CLI cost?
- The AI-agent connection is on every plan: Pro ($15 a month) posts to Instagram only, Max ($25) to all five platforms for one brand, Studio ($55) runs 3 brands and Agency ($99) runs 10. Every plan starts with a 7-day free trial, card needed to start.
Connect LinkedIn to Gemini CLI in two minutes
Paste the line, approve in your browser, tell it what to post.
npx scorper@latest initStart free for 7 days 7 days free on every plan. The AI-agent connection is on every plan, from Pro ($15/month, Instagram) to Max ($25, every social).