Slack 助手
- 作者仓库星标 4
- 作者仓库 slack-personal
slack-personal
Personal Slack workspace access via extracted session tokens (xoxc- + xoxd-). No Slack app creation or workspace admin approval needed.
Setup
One-time: bash scripts/setup.sh
Three auth methods:
- Auto-extract from Slack desktop app — default, zero interaction (macOS/Linux, app must be closed)
- Browser extraction (guided DevTools steps)
- Manual paste (if you already have tokens)
uv pins Python 3.11 automatically (needed for slacktokens LevelDB dep).
Credentials stored at ~/.config/slack-personal/credentials.json (mode 600).
CLI: scripts/sg.py
# Auth
sg auth # auto-extract from desktop app
sg auth --browser # browser extraction guide
sg auth --manual # paste tokens manually
# Browse
sg workspaces # list accessible workspaces
sg channels [--limit N] # list all channels with unread counts
sg info [channel-id] # channel details or self info
# Read
sg read <channel-id> [--limit 20] # read messages
sg search "query" [--sort timestamp] # search across everything
sg unread [--limit 30] # unread summary
# Files
sg files [--channel C] [--limit 20] # list shared files
sg download <file-url> [-o dir] # download a file
# Export
sg export <channel-id> [--since 7d] [-o file.md]
Channel identifiers
Use channel IDs (from sg channels). Format: C... (public), G... (private/group DM), D... (DM).
Safety
- Read-only — no send/post/delete commands
- Session tokens = full account access. Never expose credentials.json
- Uses unsupported auth method (session tokens, not OAuth). Works but not officially blessed by Slack
- Token valid ~1 year (d cookie TTL). Re-extract when expired
Rate limits
Built-in retry on 429. Tier 2 methods (search): 20/min. Tier 3 (history): 50/min.
Integration with OpenClaw
cd /path/to/slack-personal && uv run sg search "keyword" --limit 10
cd /path/to/slack-personal && uv run sg unread- 流狐分类
- 工程开发
- 作者声明 Agent
- 未找到明确声明;不据此推断已兼容或已测试
- 静态检查
- 88 / 100 · 启发式扫描,不代表运行安全
- 作者 / 版本 / 许可
- @000alen · 未声明 license
- 流狐 Token 估算
- 低消耗
- 流狐接入估算
- 即装即用
- 是否需要外部 API Key
- 未发现要求
- 检测到的系统要求
- macOS · Linux
- 底层运行要求
- Python >=3.11
- 检测到的文件与系统行为
-
- 只读
- 允许写入 / 修改
- 检测到的网络行为
- 仅限本地
- 安装命令数
- 无(仅作为资料)
档案由构建时根据 SKILL.md 与安装命令自动衍生,可能与作者实际意图存在差异。
需要注意: 未限定 allowed-tools,默认拥有全部工具权限。
作者没有在当前 SKILL.md 中定义固定输出样例。 One-time: bash scripts/setup.sh Three auth methods: Auto-extract from Slack desktop app — default, zero interaction (macOS/Linux, app must be closed)
CLI: scripts/sg.py
Use channel IDs (from sg channels). Format: C... (public), G... (private/group DM), D... (DM).
Read-only — no send/post/delete commands Session tokens = full account access. Never expose credentials.json Uses unsupported auth method (session tokens, not OAuth). Works but not officially blessed by Slack
Built-in retry on 429. Tier 2 methods (search): 20/min. Tier 3 (history): 50/min.
Integration with OpenClaw
# slack-personal
Personal Slack workspace access via extracted session tokens (`xoxc-` + `xoxd-`). No Slack app creation or workspace admin approval needed.
## Setup
One-time: `bash scripts/setup.sh`
Three auth methods:
1. **Auto-extract** from Slack desktop app — default, zero interaction (macOS/Linux, app must be closed)
2. **Browser extraction** (guided DevTools steps)
3. **Manual paste** (if you already have tokens)
uv pins Python 3.11 automatically (needed for slacktokens LevelDB dep).
Credentials stored at `~/.config/slack-personal/credentials.json` (mode 600).
## CLI: `scripts/sg.py`
```bash
# Auth
sg auth # auto-extract from desktop app
sg auth --browser # browser extraction guide
sg auth --manual # paste tokens manually
# Browse
sg workspaces # list accessible workspaces
sg channels [--limit N] # list all channels with unread counts
sg info [channel-id] # channel details or self info
# Read
sg read <channel-id> [--limit 20] # read messages
sg search "query" [--sort timestamp] # search across everything
sg unread [--limit 30] # unread summary
# Files
sg files [--channel C] [--limit 20] # list shared files
sg download <file-url> [-o dir] # download a file
# Export
sg export <channel-id> [--since 7d] [-o file.md]
```
## Channel identifiers
Use channel IDs (from `sg channels`). Format: `C...` (public), `G...` (private/group DM), `D...` (DM).
## Safety
- **Read-only** — no send/post/delete commands
- Session tokens = full account access. Never expose credentials.json
- Uses unsupported auth method (session tokens, not OAuth). Works but not officially blessed by Slack
- Token valid ~1 year (d cookie TTL). Re-extract when expired
## Rate limits
… 作者原文负责流程事实;流狐只索引当前章节、要点、文件与命令。
章节 -> Setup → CLI: scripts/sg.py → Channel identifiers → Safety → Rate limits → Integration with OpenClaw
要点 -> Auto-extract · Browser extraction · Manual paste · Read-only
文件/命令 -> xoxc- · xoxd- · bash scripts/setup.sh · ~/.config/slack-personal/credentials.json · scripts/sg.py · sg channels · C... · G...
内容 SHA-256 -> 6e39a18a9e59
原文结构
适用与边界
原文中的明确线索
xoxc-、xoxd-、bash scripts/setup.sh、~/.config/slack-personal/credentials.json、scripts/sg.py、sg channels、C...、G...