mirror of
https://github.com/aljazceru/opencode.git
synced 2025-12-20 17:24:22 +01:00
@opencode-ai/slack
Slack bot integration for opencode that creates threaded conversations.
Setup
- Create a Slack app at https://api.slack.com/apps
- Enable Socket Mode
- Add the following OAuth scopes:
chat:writeapp_mentions:readchannels:historygroups:history
- Install the app to your workspace
- Set environment variables in
.env:SLACK_BOT_TOKEN- Bot User OAuth TokenSLACK_SIGNING_SECRET- Signing Secret from Basic InformationSLACK_APP_TOKEN- App-Level Token from Basic Information
Usage
# Edit .env with your Slack app credentials
bun dev
The bot will respond to messages in channels where it's added, creating separate opencode sessions for each thread.