
Claude Code Channels is quickly becoming a practical alternative to OpenClaw for people who want to connect Claude to chat platforms without setting up a heavier agent framework. It is simpler to get running, works with a Claude subscription out of the box, and gives you a straightforward way to interact with a local Claude Code session through Discord.
In this article, you will learn how to set up Claude Code Channels locally and connect it to your Discord server. The key thing to understand from the start is that this setup depends on a live local Claude Code session. The bot only works while that session is actively running on your machine.
Before setting everything up, make sure you have:
You should also know that Channels requires a Claude.ai login and does not work with API-key-only authentication.
Note: This guide uses Windows 11 as the operating system for the setup steps and commands, but the same overall process can also be followed on Linux and macOS.
First, install Claude Code in PowerShell:
irm https://claude.ai/install.ps1 | iex
Then create a working folder, move into it, and start Claude Code:
mkdir my-channels
cd my-channels
claude
Once Claude Code opens, log in with your Claude.ai account:
/login
This step is required before Channels will work.

Claude Code's official Channels plugins use Bun, so install it next:
irm bun.sh/install.ps1 | iex
You can confirm the installation with:
bun --version
After that, inside Claude Code, run the following commands one by one in the same sequence. Each command prepares the next step, so it is important not to skip the order.
First, add the official plugin marketplace:
/plugin marketplace add anthropics/claude-plugins-official
Next, update the marketplace so Claude Code can fetch the latest available plugins:
/plugin marketplace update claude-plugins-official
Then install the official Discord plugin:
/plugin install discord@claude-plugins-official
Finally, reload plugins so the newly installed Discord integration becomes available in your current Claude Code session:
/reload-plugins
At this point, Claude Code is ready to use the Discord channel integration.
Now go to the Discord Developer Portal and create a new application. Inside that application, open the Bot section, reset the token, and copy it somewhere safe.
You also need to enable Message Content Intent, because without it the bot will not be able to read the text people send.
Next, generate an invite link for the bot using the OAuth2 URL Generator. Give it the permissions it needs, such as:
Then use the generated link to add the bot to your Discord server.
Go back to Claude Code and configure the Discord plugin using your bot token:
/discord:configure YOUR_DISCORD_BOT_TOKEN
Claude Code usually stores this token automatically in its Channels config directory.
After configuring the token, restart Claude Code with Channels enabled:
claude --channels plugin:discord@claude-plugins-official
This starts Claude Code with the Discord Channels plugin turned on.
If you do not want Claude Code to ask for permission each time it needs to use a tool or take a new action, you can start it with the auto-approve flag instead:
claude --dangerously-skip-permissions --channels plugin:discord@claude-plugins-official
This makes the session more automatic, which can be useful for a smoother Discord experience. However, you should only use this if you trust the environment and understand that Claude Code will be allowed to act without asking for confirmation each time.
Once Claude Code is running with Channels enabled, send your bot a direct message in Discord. It should reply with a pairing code.
Take that code and enter it inside Claude Code:
/discord:access pair YOUR_PAIRING_CODE
Then lock access to approved users only:
/discord:access policy allowlist
After that, you can message the bot in Discord and Claude Code will respond through your local session.

If something is not working as expected, the points below cover the most common Claude Code Channels issues and the fastest ways to fix them.
--channels plugin:discord@claude-plugins-official flag. The Discord plugin will not work unless Channels is enabled at launch./reload-plugins after installing or updating the plugin so the current session picks it up.--resume for now, because a recent Claude Code issue reports that channel plugins may not restart correctly after resume./mcp to confirm the Discord plugin is actually connected. Recent reports show cases where the plugin fails on startup even though Claude Code looks ready.If the bot stops working when you close the terminal, that is normal. Claude Code Channels only works while your local Claude Code session is still running.
Abid Ali Awan (@1abidaliawan) is a certified data scientist professional who loves building machine learning models. Currently, he is focusing on content creation and writing technical blogs on machine learning and data science technologies. Abid holds a Master's degree in technology management and a bachelor's degree in telecommunication engineering. His vision is to build an AI product using a graph neural network for students struggling with mental illness.