setup

Install slk in three steps.

From zero to a connected workspace in about two minutes.

1. Install the binary

VERSION=$(curl -fsSL https://api.github.com/repos/gammons/slk/releases/latest | grep -oE '"tag_name": *"v[^"]+"' | grep -oE 'v[0-9]+\.[0-9]+\.[0-9]+' | sed 's/^v//')
# Apple Silicon
curl -fsSL "https://github.com/gammons/slk/releases/latest/download/slk_${VERSION}_darwin_arm64.tar.gz" | tar xz
# Intel
curl -fsSL "https://github.com/gammons/slk/releases/latest/download/slk_${VERSION}_darwin_x86_64.tar.gz" | tar xz

sudo mv slk /usr/local/bin/
Verify your download (optional)
curl -fsSLO https://github.com/gammons/slk/releases/latest/download/checksums.txt
sha256sum -c checksums.txt --ignore-missing

2. Grab your browser tokens

slk authenticates by re-using your existing Slack browser session — no Slack App, no OAuth setup. You'll need two values from your browser's DevTools.

The d cookie

  1. Open app.slack.com and sign in.
  2. Open DevTools (F12 or Cmd+Option+I).
  3. Application tab → Cookies → https://app.slack.com.
  4. Find the cookie named d. Copy its value.
screenshot: DevTools cookies panel with the d cookie highlighted

The xoxc token

In the DevTools Console, paste this and hit enter:

Object.entries(JSON.parse(localStorage.localConfig_v2).teams).forEach(([id,t]) => console.log(t.name, t.token))

You'll see one line per workspace. Copy the xoxc-… token for the workspace you want.

screenshot: console output with workspace name and xoxc token

3. Add your workspace

slk --add-workspace

You'll be prompted for the d cookie and xoxc token. Paste them in. slk will verify the credentials, fetch your channels, and you're connected.

To add another workspace later, run slk --add-workspace again. To switch between connected workspaces inside slk, press 19 or Ctrl+w.

Troubleshooting