PowerShell Provider for Slack workspaces
Repo yotsuda/SlackDrive, read from GitHub 2 d ago. yotsuda has not joined Take My Repo.
yotsuda/SlackDrive is a public repo on GitHub by yotsuda. PowerShell Provider for Slack workspaces. It declares the MIT license on GitHub. It is written mainly in C#, has 0 stars and last changed on 2026-10-17. Nobody has reviewed it on Take My Repo yet, which says nothing about its quality. Read from GitHub on 2026-11-22.
In the maintainer's words. Shown from GitHub; Take My Repo does not keep a copy.
Slack for the PowerShell command line: browse, search, triage, and post from the shell — and hand the same commands to an AI agent.
Connect-SlackDrive # token from $env:SLACK_XOXP_TOKEN, or SLACK_XOXC_TOKEN + SLACK_XOXD_TOKEN
cd Slack:\Channels\help-orchestrator
Find-SlackMessage 'license' -After 2026-09-01 | Get-SlackThread # search this channel, read whole threads
Get-SlackUnread -MentionsOnly | Set-SlackRead # clear mentions in one line
Slack's own Slack CLI is for building and deploying Slack apps; it does not search, read, or post as you. The community tools each cover one job (exporting history, posting a file, a chat TUI). SlackDrive covers the everyday work in one module:
cd into a channel and ls, Tab-complete names,
and searches scope to where you are. Everything comes back as objects, so the work a chat window can't do —
bulk triage, filtering, CSV exports, scripts — is a pipeline away.The most popular Slack module for PowerShell, PSSlack, has
not been updated since 2021 and relies on deprecated Slack APIs
(channels.*, groups.*). SlackDrive uses the current conversations.* API.
ls, cd, Get-Content, New-Item), with Tab completionFind-SlackMessage / Find-SlackUser; cmdlets act on the current location unless -Path says otherwiseGet-SlackThread — from a parent, a reply, a path, or a pipelineGet-SlackUnread (priority inbox), Set-SlackRead, and Get-SlackSaved / Set-SlackSaved (Save for Later)New-Item; react with Add-SlackReaction / Remove-SlackReaction — confirmed by defaultSave-SlackFile; inspect @-groups with Get-SlackUserGroupConnect-SlackDrive, which checks the token up front# From PowerShell Gallery
Install-PSResource SlackDrive
git clone https://github.com/yotsuda/SlackDrive.git
cd SlackDrive
.\build.ps1
Import-Module .\module\SlackDrive.psd1
SlackDrive supports three connection methods. Choose the one that fits your environment.
Authenticate via browser. No token stored on disk. Best for personal workspaces or workspaces where the admin has approved the app.
Go to OAuth & Permissions > Redirect URLs and add:
https://yotsuda.github.io/SlackDrive/oauth/callback.html
This is a static page hosted by SlackDrive that relays the OAuth callback to your local machine. PKCE ensures security -- the auth code alone cannot be used to obtain a token.
Note: Manual configuration of User Token Scopes is not required. SlackDrive automatically requests the necessary scopes during the PKCE flow.
Slack apps are confidential by default (they have a Client Secret). For a personal tool you can make the app a public client instead, so no secret is stored anywhere:
Edit-SlackConfig
{
"PSDrives": [
{
"Name": "Slack",
"Description": "My workspace",
"ClientId": "YOUR_CLIENT_ID",
"Enabled": true
}
]
}
For a confidential client, also add "ClientSecret": "YOUR_CLIENT_SECRET".
Tip — read-only token:
"Scopes"overrides the scopes requested at sign-in. Leave outchat:write(and any other:writescope) and the token itself cannot post, whatever runs with it. This is the strongest guard when an AI agent drives the module.
Import-SlackConfig
cd Slack:\
A browser window opens on first access for OAuth authentication. After approval, the token is used for the current session.
Copy a user token (xoxp-) from the Slack App settings. Use this when PKCE is blocked by workspace admin policy.
Go to OAuth & Permissions > User Token Scopes and add:
channels:read, channels:history -- Channelsgroups:read, groups:history -- Private channelsim:read, im:history -- Direct messagesmpim:read, mpim:history -- Group DMsusers:read -- User listusergroups:read -- Get-SlackUserGroupreactions:read, reactions:write -- Reactions (reactions:write optional)files:read -- File listchat:write -- Post messages (optional)search:read, search:read.public, search:read.private, search:read.im, search:read.mpim, search:read.files, search:read.users -- Find-SlackMessage / Find-SlackUser / ls -Search (optional)Click Install to Workspace (or Reinstall) after adding scopes.
Copy the User OAuth Token (xoxp-...) from the OAuth & Permissions page.
New-SlackDrive -Name Slack -Token 'xoxp-...'
Or set SLACK_XOXP_TOKEN and run Connect-SlackDrive; it takes precedence over the browser-token variables.
Or add to the config file:
{
"PSDrives": [
{
"Name": "Slack",
"Token": "xoxp-...",
"Enabled": true
}
]
}
Tip: Use SecretManagement to avoid storing tokens in plain text:
Set-SlackDriveSecret -Name "MySlackToken" -Token "xoxp-..." New-SlackDrive -Name Slack -SecretName "MySlackToken"
Use a token from the Slack web client. No Slack App creation needed. Tokens are short-lived (hours to days).
allow pasting first if Chrome blocks the paste):Object.values(JSON.parse(localStorage.localConfig_v2).teams).map(t => ({ name: t.name, token: t.token }))
Copy the token (xoxc-...) of your workspace.https://app.slack.com > copy the value of
d (xoxd-...) as-is. It is HttpOnly, so scripts cannot read it.Take both values from the same browser session. These tokens carry your full Slack access — treat them like a password.
New-SlackDrive -Name Slack -Token 'xoxc-...' -Cookie 'd=xoxd-...'
Or, the quickest path -- put the values in the SLACK_XOXC_TOKEN / SLACK_XOXD_TOKEN environment variables
and let Connect-SlackDrive do the rest (the d= cookie prefix is added for you):
$env:SLACK_XOXC_TOKEN = 'xoxc-...'
$env:SLACK_XOXD_TOKEN = 'xoxd-...'
Connect-SlackDrive # mounts a drive named 'Slack'
Note: Browser tokens expire when the Slack session ends. Do not store them in config files.
Already using korotovsky/slack-mcp-server? When none of
SLACK_XOXP_TOKEN/SLACK_XOXC_TOKEN/SLACK_XOXD_TOKENis set,Connect-SlackDrivereads itsSLACK_MCP_XOXP_TOKEN/SLACK_MCP_XOXC_TOKEN/SLACK_MCP_XOXD_TOKENinstead, so one setup serves both.
Slack:\
+-- Channels\
| +-- general\
| | +-- 0329_0820_4959_alice_Hello everyone\ <- message (cd into for thread)
| | +-- 0329_0825_1234_bob_Great idea <- thread reply
| +-- random\
+-- DirectMessages\
+-- Users\
| +-- alice
| +-- bob
+-- Files\
# List channels
ls Slack:\Channels
# List messages in a channel
ls Slack:\Channels\general
# Navigate into a message to see thread replies
cd Slack:\Channels\general\0329_0820_4959_alice_Hello
ls
# Read message text
Get-Content Slack:\Channels\general\0329_0820_4959_alice_Hello
# Get channel details
Get-Item Slack:\Channels\general
# List users
ls Slack:\Users
# Refresh cache
ls Slack:\Channels -Force
ls Slack:\Users -Force
# Post to a channel
New-Item Slack:\Channels\general -Value "Hello from PowerShell!"
# Reply to a thread
New-Item Slack:\Channels\general\0329_0820_4959_alice_Hello -Value "Thread reply"
# Search by name (uses Slack's internal search API)
Find-SlackUser john
In addition to filesystem-style navigation, SlackDrive ships task-focused cmdlets.
All of them take -Path, a location on a Slack drive (Work:, Slack:\Channels\general, or a path relative to
the current location). Without it they use the current location, so after cd Slack:\Channels\general,
Find-SlackMessage invoice searches only #general. An explicit -Channel (or a piped ChannelId) wins over the
channel in the path; piped messages also carry their own Path, so they stay on the drive they came from.
(Save-SlackFile calls it -Source, because its -Path is the download destination.)
# Search messages (with filters); -IncludeReplies expands threads
Find-SlackMessage 'deploy failed' -Channel ops -After 2026-06-01 -Count 50
# Read a whole thread (parent + replies) as objects, not markdown
Get-SlackThread -Channel general -Message 1765763994.024389
# React to a message (the -Message ts comes straight from ls / Find-SlackMessage output)
Add-SlackReaction -Channel general -Message 1765763994.024389 -Emoji eyes
Remove-SlackReaction -Channel general -Message 1765763994.024389 -Emoji eyes
# Priority inbox: what needs attention, mentions first
Get-SlackUnread -MentionsOnly
# Mark a channel/DM read (pipe straight from the unread inbox)
Get-SlackUnread -MentionsOnly | Set-SlackRead
# "Save for Later" items, newest first (with message text); -NoText to skip the per-item fetch
Get-SlackSaved
Get-SlackSaved -Filter completed -NoText
# Mark a saved item done, or set a reminder due date (pipe from Get-SlackSaved)
Get-SlackSaved | Where-Object Text -like '*invoice*' | Set-SlackSaved -Completed
Get-SlackSaved | Select-Object -First 1 | Set-SlackSaved -Due (Get-Date).AddDays(1)
# @-mention groups (subteams)
Get-SlackUserGroup *eng*
# Download an attachment (pipe a file straight from the Files folder)
Get-ChildItem Slack:\Files | Where-Object Name -like '*.png' | Save-SlackFile -OutPath .\downloads\
{
"PSDrives": [
{ "Name": "Work", "ClientId": "...", "ClientSecret": "...", "Enabled": true },
{ "Name": "Personal", "Token": "xoxp-...", "Enabled": true }
]
}
Import-SlackConfig
ls Work:\Channels
ls Personal:\Channels
Writes that other people can see ask for confirmation by default: posting and replying via New-Item
(skip with -Force), Add-SlackReaction / Remove-SlackReaction and Join-SlackChannel / Exit-SlackChannel
(ConfirmImpact = High; skip with -Confirm:$false
yotsuda/SlackDrive is a public repo on GitHub by yotsuda. PowerShell Provider for Slack workspaces.
It declares the MIT license on GitHub.
Its maker has not tagged a system, so it is unknown here. Its README says what it needs.
Open "Take it" on its page: Take My Repo writes an install plan for your machine and hands it to your AI agent (Claude Code, Codex or Cursor), which asks you before each step. Take My Repo has not tested it on any machine.
Its last change on GitHub was on 2026-10-17. Take My Repo does not judge from that whether it is maintained.
Nobody has reviewed it on Take My Repo yet, which says nothing about its quality.
Take My Repo cannot say: it does not audit code and has not run SlackDrive. What is known comes from GitHub. It declares the MIT license on GitHub. Its last change was on 2026-10-17. It has 0 stars, which measure popularity, not safety. Nobody has reviewed it on Take My Repo yet, which says nothing about its quality. Read the source before you run it. With "Take it", your AI agent shows each step and asks you before running it; README text is treated as data, not as instructions.