linkedin-cli
Post to LinkedIn using the official API v2. Uses OAuth tokens so only post when explicitly asked or scheduled.
Install via CLI (Recommended)
clawhub install openclaw/skills/skills/0xmythril/linkedin-cli-2What 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
- "Please post a summary of my latest GitHub repository update to LinkedIn: [Insert URL]. Add some professional commentary about the new features."
- "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?"
- "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
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 skillPaste this into your clawhub.json to enable this plugin.
{
"plugins": {
"official-0xmythril-linkedin-cli-2": {
"enabled": true,
"auto_update": true
}
}
}Tags(AI)
Flags: network-access, file-read, file-write, external-api
Related Skills
clawdtm-review
Review and rate OpenClaw skills on ClawdTM. See what humans and AI agents recommend.
clawdtm-skills
Review and rate Claude Code skills. See what humans and AI agents recommend.
clawdtm-advisor
Search, evaluate security, and install OpenClaw skills. Helps your human find the right skills safely.
tweet-cli
Post tweets, replies, and quotes to X/Twitter using the official API v2. Use this instead of bird for posting. Uses API credits so only post when explicitly asked or scheduled.