-
Notifications
You must be signed in to change notification settings - Fork 0
Setup
slk uses your existing Slack browser session — no Slack App, no admin
approval, no OAuth flow. You'll need two things from the browser: your
xoxc token and the d cookie.
Open https://app.slack.com and sign into your workspace. Use the browser version of Slack (not the desktop app).
- Open DevTools (F12 / Cmd+Option+I)
- Go to Application → Cookies →
https://app.slack.com - Copy the value of the cookie named
d
In the DevTools Console, run:
Object.entries(JSON.parse(localStorage.localConfig_v2).teams).forEach(([id,t]) => console.log(t.name, t.token))Copy the xoxc-… token for the workspace you want.
slk --add-workspaceOr just run slk. Onboarding launches automatically when no workspaces are
configured.
slk --remove-workspaceInteractive picker. This deletes the saved token from
~/.local/share/slk/tokens/; your config.toml and SQLite cache are left
untouched.
You can add as many workspaces as you like by running slk --add-workspace
again. They all stay connected in parallel for live unread badges. Use
Ctrl+w for the picker, or 1–9 to jump directly. Configure rail order
and per-workspace settings in Configuration.
Browser-cookie tokens expire when you log out of the browser or Slack
rotates them. Re-run slk --add-workspace and you're back in business.
See the auth caveat in Tradeoffs and Non-Goals.
Getting started
Using slk
Reference