by rusq
Save or export your private and public Slack messages, threads, files, and users locally without admin privileges.
# Add to your Claude Code skills
git clone https://github.com/rusq/slackdumpPurpose: archive your private and public Slack messages, users, channels, files and emojis. Generate Slack Export without admin privileges.
Quick links:
Buy me a cup of tea, or use GitHub Sponsors button on the top of the page.
How to's:
[!WARNING]
Enterprise Workspaces Security Alerts
Depending on your Slack plan and security settings, using Slackdump may trigger Slack security alerts and/or notify workspace administrators of unusual or automated access/scraping attempts.
You are responsible for ensuring your use complies with your organisation’s policies and Slack’s terms of service.
Typical use scenarios:
There are several modes of operation
Run slackdump help to see all available options.
On macOS, you can install Slackdump with Homebrew:
brew install slackdump
On other Operating Systems, please follow these steps:
./slackdump or slackdump.exe executable (see note below).[!NOTE] On Windows and macOS you may be presented with "Unknown developer" window, this is fine. Reason for this is that the executable hasn't been signed by the developer certificate.
To work around this:
slackdump help quickstart, read online.man ./slackdump.1slackdump help whatsnew, read online.If you've cloned the repository and want to run slackdump directly without downloading a release, you can do one of the following:
Build and run (creates an executable):
go build -o slackdump ./cmd/slackdump
./slackdump wiz
Run directly:
go run ./cmd/slackdump wiz
Note: You need Go installed on your system (see go.mod for the version)
If you're migrating to Discord, the recommended way is to use Slackord2 — a great tool with a nice GUI, that is compatible with the export files generated by Slackdump.
For more advanced features and instructions, please see the User Guide,
and read slackdump help pages.
Once the workspace data is dumped, you can run built-in viewer:
slackdump view <zip or directory>
The built-in viewer supports all types of dumps:
The built-in viewer is experimental, any contributions to make it better looking are welcome.
Alternatively, you can use one of the following tools to preview the export results:
Slackdump offers a read-only MCP server with the following features:
Available MCP tools:
| Tool | Description |
|------|-------------|
| load_source | Open (or switch to) a Slackdump archive at runtime |
| list_channels | List all channels in the archive |
| get_channel | Get detailed info for a channel by ID |
| list_users | List all users/members |
| get_messages | Read messages from a channel (paginated) |
| get_thread | Read all replies in a thread |
| get_workspace_info | Workspace/team metadata |
| command_help | Get CLI flag help for any slackdump subcommand |
The server supports both stdio (agent-managed) and HTTP transports.
Scaffold a ready-to-use project directory pre-configured for your AI tool:
slackdump mcp -new opencode ~/my-slack-project # OpenCode
slackdump mcp -new claude-code ~/my-slack-project # Claude Code
slackdump mcp -new copilot ~/my-slack-project # VS Code / GitHub Copilot
Each command creates the MCP config file and installs bundled Slackdump skill / instruction files so the agent knows how to work with your archive out of the box.
To learn how to set it up with Claude Desktop, VS Code/GitHub Copilot, or OpenCode, see:
slackdump help mcp
or refer to the Slackdump MCP command help page.
Download:
go get github.com/rusq/slackdump/v4
package main
import (
"context"
"log"
"github.com/rusq/slackdump/v4"
"github.com/rusq/slackdump/v4/auth"
)
func main() {
provider, err := auth.NewValueAuth("xoxc-...", "xoxd-...")
if err != nil {
log.Print(err)
return
}
sd, err := slackdump.New(context.Background(), provider)
if err != nil {
log.Print(err)
return
}
_ = sd
}
Slackdump uses a "log/slog" package, it defaults to "slog.Default()". Set the default slog logger to the one you want to use.
If you were using logger.Silent before, you would need to
implement a discarding Handler for slog.
No, you don't. Just run the application and EZ-Login 3000 will take care of the authentication or, alternatively, grab that token and cookie from the browser Slack session. See User's Guide.
Run slackdump workspace new <name or url> to reauthenticate.
slackdump view <ZIP-archive or directory>
No, unfortunately you can't. Slack doesn't allow to export data older than 90 days for free workspaces, the API does not return any data before 90 days for workspaces on the Free plan.
"Archive" is the
No comments yet. Be the first to share your thoughts!