@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.
This 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.
Use cases
- Bug investigation and fixes: Describe a bug and ask Claude to investigate and fix it.
- Quick code reviews and modifications: Have Claude implement small features or refactor code.
- Parallel task execution: Kick off coding tasks in Slack while you continue other work, receiving notifications when complete.
Prerequisites
Before using Claude Code in Slack, ensure you have the following:Setting up Claude Code in Slack
1
Install the Claude App in Slack
A workspace administrator must install the Claude app from the Slack App Marketplace. Visit the Slack App Marketplace and click “Add to Slack” to begin the installation process.
2
Connect your Claude account
After the app is installed, authenticate your individual Claude account:
- Open the Claude app in Slack by clicking on “Claude” in your Apps section
- Open the App Home tab
- Click Connect Claude account to link your Slack account with your Claude account
- Complete the authentication flow in your browser
3
Configure cloud sessions
Ensure cloud sessions are properly configured for your account:
- Visit claude.ai/code and sign in with the same account you connected to Slack
- Connect your GitHub account if not already connected
- Authenticate at least one repository that you want Claude to work with
4
Choose your routing mode
After connecting your accounts, configure how Claude handles your messages in Slack. Open the Claude App Home in Slack to find the Routing Mode setting.
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.
5
Add Claude to channels
Claude 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.How it works
Automatic detection
In 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. You can also explicitly tell Claude to handle a request as a coding task, even if it doesn’t automatically detect it.Claude Code in Slack only works in channels (public or private). It does not work in direct messages (DMs).
Context gathering
- From threads: when you first @mention Claude in a thread, it gathers context from your messages and its own in that thread.
- 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.
Session flow
- Initiation: You @mention Claude with a coding request
- Detection: Claude analyzes your message and detects coding intent
- Session creation: A new Claude Code session is created on claude.ai/code
- Progress updates: Claude posts status updates to your Slack thread as work progresses
- 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
- Review: Click View session to see the full transcript, or Create PR to open a pull request
User interface elements
Message actions
- 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.
- 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.
- 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.
Repository selection
Claude 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.Access and permissions
User-level access
Workspace-level access
Slack workspace administrators control whether the Claude app is available in their workspace:Channel-based access control
Installing 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.
What’s accessible where
In Slack: You’ll see status updates, completion summaries, and action buttons. The full transcript is preserved and always accessible. 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, where you can continue past sessions, reference them, or create pull requests. For Enterprise and Team accounts, sessions created from Claude in Slack are automatically visible to the organization. See cloud session sharing for more details.Best practices
Writing effective requests
- Be specific: Include file names, function names, or error messages when relevant.
- Provide context: Mention the repository or project.
- Define success: Explain what “done” looks like. Should Claude write tests? Update documentation? Create a PR?
When to use Slack vs. web
Use Slack when: You want to start a task asynchronously, or you’re collaborating with teammates who need visibility. Use the web directly when: You need to upload files, want real-time interaction during development, or are working on longer, more complex tasks.Troubleshooting
“This workspace isn’t set up for Claude Tag yet”
@Claude replies in the thread with this notice instead of an answer when both of these are true:- No organization has connected your Slack workspace to Claude Tag.
- The Claude account you linked in Slack isn’t on a Pro, Max, or Ultra plan.
@Claude connect command the notice names, then follow Set up Claude Tag.
“The legacy Claude in Slack bot is retired”
The notice opens withThe 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.
If you’re an Owner of that organization, open Claude admin settings 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. If you’re not an Owner, send this entry to one.
”Claude Code is not enabled for your account”
This error means your Claude account has no cloud environment yet. Sign in at claude.ai/code once with the same account you connected to Slack and finish web onboarding, 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.Sessions not starting
- Verify your Claude account is connected in the Claude App Home
- Check that cloud sessions are enabled for your account
- Ensure you have at least one GitHub repository connected to Claude Code
Sessions from a Claude Tag channel fail to start
This entry applies to workspaces using Claude Tag. If you created the channel’s cloud environment at 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. If you’re an Owner and the environment is your own, share it with the organization from the environment selector. Otherwise, an Owner recreates it as an organization-shared environment from the Cloud environments page in admin settings. You can apply it in two ways:- Set it as the organization default at claude.ai/admin-settings/claude-code.
- Set it on the channel in the Claude Tag admin settings.
Repository not showing
- Connect the repository at claude.ai/code
- Verify your GitHub permissions for that repository
- Try disconnecting and reconnecting your GitHub account
Wrong repository selected
Include the repository name in your request for more accurate selection.Authentication errors
- Disconnect and reconnect your Claude account in the App Home
- Ensure you’re signed into the correct Claude account in your browser
Current limitations
- GitHub only: repositories must be on GitHub.
- One PR at a time: each session can create one pull request.
- Cloud session access required: users need access to cloud sessions.
Related resources
Claude Code in the cloud
Learn more about cloud sessions
Claude for Slack
General Claude for Slack documentation
Claude Tag
Organization-managed @Claude in Slack with admin-configured access
Slack App Marketplace
Install the Claude app from the Slack Marketplace
Claude Help Center
Get additional support