Connect Microsoft Teams

TL;DR: Create an Azure Bot, enable Teams channel, copy the token, run openclaw channels login teams --token YOUR_TOKEN, and invite the bot.

Applies to: Windows, macOS, Linux
Audience: Power users, developers, security-conscious, enterprise
Last updated: 2026-02-23

power-user teams channels cli

Table of contents

  1. Create Azure Bot
  2. Enable Teams Channel
  3. Get Bot Token
  4. Login Command
  5. Invite the Bot
  6. Next Steps
  7. FAQ

Create Azure Bot

  1. Go to Azure Portal
  2. Search for “Azure Bot” and click “Create”
  3. Fill in:
    • Bot handle: Unique name
    • Subscription: Choose your Azure subscription
    • Resource group: Create or select
    • Pricing tier: Free (F0) is fine to start
  4. Click “Review + create”, then “Create”

Enable Teams Channel

  1. Once deployed, go to the bot resource
  2. In the left menu, click “Channels”
  3. Click the Microsoft Teams icon
  4. Click “Save”

Get Bot Token

  1. In the bot resource, go to “Configuration”
  2. Copy the Microsoft App ID
  3. Click “Manage” next to the App ID
  4. Under “Certificates & secrets”, create a new client secret
  5. Copy the secret value (you won’t see it again)

Login Command

Run the Teams login command:

openclaw channels login teams --token YOUR_TOKEN

Replace YOUR_TOKEN with the App ID and secret combined as a JWT or use the Bot Framework token if available.

Invite the Bot

  1. Open Microsoft Teams
  2. Click “Apps” > “Manage your apps” > “Upload an app”
  3. Upload the manifest provided by Azure (download from bot resource)
  4. Add the bot to chats or channels

Next Steps

FAQ

Q: Do I need an Azure subscription?
A: Yes. A free tier is available for testing.

Q: Can I limit which teams the bot joins?
A: Yes. Configure channels.teams.allowTeams in openclaw.json.

Q: What if the bot doesn’t respond?
A: Ensure it’s added to the team/channel and has permissions. Check Azure logs.

Q: Can I use adaptive cards?
A: Yes. Configure in the bot or via skills.

Q: How do I disconnect?
A: Run openclaw channels logout teams.

Recommended next

Connect Google Chat