opencode-slack-integration
Installation
SKILL.md
opencode Slack integration
Run this bridge beside opencode serve. Each channel thread gets one opencode session; each DM channel gets one persistent session. Permission approval is limited to explicitly allowlisted Slack users.
Requirements
- Node 22 (
>=22 <23). Node 26 breaks Bolt Socket Mode. opencode serve --port 4096 --hostname 127.0.0.1with a usable model.- A Slack app created from
manifest.json, installed in the target workspace, with Socket Mode enabled. - Both DMs and “Allow users to send messages from the Messages tab” enabled under App Home.
SLACK_ALLOWED_USERSset to one or more trusted Slack user IDs. Empty means no users are allowed.
Configure and run
Create a mode-600 env file at ~/.env.d/opencode-slack.env: