ClawKit Logo
ClawKitReliability Toolkit
Back to Registry
Official Verified social Safety 4/5

linkedin-cli

Post to LinkedIn using the official API v2. Uses OAuth tokens so only post when explicitly asked or scheduled.

skill-install — Terminal

Install via CLI (Recommended)

clawhub install openclaw/skills/skills/0xmythril/linkedin-cli-2
Or

What This Skill Does

The linkedin-cli skill provides a secure, streamlined interface for interacting with the LinkedIn API v2 directly from your terminal. It allows an OpenClaw AI agent to manage professional updates by posting text, sharing URLs with commentary, and deleting previously published posts. This tool is designed with a strict security-first architecture, ensuring that all API interactions are authorized via OAuth and handled with the minimum necessary permissions. It acts as a bridge between your agent's creative output and your professional network, providing a programmatic way to maintain your presence on LinkedIn without manual intervention.

Installation

To integrate this skill, use the ClawHub package manager: clawhub install openclaw/skills/skills/0xmythril/linkedin-cli-2. Post-installation, you must perform a one-time configuration: create the environment file at ~/.config/linkedin-cli/.env, add your LinkedIn CLIENT_ID and CLIENT_SECRET, and run linkedin-cli auth. The system utilizes standard Linux permissions (chmod 600) to ensure your credentials remain protected from unauthorized local access.

Use Cases

This skill is ideal for professionals who need to maintain a consistent social media presence. Use it to automatically post summaries of finished projects, share technical articles or blog posts relevant to your industry, or manage content updates on a schedule. Because it interfaces with the official LinkedIn API, it is perfect for developers building automation pipelines where content generation happens in the background, such as syncing repository releases to a LinkedIn feed.

Example Prompts

  1. "Please post a summary of my latest GitHub repository update to LinkedIn: [Insert URL]. Add some professional commentary about the new features."
  2. "I have drafted a post about the recent cloud architecture shift. Can you show it to me for approval before posting it to my feed?"
  3. "Delete the LinkedIn post at this URL: [Insert URL] as it contains outdated information."

Tips & Limitations

This tool is strictly rate-limited by LinkedIn. To avoid hitting these limits, do not use the tool for automated spamming or high-frequency updates. Always confirm content with the user before publishing, as AI-generated text may require manual refinement for tone and accuracy. Note that this skill is for posting only; it cannot read your feed, scrape profiles, or handle direct messages. If you receive a 401 error, your token has likely expired (60-day cycle), and you should trigger a re-authentication flow.

Metadata

Author@0xmythril
Stars4473
Views0
Updated2026-05-01
View Author Profile
AI Skill Finder

Not sure this is the right skill?

Describe what you want to build — we'll match you to the best skill from 16,000+ options.

Find the right skill
Add to Configuration

Paste this into your clawhub.json to enable this plugin.

{
  "plugins": {
    "official-0xmythril-linkedin-cli-2": {
      "enabled": true,
      "auto_update": true
    }
  }
}

Tags(AI)

#linkedin#social-media#automation#professional#api
Safety Score: 4/5

Flags: network-access, file-read, file-write, external-api