Getting started
Installation
Clone the repository and install dependencies with uv:
Python 3.13 or later is required.
Slack credentials
slack-cached needs a Slack token to access the API. Two authentication methods are supported:
Bot token (recommended)
Set the SLACK_TOKEN environment variable to a bot token starting with xoxb-:
Browser token
Set both SLACK_TOKEN (starting with xoxc-) and SLACK_COOKIE (the xoxd- cookie from the same browser session):
Alternatively, create a config file at ~/.config/slack-cached/config:
Environment variables take precedence over the config file.
Quick start
Fetch a Slack thread by pasting its permalink URL:
Display the cached thread:
Fetch all workspace users and channels:
Cache location
The SQLite database is stored at ~/.cache/slack-cached/threads.db by default, following the XDG base directory specification. Override with --db: