/slack-channel:configure
Overview
Configure the Slack channel with its bot and app-level tokens. This is the only
token-writing path: validate prefixes, write .env with owner-only
permissions, never echo secrets, and return control to the install walkthrough.
Prerequisites
- A Slack app already created (via
/slack-channel:installStep 1 or
manually at api.slack.com/apps) with:
- the Bot User OAuth Token (
xoxb-...) from OAuth & Permissions, and - the App-Level Token (
xapp-..., scopeconnections:write) from
Socket Mode settings.
- A writable home directory — state lives at
~/.claude/channels/slack/.
Usage
Pass both tokens as arguments, bot token first. Obtain them directly from the
Slack app dashboard and avoid shell history or shared transcripts:
/slack-channel:configure <xoxb-bot-token> <xapp-app-token>
Authentication
- The
xoxb-Bot User OAuth Token represents the installed bot and authorizes
Web API calls within its granted bot scopes.
- The
xapp-app-level token represents the Slack app and requires
connections:write to open the Socket Mode WebSocket.
- Prefix checks establish token type, not validity.
install doctorverifies
liveness against Slack without printing the credential.
- Store tokens only in
~/.claude/channels/slack/.env; never commit them or
include them in output, logs, screenshots, or issue reports.