4 4
5# Claude Code in Slack5# Claude Code in Slack
6 6
7> Delegate coding tasks from Slack. This earlier version answers mentions only from Pro, Max, and Ultra accounts in workspaces not connected to Claude Tag.7> What to use in place of the earlier Claude Code in Slack, on Team, Enterprise, Pro, Max, and Ultra plans.
8 8
9> [!WARNING]9The earlier Claude Code in Slack is retired. In a workspace that isn't connected to Claude Tag, `@Claude` replies that the workspace isn't set up for Claude Tag.
10>
11> This earlier Claude Code in Slack answers channel @mentions only from Pro, Max, and Ultra accounts, and only in a Slack workspace that no organization has connected to [Claude Tag](https://claude.com/product/tag). Each session runs under an individual user's account. Claude Tag runs @Claude as your organization's shared identity with admin-configured access.
12>
13> * **Pro, Max, and Ultra plans:** Claude Tag isn't available on individual plans, so [set up this version](#setting-up-claude-code-in-slack) in a workspace that isn't connected to Claude Tag.
14> * **Team and Enterprise plans:** your existing Slack app and @Claude handle stay. [Set up Claude Tag](https://claude.com/docs/claude-tag/overview) for a new workspace; to move one that already uses this version, see [Migrate from the earlier Claude in Slack](https://claude.com/docs/claude-tag/admins/migrate-from-earlier).
15> * **Notice instead of an answer:** look up the [setup notice](#this-workspace-isnt-set-up-for-claude-tag-yet) or the [retirement notice](#the-legacy-claude-in-slack-bot-is-retired) that @Claude replied with.
16 10
17Claude Code in Slack brings the power of Claude Code directly into your Slack workspace. When you mention `@Claude` with a coding task, Claude automatically detects the intent and creates a Claude Code cloud session, allowing you to delegate development work without leaving your team conversations.11* **Team and Enterprise plans:** use [Claude Tag](https://claude.com/docs/claude-tag/overview) if it's in your channel. If it isn't, see [how to set it up](https://claude.com/docs/claude-tag/admins/setup-overview). To move a workspace from the earlier version, see [the migration guide](https://claude.com/docs/claude-tag/admins/migrate-from-earlier).
18 12* **Pro, Max, and Ultra plans:** Claude Tag isn't available on individual plans. Start tasks in [Projects](https://code.claude.com/docs/en/claude-projects.md) if your account has them, or in [cloud sessions](https://code.claude.com/docs/en/claude-code-on-the-web.md).
19This integration is built on the existing Claude for Slack app but adds intelligent routing to Claude Code cloud sessions for coding-related requests. Each session runs under your own Claude account, using your connected repositories and your plan limits.
20
21## Use cases
22
23* **Bug investigation and fixes**: Describe a bug and ask Claude to investigate and fix it.
24* **Quick code reviews and modifications**: Have Claude implement small features or refactor code.
25* **Parallel task execution**: Kick off coding tasks in Slack while you continue other work, receiving notifications when complete.
26
27## Prerequisites
28
29Before using Claude Code in Slack, ensure you have the following:
30
31| Requirement | Details |
32| :- | :- |
33| Claude Plan | Pro, Max, or Ultra |
34| Slack workspace | Not connected to [Claude Tag](https://claude.com/docs/claude-tag/overview) by any organization. If @Claude replies with the [retirement notice](#the-legacy-claude-in-slack-bot-is-retired), the workspace is connected |
35| Cloud sessions | [Cloud sessions](https://code.claude.com/docs/en/claude-code-on-the-web.md) are enabled for your account |
36| GitHub Account | Connected at [claude.ai/code](https://claude.ai/code) with at least one repository authenticated |
37| Slack Authentication | Your Slack account linked to your Claude account via the Claude app |
38
39## Setting up Claude Code in Slack
40
41**1. Install the Claude App in Slack**
42
43A workspace administrator must install the Claude app from the Slack App Marketplace. Visit the [Slack App Marketplace](https://slack.com/marketplace/A08SF47R6P4) and click "Add to Slack" to begin the installation process.
44
45**2. Connect your Claude account**
46
47After the app is installed, authenticate your individual Claude account:
48
491. Open the Claude app in Slack by clicking on "Claude" in your Apps section
502. Open the App Home tab
513. Click **Connect Claude account** to link your Slack account with your Claude account
524. Complete the authentication flow in your browser
53
54**3. Configure cloud sessions**
55
56Ensure cloud sessions are properly configured for your account:
57
58* Visit [claude.ai/code](https://claude.ai/code) and sign in with the same account you connected to Slack
59* Connect your GitHub account if not already connected
60* Authenticate at least one repository that you want Claude to work with
61
62**4. Choose your routing mode**
63
64After connecting your accounts, configure how Claude handles your messages in Slack. Open the Claude App Home in Slack to find the **Routing Mode** setting.
65
66| Mode | Behavior |
67| :- | :- |
68| **Code only** | Claude routes all @mentions to Claude Code sessions. Best for teams using Claude in Slack exclusively for development tasks. |
69| **Code + Chat** | Claude analyzes each message and intelligently routes between Claude Code (for coding tasks) and Claude Chat (for writing, analysis, and general questions). Best for teams who want a single @Claude entry point for all types of work. |
70
71> [!NOTE]
72>
73> In Code + Chat mode, if Claude answers in Chat but you wanted a coding session, click **Switch to code repo...** on the reply and select a repository. Claude then starts a Claude Code session with your message instead.
74
75**5. Add Claude to channels**
76
77Claude is not automatically added to any channels after installation. To use Claude in a channel, invite it by typing `/invite @Claude` in that channel. Claude can only respond to @mentions in channels where it has been added.
78
79## How it works
80
81### Automatic detection
82
83In Code + Chat routing mode, when you mention @Claude in a Slack channel or thread, Claude automatically detects whether your message is a coding task. Coding tasks go to a Claude Code cloud session. Anything else gets a regular chat reply. In Code only mode, every @mention goes to Claude Code.
84
85You can also explicitly tell Claude to handle a request as a coding task, even if it doesn't automatically detect it.
86
87> [!NOTE]
88>
89> Claude Code in Slack only works in channels (public or private). It does not work in direct messages (DMs).
90
91### Context gathering
92
93* **From threads**: when you first @mention Claude in a thread, it gathers context from your messages and its own in that thread.
94* **From channels**: when you @mention Claude directly in a channel, it looks at your recent messages and its own in that channel, and at the channel's name, topic, and description.
95
96This context helps Claude understand the problem, select the appropriate repository, and inform its approach to the task. To give Claude something a teammate wrote, such as an error report, paste its text into the message where you @mention Claude.
97
98> [!WARNING]
99>
100> When @Claude is invoked in Slack, Claude is given access to the conversation context to better understand your request. Claude may follow directions from other messages in the context, so users should make sure to only use Claude in trusted Slack conversations.
101
102### Session flow
103
1041. **Initiation**: You @mention Claude with a coding request
1052. **Detection**: Claude analyzes your message and detects coding intent
1063. **Session creation**: A new Claude Code session is created on claude.ai/code
1074. **Progress updates**: Claude posts status updates to your Slack thread as work progresses
1085. **Completion**: When finished, Claude updates its message in the thread with its final response and action buttons, and sends you a direct message linking to it
1096. **Review**: Click **View session** to see the full transcript, or **Create PR** to open a pull request
110
111## User interface elements
112
113### Message actions
114
115* **View session**: Opens the full Claude Code session in your browser where you can see all work performed, continue the session, or make additional requests.
116* **Create PR**: Opens GitHub's compare page for the session's branch, where you create the pull request. It appears on the status message Claude posted when the session started, once the session finishes.
117* **Switch to code repo...**: If Claude responds in Chat but you wanted a coding session, click this button and select a repository, and Claude starts a Claude Code session with your original request.
118
119### Repository selection
120
121Claude automatically selects a repository based on context from your Slack conversation. If Claude can't tell which repository you mean, it asks you to choose: click **Select repository** and select one from the list.
122
123## Access and permissions
124
125### User-level access
126
127| Access Type | Requirement |
128| :- | :- |
129| Claude Code Sessions | Each user runs sessions under their own Claude account |
130| Usage & Rate Limits | Sessions count against the individual user's plan limits |
131| Repository Access | Users can only access repositories they've personally connected |
132| Session History | Sessions appear in your Claude Code history on claude.ai/code |
133
134### Workspace-level access
135
136Slack workspace administrators control whether the Claude app is available in their workspace:
137
138| Control | Description |
139| :- | :- |
140| App installation | Workspace admins decide whether to install the Claude app from the Slack App Marketplace |
141| Enterprise Grid distribution | For Enterprise Grid organizations, organization admins can control which workspaces have access to the Claude app |
142| App removal | Removing the app from a workspace immediately revokes access for all users in that workspace |
143
144### Channel-based access control
145
146Installing the app doesn't add Claude to any channels. Claude responds to @mentions only in channels where it has been added; invite it with `/invite @Claude`. It works in both public and private channels. Admins can control who uses Claude Code by managing which channels Claude is invited to and who has access to those channels. This adds a layer of access control beyond workspace-level permissions.
147
148## What's accessible where
149
150**In Slack**: You'll see status updates, completion summaries, and action buttons. The full transcript is preserved and always accessible.
151
152**At claude.ai/code**: The complete Claude Code session with full conversation history, all code changes, and file operations. Sessions stay in your Claude Code history at [claude.ai/code](https://claude.ai/code), where you can continue past sessions, reference them, or create pull requests.
153
154For Enterprise and Team accounts, sessions created from Claude in Slack are
155automatically visible to the organization. See [cloud session sharing](https://code.claude.com/docs/en/claude-code-on-the-web.md#share-sessions)
156for more details.
157
158## Best practices
159
160### Writing effective requests
161
162* **Be specific**: Include file names, function names, or error messages when relevant.
163* **Provide context**: Mention the repository or project.
164* **Define success**: Explain what "done" looks like. Should Claude write tests? Update documentation? Create a PR?
165
166### When to use Slack vs. web
167
168**Use Slack when**: You want to start a task asynchronously, or you're collaborating with teammates who need visibility.
169
170**Use the web directly when**: You need to upload files, want real-time interaction during development, or are working on longer, more complex tasks.
171
172## Troubleshooting
173
174### "This workspace isn't set up for Claude Tag yet"
175
176@Claude replies in the thread with this notice instead of an answer when both of these are true:
177
178* No organization has connected your Slack workspace to [Claude Tag](https://claude.com/docs/claude-tag/overview).
179* The Claude account you linked in Slack isn't on a Pro, Max, or Ultra plan.
180
181Claude Tag is available on Team and Enterprise plans. To connect the workspace, start with the `@Claude connect` command the notice names, then follow [Set up Claude Tag](https://claude.com/docs/claude-tag/overview).
182
183### "The legacy Claude in Slack bot is retired"
184
185The notice opens with `The legacy Claude in Slack bot is retired effective October 5, 2026 and no longer responds in channels.` Your Slack workspace is connected to a Claude organization. The earlier version is still selected for the channel, the workspace, or the organization default in that organization's Claude Tag settings. The notice doesn't depend on your own plan, so Pro, Max, and Ultra accounts get it too.
186
187If you're an Owner of that organization, open [Claude admin settings](https://claude.ai/admin-settings/claude-tag) and turn on Claude Tag for the channel. To fix every channel that inherits the setting, change it on the workspace or the organization default instead. For the full move, see [Migrate from the earlier Claude in Slack](https://claude.com/docs/claude-tag/admins/migrate-from-earlier). If you're not an Owner, send this entry to one.
188
189### "Claude Code is not enabled for your account"
190
191This error means your Claude account has no cloud environment yet. Sign in at [claude.ai/code](https://claude.ai/code) once with the same account you connected to Slack and finish [web onboarding](https://code.claude.com/docs/en/web-quickstart.md#connect-github), which creates your default cloud environment or asks you to create it. The error clears on your next mention. Each user must do this individually.
192
193### Sessions not starting
194
1951. Verify your Claude account is connected in the Claude App Home
1962. Check that cloud sessions are enabled for your account
1973. Ensure you have at least one GitHub repository connected to Claude Code
198
199### Sessions from a Claude Tag channel fail to start
200
201This entry applies to workspaces using [Claude Tag](https://claude.com/docs/claude-tag/overview). If you created the channel's cloud environment at [claude.ai/code](https://claude.ai/code), it belongs to your personal account, and Claude can't start channel sessions in a personal environment. Claude Code fails the session immediately, and retrying doesn't help.
202
203If you're an Owner and the environment is your own, [share it with the organization](https://code.claude.com/docs/en/cloud-environments.md#organization-shared-environments) from the environment selector. Otherwise, an Owner recreates it as an organization-shared environment from the **Cloud environments** page in [admin settings](https://claude.ai/admin-settings).
204
205You can apply it in two ways:
206
207* Set it as the organization default at [claude.ai/admin-settings/claude-code](https://claude.ai/admin-settings/claude-code).
208* [Set it on the channel](https://claude.com/docs/claude-tag/admins/troubleshooting#channel-sessions-use-the-wrong-environment-or-can%E2%80%99t-find-one) in the Claude Tag admin settings.
209
210If you're not an Owner, send this entry to one.
211
212### Repository not showing
213
2141. Connect the repository at [claude.ai/code](https://claude.ai/code)
2152. Verify your GitHub permissions for that repository
2163. Try disconnecting and reconnecting your GitHub account
217
218### Wrong repository selected
219
220Include the repository name in your request for more accurate selection.
221
222### Authentication errors
223
2241. Disconnect and reconnect your Claude account in the App Home
2252. Ensure you're signed into the correct Claude account in your browser
226
227## Current limitations
228
229* **GitHub only**: repositories must be on GitHub.
230* **One PR at a time**: each session can create one pull request.
231* **Cloud session access required**: users need access to [cloud sessions](https://code.claude.com/docs/en/claude-code-on-the-web.md).
232
233## Related resources
234
235> [card] [Claude Code in the cloud](https://code.claude.com/docs/en/claude-code-on-the-web.md)
236>
237> Learn more about cloud sessions
238
239> [card] [Claude for Slack](https://claude.com/claude-and-slack)
240>
241> General Claude for Slack documentation
242
243> [card] [Claude Tag](https://claude.com/docs/claude-tag/overview)
244>
245> Organization-managed @Claude in Slack with admin-configured access
246
247> [card] [Slack App Marketplace](https://slack.com/marketplace/A08SF47R6P4)
248>
249> Install the Claude app from the Slack Marketplace
250
251> [card] [Claude Help Center](https://support.claude.com)
252>
253> Get additional support