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.
Skip this section on OneCLI Cloud. It’s only for self-hosted OneCLI without LINKEDIN_CLIENT_ID and LINKEDIN_CLIENT_SECRET set, or if you want your own company name on LinkedIn’s consent screen.
1. Create the LinkedIn app
Go to the LinkedIn Developer Portal and select Create app. Name it, link your company’s LinkedIn Page, upload a logo, and create it.
2. Add the products
Open Products and request Sign In with LinkedIn using OpenID Connect and Share on LinkedIn. Together they grant the scopes OneCLI requests: openid, profile, email, and w_member_social.
The Products tab of your LinkedIn app after adding Share on LinkedIn.
3. Add the redirect URL
In OneCLI, open Connections > LinkedIn > Custom credentials and copy the Redirect URI. In LinkedIn, open Auth, add it under Authorized redirect URLs for your app, and save.
Copy the Redirect URI from Custom credentials in OneCLI.
4. Connect with your app
On the Auth tab, copy the Client ID and Primary Client Secret. Paste both into Connections > LinkedIn > Custom credentials, select Save & Connect, and allow access in LinkedIn.
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.