Skip to main content

the default mode of degenerate communication.

Project description

clacks

the default mode of degenerate communication.

Installation

Recommended - install globally with uv (best for use with coding agents like Claude Code, Cursor):

uv tool install slack-clacks

Alternative - run directly without installation:

uvx --from slack-clacks clacks

Alternative - works with pip, poetry, or any package manager:

pip install slack-clacks

Authentication

Authenticate via OAuth:

clacks auth login -c <context-name>

Authentication Modes

clacks supports three authentication modes:

clacks mode (default): Full workspace access via OAuth

clacks auth login --mode clacks

Permissions: channels, groups, DMs, MPIMs, files, search

clacks-lite mode: Secure, DM-focused access via OAuth

clacks auth login --mode clacks-lite

Permissions: DMs, MPIMs, reactions only

cookie mode: Browser session authentication

clacks auth login --mode cookie

Extract xoxc token and d cookie from browser. No OAuth app needed. See docs/cookie-auth.md for extraction instructions.

Use clacks-lite for security-conscious environments where channel access isn't needed. Use cookie mode for quick testing or when OAuth is impractical. Operations requiring unavailable scopes will fail with a clear error message and re-authentication instructions.

OAuth requires HTTPS. Generate a self-signed certificate:

clacks auth cert generate

View current authentication status:

clacks auth status

Revoke authentication:

clacks auth logout

Configuration

Multiple authentication contexts supported. Initialize configuration:

clacks config init

List available contexts:

clacks config contexts

Switch between contexts:

clacks config switch -C <context-name>

View current configuration:

clacks config info

Messaging

Send

Send to channel:

clacks send -c "#general" -m "message text"
clacks send -c "C123456" -m "message text"

Send direct message:

clacks send -u "@username" -m "message text"
clacks send -u "U123456" -m "message text"

Reply to thread:

clacks send -c "#general" -m "reply text" -t "1234567890.123456"

Read

Read messages from channel:

clacks read -c "#general"
clacks read -c "#general" -l 50

Read direct messages:

clacks read -u "@username"

Read thread:

clacks read -c "#general" -t "1234567890.123456"

Read specific message:

clacks read -c "#general" -m "1234567890.123456"

Recent

View recent messages across all conversations:

clacks recent
clacks recent -l 50

Output

All commands output JSON to stdout. Redirect to file:

clacks auth status -o output.json

Requirements

  • Python >= 3.13
  • Slack workspace admin approval for OAuth app installation

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

slack_clacks-0.3.1.tar.gz (44.9 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

slack_clacks-0.3.1-py3-none-any.whl (24.5 kB view details)

Uploaded Python 3

File details

Details for the file slack_clacks-0.3.1.tar.gz.

File metadata

  • Download URL: slack_clacks-0.3.1.tar.gz
  • Upload date:
  • Size: 44.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for slack_clacks-0.3.1.tar.gz
Algorithm Hash digest
SHA256 1a51fadb2ef98c5e3f05e26b8dfc33de5fe81ce37a7895a42be6dc77564cb0b2
MD5 3899e8f4618c1f6d0c75e09bb176bd93
BLAKE2b-256 7c61d961e89c0d749ee10e030cb43b105502d0d208a79e37b5f81285e35bef4b

See more details on using hashes here.

File details

Details for the file slack_clacks-0.3.1-py3-none-any.whl.

File metadata

  • Download URL: slack_clacks-0.3.1-py3-none-any.whl
  • Upload date:
  • Size: 24.5 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for slack_clacks-0.3.1-py3-none-any.whl
Algorithm Hash digest
SHA256 dda2fe043b9da6edcfd177c83d6d4f4110ebf704673d4cc92179423a7f6f8943
MD5 153d005c1f8c1f16565d1be30e85dc95
BLAKE2b-256 79f9309c4ce6095b878419c0398f95e7b3f106505773fe6f1cb94f11d8d0c562

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page