How to Run Clawdbot Locally and Control It from Discord
Clawdbot
Clears your inbox, sends emails, manages your calendar, checks you in for flights. All from WhatsApp, Telegram, or any chat app you already use.
Docs https://docs.clawd.bot/start/getting-started
Supported platforms
- Telegram
- Discord
- Slack
- Signal
- iMessage
- Claude
- GPT
- Spotify
- Hue
- Obsidian
- Browser
- Gmail
- GitHub
Install Clawdbot
requirements
- Nodejs v22+
pnpm(recommended) Unfortunately,bunis not recommended
Step 1: Install Nodejs
# Download and install nvm:
curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.40.3/install.sh | bash
# in lieu of restarting the shell
\. "$HOME/.nvm/nvm.sh"
# Download and install Node.js:
nvm install 25
# Verify the Node.js version:
node -v # Should print "v25.4.0".
# Install Corepack:
npm install -g corepack
# Download and install pnpm:
corepack enable pnpm
# Verify pnpm version:
pnpm -v
https://nodejs.org/en/download/current
mise install nodejs 22.22.0
Step 2: Install Clawdbod
curl -fsSL https://clawd.bot/install.sh | bash
# version check
clawdbot -v
2026.1.23-1
Step 3: Generate a Discord bot token
Go to https://discord.com/developers/applications and create a new application. In this post, I name Clawdbot.
Go to Bot section in the sidebar and turn on the following
.
Then click Reset Token, and you can get a bot token. You will need to copy the token for onboarding.
Then go to OAuth2,
Step 4: Clawdbot onboarding
clawdbot onboard --install-daemon
๐ฆ Clawdbot 2026.1.23-1 (c8afa82)
It's not "failing," it's "discovering new ways to configure the same thing wrong."
โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ
โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ
โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ
โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ
โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ
๐ฆ FRESH DAILY ๐ฆ
โ Clawdbot onboarding
โ
โ Security โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโฎ
โ โ
โ Please read: https://docs.clawd.bot/security โ
โ โ
โ Clawdbot agents can run commands, read/write files, โ
โ and act through any tools you enable. They can only โ
โ send messages on channels you configure (for example, โ
โ an account you log in on this machine, or a bot โ
โ account like Slack/Discord). โ
โ โ
โ If youโre new to this, start with the sandbox and โ
โ least privilege. It helps limit what an agent can do โ
โ if itโs tricked or makes a mistake. โ
โ Learn more: https://docs.clawd.bot/sandboxing โ
โ โ
โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโฏ
โ
โ I understand this is powerful and inherently risky.
Continue?
โ Yes
โ
โ Onboarding mode
โ QuickStart
โ
โ QuickStart โโโโโโโโโโโโโโโโโโโโโโโโโโฎ
โ โ
โ Gateway port: 18789 โ
โ Gateway bind: Loopback (127.0.0.1) โ
โ Gateway auth: Token (default) โ
โ Tailscale exposure: Off โ
โ Direct to chat channels. โ
โ โ
โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโฏ
โ
โ Model/auth provider
โ OpenAI
โ
โ OpenAI auth method
โ OpenAI Codex OAuth (Codex CLI)
โ
โ Model configured โโโโโโโโโโโโโโโโโโโโโโโโโโโฎ
โ โ
โ Default model set to openai-codex/gpt-5.2 โ
โ โ
โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโฏ
โ
โ Default model
โ Keep current (openai-codex/gpt-5.2)
โ
โ Channel status โโโโโโโโโโโโโโโโโโโโโโโโโโโโโฎ
โ โ
โ Telegram: not configured โ
โ WhatsApp: not configured โ
โ Discord: not configured โ
โ Slack: not configured โ
โ Signal: not configured โ
โ iMessage: not configured โ
โ Nostr: install plugin to enable โ
โ Microsoft Teams: install plugin to enable โ
โ Mattermost: install plugin to enable โ
โ Nextcloud Talk: install plugin to enable โ
โ Matrix: install plugin to enable โ
โ BlueBubbles: install plugin to enable โ
โ Zalo: install plugin to enable โ
โ Zalo Personal: install plugin to enable โ
โ Tlon: install plugin to enable โ
โ โ
โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโฏ
โ
โ How channels work โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโฎ
โ โ
โ DM security: default is pairing; unknown DMs get a โ
โ pairing code. โ
โ Approve with: clawdbot pairing approve <channel> โ
โ <code> โ
โ Public DMs require dmPolicy="open" + allowFrom=["*"]. โ
โ Multi-user DMs: set โ
โ session.dmScope="per-channel-peer" to isolate โ
โ sessions. โ
โ Docs: โ
โ start/pairi โ
โ ng โ
โ โ
โ Telegram: simplest way to get started โ register a โ
โ bot with @BotFather and get going. โ
โ WhatsApp: works with your own number; recommend a โ
โ separate phone + eSIM. โ
โ Discord: very well supported right now. โ
โ Slack: supported (Socket Mode). โ
โ Signal: signal-cli linked device; more setup (David โ
โ Reagans: "Hop on Discord."). โ
โ iMessage: this is still a work in progress. โ
โ Nostr: Decentralized protocol; encrypted DMs via โ
โ NIP-04. โ
โ Microsoft Teams: Bot Framework; enterprise support. โ
โ Mattermost: self-hosted Slack-style chat; install the โ
โ plugin to enable. โ
โ Nextcloud Talk: Self-hosted chat via Nextcloud Talk โ
โ webhook bots. โ
โ Matrix: open protocol; install the plugin to enable. โ
โ BlueBubbles: iMessage via the BlueBubbles mac app + โ
โ REST API. โ
โ Zalo: Vietnam-focused messaging platform with Bot โ
โ API. โ
โ Zalo Personal: Zalo personal account via QR code โ
โ login. โ
โ Tlon: decentralized messaging on Urbit; install the โ
โ plugin to enable. โ
โ โ
โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโฏ
โ
โ Select channel (QuickStart)
โ Discord (Bot API)
โ
โ Discord bot token โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโฎ
โ โ
โ 1) Discord Developer Portal โ Applications โ New โ
โ Application โ
โ 2) Bot โ Add Bot โ Reset Token โ copy token โ
โ 3) OAuth2 โ URL Generator โ scope 'bot' โ invite to โ
โ your server โ
โ Tip: enable Message Content Intent if you need โ
โ message text. (Bot โ Privileged Gateway Intents โ โ
โ Message Content Intent) โ
โ Docs: โ
โ discord โ
โ โ
โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโฏ
03:41:11 [agents/auth-profiles] synced openai-codex credentials from codex cli
โ
โ Enter Discord bot token
โ <Discord bot token>
โ
โ Configure Discord channels access?
โ Yes
โ
โ Discord channels access
โ Open (allow all channels)
โ
โ Selected channels โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโฎ
โ โ
โ Discord โ very well supported right now. Docs: โ
โ discord โ
โ ]8;; โ
โ โ
โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโฏ
Updated ~/.clawdbot/clawdbot.json
Workspace OK: ~/clawd
Sessions OK: ~/.clawdbot/agents/main/sessions
โ
โ Skills status โโโโโโโโโโโโโฎ
โ โ
โ Eligible: 10 โ
โ Missing requirements: 39 โ
โ Blocked by allowlist: 0 โ
โ โ
โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโฏ
โ
โ Configure skills now? (recommended)
โ Yes
โ
โ Preferred node manager for skill installs
โ npm
โ
โ Install missing skill dependencies
โ Skip for now
โ
โ Set GOOGLE_PLACES_API_KEY for goplaces?
โ No
โ
โ Set GOOGLE_PLACES_API_KEY for local-places?
โ No
โ
โ Set GEMINI_API_KEY for nano-banana-pro?
โ No
โ
โ Set OPENAI_API_KEY for openai-image-gen?
โ No
โ
โ Set OPENAI_API_KEY for openai-whisper-api?
โ No
โ
โ Set ELEVENLABS_API_KEY for sag?
โ No
โ
โ Hooks โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโฎ
โ โ
โ Hooks let you automate actions when agent commands โ
โ are issued. โ
โ Example: Save session context to memory when you โ
โ issue /new. โ
โ โ
โ Learn more: https://docs.clawd.bot/hooks โ
โ โ
โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโฏ
โ
โ Enable hooks?
โ Skip for now
โ
โ Gateway service runtime โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโฎ
โ โ
โ QuickStart uses Node for the Gateway service (stable โ
โ + supported). โ
โ โ
โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโฏ
โ
โ Installing Gateway serviceโฆ
Installed LaunchAgent: /Users/koji/Library/LaunchAgents/com.clawdbot.gateway.plist
Logs: /Users/koji/.clawdbot/logs/gateway.log
โ Gateway service installed
โ
โ
Health check failed: gateway closed (1006 abnormal closure (no close frame)): no close reason
Gateway target: ws://127.0.0.1:18789
Source: local loopback
Config: /Users/koji/.clawdbot/clawdbot.json
Bind: loopback
โ
โ Health check help โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโฎ
โ โ
โ Docs: โ
โ https://docs.clawd.bot/gateway/health โ
โ https://docs.clawd.bot/gateway/troubleshooting โ
โ โ
โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโฏ
Missing Control UI assets. Build them with `pnpm ui:build` (auto-installs UI deps).
โ
โ Optional apps โโโโโโโโโโโโโโโโโโโโโโโโโฎ
โ โ
โ Add nodes for extra features: โ
โ - macOS app (system + notifications) โ
โ - iOS app (camera/canvas) โ
โ - Android app (camera/canvas) โ
โ โ
โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโฏ
โ
โ Control UI โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโฎ
โ โ
โ Web UI: http://127.0.0.1:18789/ โ
โ Web UI (with token): โ
โ http://127.0.0.1:18789/?token=2da11cb64b3563eeac74c45 โ
โ f555882108610c614ce69d2db โ
โ Gateway WS: ws://127.0.0.1:18789 โ
โ Gateway: not detected (gateway closed (1006 abnormal โ
โ closure (no close frame)): no close reason) โ
โ Docs: https://docs.clawd.bot/web/control-ui โ
โ โ
โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโฏ
โ
โ Workspace backup โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโฎ
โ โ
โ Back up your agent workspace. โ
โ Docs: https://docs.clawd.bot/concepts/agent-workspace โ
โ โ
โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโฏ
โ
โ Security โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโฎ
โ โ
โ Running agents on your computer is risky โ harden โ
โ your setup: https://docs.clawd.bot/security โ
โ โ
โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโฏ
โ
โ Dashboard ready โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโฎ
โ โ
โ Dashboard link (with token): โ
โ http://127.0.0.1:18789/?token=2da11cb64b3563eeac74c45 โ
โ f555882108610c614ce69d2db โ
โ Opened in your browser. Keep that tab to control โ
โ Clawdbot. โ
โ โ
โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโฏ
โ
โ Web search (optional) โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโฎ
โ โ
โ If you want your agent to be able to search the web, โ
โ youโll need an API key. โ
โ โ
โ Clawdbot uses Brave Search for the `web_search` tool. โ
โ Without a Brave Search API key, web search wonโt โ
โ work. โ
โ โ
โ Set it up interactively: โ
โ - Run: clawdbot configure --section web โ
โ - Enable web_search and paste your Brave Search API โ
โ key โ
โ โ
โ Alternative: set BRAVE_API_KEY in the Gateway โ
โ environment (no config changes). โ
โ Docs: https://docs.clawd.bot/tools/web โ
โ โ
โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโฏ
โ
โ What now โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโฎ
โ โ
โ What now: https://clawd.bot/showcase ("What People โ
โ Are Building"). โ
โ โ
โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโฏ
โ
โ Onboarding complete. Dashboard opened with your token; keep that tab to control Clawdbot.
Step 5: Check Clawdbot gateway status
clawdbot gateway status
๐ฆ Clawdbot 2026.1.23-1 (c8afa82)
If it works, it's automation; if it breaks, it's a "learning opportunity."
โ
โ
Service: LaunchAgent (loaded)
File logs: /tmp/clawdbot/clawdbot-2026-01-25.log
Command: /usr/local/bin/node /Users/koji/.npm-global/lib/node_modules/clawdbot/dist/entry.js gateway --port 18789
Service file: ~/Library/LaunchAgents/com.clawdbot.gateway.plist
Service env: CLAWDBOT_GATEWAY_PORT=18789
Config (cli): ~/.clawdbot/clawdbot.json
Config (service): ~/.clawdbot/clawdbot.json
Gateway: bind=loopback (127.0.0.1), port=18789 (service args)
Probe target: ws://127.0.0.1:18789
Dashboard: http://127.0.0.1:18789/
Probe note: Loopback-only gateway; only local clients can connect.
Runtime: running (pid 54025, state active)
RPC probe: ok
Listening: 127.0.0.1:18789
Troubles: run clawdbot status
Troubleshooting: https://docs.clawd.bot/troubleshooting
If everything works and you have access to http://127.0.0.1:18789/, you will see the following.

Step 6: Send a message to Clawdbot
Now, itโs time to send a message to the bot on Discord.


Step 7: Use TUI (Terminal UI)
clawdbot tui
hello
Hello.
If you tell me one thing you want help with today, Iโll take
it from there.
Also: what should I call you?
connected | idle
agent main | session main (clawdbot-tui) |
openai-codex/gpt-5.2 | tokens 9.4k/400k (2%)