Slack
PocketPaw integrates with Slack via slack-bolt using Socket Mode. No public URL or ngrok tunnel needed — the connection is initiated from your machine.
Setup
Create a Slack app
- Go to api.slack.com/apps and create a new app
- Enable Socket Mode under Settings
- Generate an App-Level Token with
connections:writescope
Configure bot permissions
Under OAuth & Permissions, add these Bot Token Scopes:
app_mentions:readchat:writeim:historyim:readim:write
Enable events
Under Event Subscriptions, subscribe to:
app_mentionmessage.im
Install to workspace
Install the app to your workspace and copy the Bot User OAuth Token.
Configure PocketPaw
export POCKETCLAW_SLACK_BOT_TOKEN="xoxb-..."export POCKETCLAW_SLACK_APP_TOKEN="xapp-..."Start
pocketpaw --slackConfiguration
| Setting | Env Variable | Description |
|---|---|---|
| Bot token | POCKETCLAW_SLACK_BOT_TOKEN | Bot User OAuth Token (xoxb-) |
| App token | POCKETCLAW_SLACK_APP_TOKEN | App-Level Token (xapp-) |
| Allowed channels | POCKETCLAW_SLACK_ALLOWED_CHANNEL_IDS | Comma-separated channel IDs |
Features
Socket Mode
Socket Mode means:
- No public URL needed — Works behind firewalls and NAT
- No webhook server — Connection is outbound from your machine
- Low latency — WebSocket-based real-time events
Thread Support
Responses are sent as thread replies using thread_ts metadata. This keeps conversations organized in Slack channels.
Interaction Types
- @mention — Mention the bot in any channel:
@PocketPaw what time is it? - Direct message — Send a DM to the bot for private conversations
Streaming
Slack responses are buffered and the thread message is updated as tokens arrive.
Installation
curl -fsSL https://pocketpaw.xyz/install.sh | sh
# Or add the Slack extra manuallypip install pocketpaw[slack]This installs slack-bolt as an optional dependency.
Was this page helpful?