Slack Personal CLI Integration for Openclaw

A powerful session-based Slack CLI for macOS that allows AI agents to read, send, and manage messages using your existing Slack desktop authentication.

therohitdas
v1.0.0
Feb 11, 2026
0
2.4k
0

Install & Download

1. ClawHub CLI

The fastest way to install a skill directly from the registry.

npx clawhub@latest install slk

2. Manual Installation

Copy the skill folder to one of these locations

Global
~/.openclaw/skills/
Workspace
<project>/skills/

Priority: Workspace > Local > Bundled

3. Prompt Installation

Copy this prompt to OpenClaw to install it automatically.

Help me install slk using Clawhub. If Clawhub is not installed, install it first (npm i -g clawhub).

Prefer to download?

Get the raw skill files in a ZIP archive.

What is Slack Personal CLI Integration?

The slack-personal skill enables seamless interaction with Slack through the slk CLI, specifically designed for macOS users. Unlike traditional bots that require complex OAuth setups or app installations, this tool leverages your existing Slack desktop session tokens. It allows an AI agent to act as your user persona, making it one of the most streamlined Openclaw Skills for personal productivity and workspace management.

By accessing your local Keychain and session data, the skill provides full visibility into channels, DMs, threads, and unread activity. Whether you need to monitor specific conversations or automate repetitive messaging tasks, this integration bridges the gap between your terminal and the Slack interface without the friction of API token management.

Slack Personal CLI Integration Use Cases

  • Automated unread message checks and activity heartbeats across all joined channels.
  • Generating daily digests of specific channel discussions, decisions, and action items.
  • Monitoring high-priority threads for new replies and summarizing long-running conversations.
  • Creating message drafts in the Slack UI for human review before they are sent.
  • Searching workspace history and pinned items to provide context for AI-driven research tasks.

How Slack Personal CLI Integration Works

  1. The skill utilizes the slk CLI to interface with the Slack desktop app's LevelDB storage on macOS.
  2. It extracts session tokens (xoxc-) and decrypts the necessary cookies from the macOS Keychain.
  3. Commands are issued to the Slack API acting as the authenticated user, allowing access to everything the user can see in the desktop app.
  4. Data is fetched or sent (e.g., reading a thread or sending a DM) and the output is parsed by the agent for further processing.
  5. Token validity is maintained through a local cache, with automatic re-authentication if the session expires or rotates.

Slack Personal CLI Integration Setup

Ensure you have the Slack desktop app installed and logged in on your macOS machine. Install the slk CLI globally via npm:

npm install -g slkcli

Run the initial authentication command and grant Keychain access when prompted:

slk auth

Select 'Always Allow' in the macOS Keychain dialog to enable unattended access for Openclaw Skills to function without manual prompts. If auth fails later due to token rotation, clear the cache with rm ~/.local/slk/token-cache.json and re-authenticate.

Slack Personal CLI Integration Data Schema & Taxonomy

The skill manages authentication data locally and interacts with Slack's standard message structures. Data is typically organized as follows:

Component Details
Token Cache Stored at ~/.local/slk/token-cache.json containing the xoxc- session token.
Message Data JSON-like structures containing message text, timestamps (ts), and user IDs.
Channel Refs Supports channel names (e.g., #general), IDs (Cxxx), or User IDs (Uxxx).
Drafts Synced directly to the Slack cloud editor UI for visibility in the desktop app.

Slack Personal CLI Integration Advanced Features

  • Thread expansion: Automatically expand all replies in a thread using the --threads flag for comprehensive context.
  • Date filtering: Fetch messages from specific timeframes using the --from flag to narrow down searches.
  • Draft management: Programmatically create and delete drafts that appear in the native Slack client for human approval before sending.
  • VIP Monitoring: Track activity specifically for starred items and VIP users to prioritize agent attention.
  • Context Injection: Works as a foundational component for building custom Openclaw Skills workflows like automated meeting summarizers or incident monitors.

SKILL.md


Loading

Related Openclaw Skills

METADATA

Requires
Bins slk
Github Stars: 0
forks: 0

Featured*