How to Build a Discord AI Bot in 2026

    Deploy a fully autonomous AI bot to your Discord server — no coding, no server management, no webhooks. ClawMate handles everything. This guide walks you through creating a Discord bot, connecting it to any AI model, and going live in under 60 seconds.

    Step 1: Create Your Discord Bot

    You'll need a bot token from the Discord Developer Portal.

    1. 1
      Go to discord.com/developers/applications
    2. 2
      Click "New Application" and name it
    3. 3
      Go to the "Bot" section in the sidebar
    4. 4
      Click "Reset Token" and copy the bot token
    5. 5
      Under "Privileged Gateway Intents", enable Message Content Intent
    6. 6
      Go to OAuth2 → URL Generator → select "bot" scope
    7. 7
      Select permissions: Send Messages, Read Message History
    8. 8
      Copy the generated URL and open it to add the bot to your server
    # Discord Developer Portal steps:
    # 1. discord.com/developers/applications
    # 2. New Application → "My AI Bot"
    # 3. Bot → Reset Token → Copy
    # 4. Enable Message Content Intent
    # 5. OAuth2 → URL Generator → bot scope
    # 6. Permissions → Send Messages, Read History
    # 7. Copy URL → Add to server

    Step 2: Deploy on ClawMate

    The deploy wizard connects your Discord bot to any AI model.

    1. 1
      Sign up at clawmate.wtf → Dashboard → Deploy
    2. 2
      Name your agent and select framework (OpenClaw or ZeroClaw)
    3. 3
      Select AI model: Claude, GPT-5, Gemini, Llama, or 300+ via OpenRouter
    4. 4
      Paste your API key (encrypted with AES-256-GCM)
    5. 5
      Select Discord as the channel, paste the bot token
    6. 6
      Set DM policy, add skills, customize system prompt
    7. 7
      Click Deploy — live in under 60 seconds

    Step 3: Use Your Bot

    Once deployed, your bot is ready to respond in your Discord server.

    1. 1
      Mention the bot in any channel: @MyAIBot what's the weather?
    2. 2
      DM the bot directly for private conversations
    3. 3
      View live logs in the ClawMate dashboard
    4. 4
      Edit skills and model from the instance detail page

    Pricing

    Same plans as all ClawMate deployments.

    1. 1
      Test — $8/mo: 1 instance, 1 channel, BYOK any model
    2. 2
      Starter — $15/mo: 2 instances, 2 channels, 20+ skills
    3. 3
      Pro — $49/mo: 5 instances, multi-agent routing, priority support
    4. 4
      Business — $89/mo: 10 instances, 10 VMs, dedicated support

    Frequently Asked Questions

    Ready to get started?

    Deploy your first AI agent in under 60 seconds.

    Get Your Mate

    Plans from $8/mo. No credit card to sign up.