The two tokens
A Socket Mode app uses two tokens, and Kura-chan needs both.
| Token | Looks like | What it’s for |
|---|---|---|
| Bot token | xoxb-… | The bot’s identity — posting messages, reading files, running commands |
| App-level token | xapp-… | The Socket Mode connection itself (scope connections:write) |
You generate them in two different places in the Slack app settings. Do this right after creating the app.
1 · Generate the App-level token (xapp-…)
Section titled “1 · Generate the App-level token (xapp-…)”- In your app, open Settings → Basic Information.
- Scroll to App-Level Tokens → Generate Token and Scopes.
- Give it any name (e.g.
socket), add theconnections:writescope, and Generate. - Copy the
xapp-…value. It’s shown only once — keep the tab open until you’ve pasted it.
2 · Install the app and copy the Bot token (xoxb-…)
Section titled “2 · Install the app and copy the Bot token (xoxb-…)”- Open Settings → Install App.
- Click Install to your workspace and approve the permissions.
- Copy the Bot User OAuth Token — the value starting
xoxb-….
3 · Paste both tokens into Kura-chan
Section titled “3 · Paste both tokens into Kura-chan”In the dashboard, go to Channels → Slack:
- Paste the Bot token into the
xoxb-…field. - Paste the App-level token into the
xapp-…field. - Click Connect. On success the panel shows your workspace name and the bot handle.
Once connected, Verify & troubleshooting confirms it actually works.