Skip to main content

Overview

OneCLI connects AI agents to LinkedIn through OAuth. Agents can read your profile, email, and create, modify, and delete posts, comments, and reactions. The gateway injects OAuth credentials into requests to the LinkedIn API automatically.

Setup

1

Go to Connections

Open the OneCLI dashboard and navigate to Connections > LinkedIn.
2

Authorize

Click Connect LinkedIn. You’ll be redirected to LinkedIn to authorize OneCLI. Review the requested permissions and click Allow.
3

Verify

After authorization, you’ll be redirected back to the dashboard. The connection will show as Connected with your LinkedIn email.

What agents can do

Use cases

  • Content agents that draft and publish LinkedIn posts
  • Engagement agents that respond to comments
  • Social media scheduling agents that post on a schedule
  • Agents that cross-post content from other platforms to LinkedIn

Self-hosted setup

For self-hosted deployments, configure your own LinkedIn OAuth app:
  1. Create an app in the LinkedIn Developer Portal
  2. Set the environment variables LINKEDIN_CLIENT_ID and LINKEDIN_CLIENT_SECRET

Controlling access

Access is per agent: grant the connection to each agent that needs it, choosing per tool what runs freely, what needs human approval, and what stays blocked — a read-only agent is a single grant. Organization rules add guardrails on top, like rate limits and blanket blocks. Everything is checked before credential injection, so a blocked request never reaches LinkedIn.