#How to make two agents work if one is offline?

1 messages ยท Page 1 of 1 (latest)

spare totem
#

I have added LM Studio agent and Clawdbot was working correctly, later, I added MiniMax with API key and subscription, but Clawdbot still asks for LM Studio agent first and then fails immediately after connection is dropped. I have set models.mode: merge when defining models, but still no luck.. What's up? Any ideas?

Maybe because I am messaging in the same chat (old session)? And I should reset my context or something?

light kettleBOT
#

To help others find answers, you can mark your question as solved via Right click solution message -> Apps -> โœ… Mark Solution

lethal horizonBOT
# spare totem I have added LM Studio agent and Clawdbot was working correctly, later, I added ...

Based on the docs, I can see what's happening here. The issue is likely session stickiness combined with how model selection works.

How Model Selection Works

Clawdbot selects models in this order:

  1. Primary model (agents.defaults.model.primary)
  2. Fallbacks (agents.defaults.model.fallbacks)
  3. Provider auth rotation within a provider

The models.mode: merge only controls whether models.json is merged with built-in providers โ€” it doesn't control which model gets priority.

The Problem

Your old session has the LM Studio auth profile pinned. Clawdbot reuses the same profile until:

  • Session reset (/new or /reset)
  • Compaction completes
  • Profile enters cooldown
#

So even though you added MiniMax, Clawdbot still tries LM Studio first because that's what the session remembers.

Solutions

Option 1: Start a New Session (Quickest)

/new

This clears the pinned profile and lets Clawdbot re-evaluate available models.

Option 2: Configure Fallbacks

Set MiniMax as primary with LM Studio as fallback:

{
  "agents": {
#
    "defaults": {
      "model": {
        "primary": "minimax/MiniMax-M2.1",
        "fallbacks": ["lmstudio/your-model-here"]
      }
    }
  }
}

Option 3: Switch in Current Session

/model minimax/MiniMax-M2.1

This overrides the primary for just that session.

#

Check Your Config

Run this to see what's actually configured:

clawdbot models status

And verify agents.defaults.model.primary points to the right model. If it's still set to LM Studio, change it to MiniMax.

The docs say: "Session stickiness keeps provider caches warm" โ€” which is exactly what's catching you here. A fresh session should solve it! ๐Ÿฆ

spare totem
lethal horizonBOT
# spare totem When entering `/new` I got "You are not authorized to use this command."

Found it! The /new command requires authorization via access groups/allowlists. The docs say:

"Slash commands and directives are only honored for authorized senders. Authorization is derived from channel allowlists/pairing plus commands.useAccessGroups."

Solutions

Option 1: Ask the Owner to Add You to the Allowlist

For Discord group chats, you need to be explicitly allowlisted in channels.discord.guilds.<guildId>.users:

{
  "channels": {
    "discord": {
      "guilds": {
        "YOUR_GUILD_ID": {
#
          "users": ["704609146166575125"],  // Your Discord user ID
          "channels": {
            "1465625381490000016": { "allow": true }
          }
        }
      }
    }
  }
}

Then restart the gateway: clawdbot gateway restart

Option 2: Switch Models Directly (No /new Needed)

Since you can't reset the session, just switch to MiniMax directly:

#
/model minimax/MiniMax-M2.1

Or if you have an alias:

/model minimax

This overrides the primary model for your current session without needing /new.

Option 3: Have the Owner Disable Access Group Enforcement

If this is a personal instance, they can set in clawdbot.json:

#
{
  "commands": {
    "useAccessGroups": false
  }
}

Then restart: clawdbot gateway restart

Note: This makes /new and other commands available to everyone who can message the bot.


Quickest fix for you: Ask the owner to either (a) add your Discord ID to the guild's users allowlist, or (b) set commands.useAccessGroups: false. Then /new will work! ๐Ÿฆ

spare totem
#

I am using Telegram. Can you give me Telegram specific config

#

@lethal horizon

lethal horizonBOT
# spare totem <@1457407575476801641>

The /new command requires authorization โ€” you're not on the allowlist for that Discord server.

Quick Fixes

Option A: Switch Models Directly (Works Now)

/model minimax/MiniMax-M2.1

This changes your session's model without needing /new.

Option B: Get Added to the Allowlist

The owner needs to add your Discord ID (704609146166575125) to the guild config in clawdbot.json:

{
#
  "channels": {
    "discord": {
      "guilds": {
        "GUILD_ID_HERE": {
          "users": ["704609146166575125"]
        }
      }
    }
  }
}

Then run clawdbot gateway restart.

Option C: Disable Access Group Enforcement (Less Secure)

#

Owner sets in clawdbot.json:

{
  "commands": {
    "useAccessGroups": false
  }
}

Then clawdbot gateway restart.


Best option for you right now: Just use /model minimax/MiniMax-M2.1 and you're done! ๐Ÿฆ

haughty sable
#

@lethal horizon installed on vps using antigravity and getting no output after wake up my friend prompt in setup

lethal horizonBOT
#
moltbot logs --follow

Look for errors about authentication, connection, or model config.

4. Run Doctor

moltbot doctor

Common VPS Issues

Antigravity on VPS:

  • Ensure you ran the OAuth login: moltbot models auth login --provider google-antigravity --set-default
  • The Gateway needs to be reachable at the IP/hostname you're accessing

Remote Access:

#
  • If accessing the UI remotely, make sure Tailscale/SSH tunnel is connected
  • The UI must point at the correct Gateway URL

Firewall:

  • Ensure port 18789 is open on the VPS

What does moltbot gateway status show? And are you accessing the dashboard locally on the VPS or remotely? ๐Ÿฆ

haughty sable
#

the vps terminal says this:

root@ClawdBot:~# moltbot gateway restart
moltbot: command not found
root@ClawdBot:~# moltbot gateway status
moltbot status
moltbot models status
moltbot: command not found
moltbot: command not found
moltbot: command not found
root@ClawdBot:~#

lethal horizonBOT
#
# Check if it's installed globally
npm list -g moltbot

# Add npm global bin to PATH
export PATH="$(npm config get prefix)/bin:$PATH"

# Or run directly
/root/.npm-global/bin/moltbot gateway restart

What to Share

Tell me:

  1. How did you install? (installer script, npm, git clone?)
#
  1. Where did you clone/install it?
  2. Run ls -la ~/ to see what's in your home directory

The most common fix is:

source ~/.bashrc  # or ~/.bash_profile
moltbot gateway restart

Or find the binary:

find /root -name "moltbot" -type f 2>/dev/null
haughty sable
#

root@ClawdBot:~# npm list -g moltbot
/usr/lib
โ””โ”€โ”€ (empty)

root@ClawdBot:~# export PATH="$(npm config get prefix)/bin:$PATH"
root@ClawdBot:~# /root/.npm-global/bin/moltbot gateway restart
-bash: /root/.npm-global/bin/moltbot: No such file or directory
root@ClawdBot:~# source ~/.bashrc # or ~/.bash_profile
moltbot gateway restart
moltbot: command not found
root@ClawdBot:~# find /root -name "moltbot" -type f 2>/dev/null
root@ClawdBot:~#

lethal horizonBOT
#
moltbot onboard

Or if you want to skip the wizard and just start the gateway:

moltbot gateway

For Antgravity (Google Models)

After installation, you'll need to:

  1. Enable the plugin: moltbot plugins enable google-antigravity-auth
  2. Login: moltbot models auth login --provider google-antigravity --set-default
#

Run the installer first and let me know if you hit any errors! ๐Ÿฆ

haughty sable
#

root@ClawdBot:~# curl -fsSL https://molt.bot/install.sh | bash
curl: (28) Failed to connect to molt.bot port 443 after 134441 ms: Couldn't connect to server

#

@lethal horizon

lethal horizonBOT
# haughty sable <@1457407575476801641>

Ping received! ๐ŸŽ‰

How did the install go? Any errors?

If Install Succeeded

Run the onboarding wizard:

moltbot onboard

If You Want to Skip Onboarding and Configure Manually

Create a minimal config first:

mkdir -p ~/.clawdbot
#
cat > ~/.clawdbot/clawdbot.json << 'EOF'
{
  agents: {
    defaults: {
      workspace: "~/clawd"
    }
  },
  channels: {
    discord: {
      enabled: true,
      token: "YOUR_DISCORD_BOT_TOKEN"
    }
  }
}
EOF
#

Then start the gateway:

moltbot gateway

What's Next?

  1. Do you have a Discord bot token? (Need one to enable Discord)
  2. Which model do you want to use? (Antigravity, OpenAI, Anthropic, MiniMax?)
  3. Are you running this on a VPS or local machine?

Let me know where you're at and I'll guide you through! ๐Ÿฆ

haughty sable
#

no i had this error
root@ClawdBot:~# curl -fsSL https://molt.bot/install.sh | bash
curl: (28) Failed to connect to molt.bot port 443 after 134441 ms: Couldn't connect to server
root@ClawdBot:~# curl -fsSL https://molt.bot/install.sh | bash
curl: (28) Failed to connect to molt.bot port 443 after 134645 ms: Couldn't connect to server
root@ClawdBot:~#

lethal horizonBOT
#

# Or run directly
node bin/moltbot.js gateway

Option 2: Try the Clawdbot Installer (Same Project)

# Same thing, different domain
curl -fsSL https://clawd.bot/install.sh | bash

Option 3: npm Install Directly

#
npm install -g moltbot

Option 4: Check DNS/Network

# Test connectivity
ping -c 3 github.com
ping -c 3 npmjs.com

# Check DNS
nslookup github.com

#

Try Option 3 first (npm install) - it's simplest!

npm install -g moltbot
moltbot gateway

Let me know what happens! ๐Ÿฆ

haughty sable
#

root@ClawdBot:~# bash
root@ClawdBot:~# npm install -g moltbot
npm warn EBADENGINE Unsupported engine {
npm warn EBADENGINE package: 'moltbot@0.1.0',
npm warn EBADENGINE required: { node: '>=24', pnpm: '>=10' },
npm warn EBADENGINE current: { node: 'v22.22.0', npm: '10.9.4' }
npm warn EBADENGINE }

added 1 package in 798ms
root@ClawdBot:~# moltbot onboard
moltbot: command not found
root@ClawdBot:~#

lethal horizonBOT
#
# Run directly without modifying PATH
$(npm config get prefix)/bin/moltbot onboard

Let me know if that works! ๐Ÿฆ

haughty sable
#

root@ClawdBot:~# npm config get prefix
/usr
root@ClawdBot:~# $(npm config get prefix)/bin/moltbot onboard
bash: /usr/bin/moltbot: No such file or directory
root@ClawdBot:~# echo 'export PATH="$(npm config get prefix)/bin:$PATH"' >> ~/.bashrc
source ~/.bashrc
moltbot onboard
moltbot: command not found
root@ClawdBot:~# $(npm config get prefix)/bin/moltbot onboard
bash: /usr/bin/moltbot: No such file or directory
root@ClawdBot:~#

#

@lethal horizon it show this root@ClawdBot:~# npm config get prefix
/usr
root@ClawdBot:~# $(npm config get prefix)/bin/moltbot onboard
bash: /usr/bin/moltbot: No such file or directory
root@ClawdBot:~# echo 'export PATH="$(npm config get prefix)/bin:$PATH"' >> ~/.bashrc
source ~/.bashrc
moltbot onboard
moltbot: command not found
root@ClawdBot:~# $(npm config get prefix)/bin/moltbot onboard
bash: /usr/bin/moltbot: No such file or directory
root@ClawdBot:~#

lethal horizonBOT
#

That doesn't look like onboarding output. Did you:

  1. Run moltbot onboard and it responded with that?
  2. Or message your bot and it replied with that?

If it's option 1 (onboarding), something went wrong.

If it's option 2 (bot replied to a message), your bot is working! But that's a weird response - did you send a message about nohl.com?


To Continue Onboarding

If onboarding didn't complete, run:

$(npm config get prefix)/bin/moltbot onboard
#

To Check Gateway Status

$(npm config get prefix)/bin/moltbot status

What were you trying to do when you saw that message? ๐Ÿฆ

lethal horizonBOT
#

# Reinstall with pnpm
pnpm add -g moltbot

# Run with pnpm
pnpm moltbot onboard

Or Run Directly from Source

# Clone and run from source
git clone https://github.com/moltbot/moltbot.git
cd moltbot
pnpm install
#
pnpm run build
pnpm moltbot onboard

Quickest path: Install pnpm and use the git clone method:

npm install -g pnpm
git clone https://github.com/moltbot/moltbot.git
cd moltbot
pnpm install
pnpm moltbot onboard
#

Let me know if you hit any errors! ๐Ÿฆ

haughty sable
#

well what now?

โ—‡ Web search (optional) โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ•ฎ
โ”‚ โ”‚
โ”‚ If you want your agent to be able to search the web, youโ€™ll need an API key. โ”‚
โ”‚ โ”‚
โ”‚ Moltbot uses Brave Search for the web_search tool. Without a Brave Search API โ”‚
โ”‚ key, web search wonโ€™t work. โ”‚
โ”‚ โ”‚
โ”‚ Set it up interactively: โ”‚
โ”‚ - Run: moltbot 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.molt.bot/tools/web โ”‚
โ”‚ โ”‚
โ”œโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ•ฏ
โ”‚
โ—‡ What now โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ•ฎ
โ”‚ โ”‚
โ”‚ What now: https://molt.bot/showcase ("What People Are Building"). โ”‚
โ”‚ โ”‚
โ”œโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ•ฏ
โ”‚
โ”” Onboarding complete. Use the tokenized dashboard link above to control Moltbot.

lethal horizonBOT
# haughty sable well what now? โ—‡ Web search (optional) โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€...

Onboarding complete! ๐ŸŽ‰ You're all set!

What to Do Next

1. Open the Dashboard

The onboarding printed a tokenized URL above. Copy/paste it into your browser to access the dashboard.

If you missed it, run:

$(npm config get prefix)/bin/moltbot dashboard

2. Start the Gateway

If it hasn't started automatically:

#
$(npm config get prefix)/bin/moltbot gateway

3. Connect a Channel (Discord, etc.)

To enable Discord, edit ~/.clawdbot/clawdbot.json:

{
  "channels": {
    "discord": {
      "enabled": true,
      "token": "YOUR_DISCORD_BOT_TOKEN"
    }
  }
}
#

Then restart:

$(npm config get prefix)/bin/moltbot gateway restart

4. Need Help?


Quick Status Check

$(npm config get prefix)/bin/moltbot status
#

What's your next goal? (Discord? WhatsApp? Telegram?) ๐Ÿฆ

haughty sable
#

root@ClawdBot:~/moltbot# $(npm config get prefix)/bin/moltbot gateway
bash: /usr/bin/moltbot: No such file or directory
root@ClawdBot:~/moltbot#

lethal horizonBOT
#
pnpm moltbot gateway

Let me know what happens! ๐Ÿฆ

haughty sable
#

15:10:12 [canvas] host mounted at http://127.0.0.1:18789/__moltbot__/canvas/ (root /root/clawd/canvas)
15:10:12 Gateway failed to start: another gateway instance is already listening on ws://127.0.0.1:18789
If the gateway is supervised, stop it with: moltbot gateway stop
15:10:12 Port 18789 is already in use.
15:10:12 - pid 15448 root: clawdbot-gateway (127.0.0.1:18789)
15:10:12 - Another process is listening on this port.
15:10:12 Gateway service appears enabled. Stop it first.
15:10:12 Tip: moltbot gateway stop
15:10:12 Or: systemctl --user stop moltbot-gateway.service
โ€‰ELIFECYCLEโ€‰ Command failed with exit code 1.
root@ClawdBot:~/moltbot#

lethal horizonBOT
#

This will open the tokenized URL in your browser.


Quick check:

pnpm moltbot status

The gateway is working - you just needed to find the right command! ๐Ÿฆ

haughty sable
#

but im hosting on a vps not local

lethal horizonBOT
# haughty sable but im hosting on a vps not local

No problem! The gateway is running on your VPS. Here are ways to access it remotely:

Option 1: SSH Tunnel (Quickest)

From your local machine:

# Local port 18789 โ†’ VPS port 18789
ssh -N -L 18789:127.0.0.1:18789 root@YOUR_VPS_IP

Then open http://127.0.0.1:18789 in your browser.

Option 2: Tailscale (Recommended for Always-On)

  1. Install Tailscale on the VPS: curl -fsSL https://tailscale.com/install.sh | bash
  2. Authenticate: tailscale up
#
  1. Access via your Tailscale IP (100.x.x.x)

Option 3: Change Gateway Bind (Less Secure)

Edit ~/.clawdbot/clawdbot.json on VPS:

{
  "gateway": {
    "bind": "0.0.0.0"
  }
}

Then restart:

#
pnpm moltbot gateway restart

โš ๏ธ Security warning: This exposes the gateway publicly. Add authentication!


For a VPS, I'd recommend Option 1 (SSH tunnel) for security.

Do you have SSH access set up from your local machine? ๐Ÿฆ

finite ibex
#

adter migrating from clawdbot to moltbot, the commands are still using clawdbot, is this normal?

lethal horizonBOT
#

If you have both installed, the one that works is correct. If you want to use a specific one:

For clawdbot (current CLI):

# Find it
which clawdbot

# If not found, reinstall
npm install -g clawdbot

For moltbot (old name):

# Find it
which moltbot
#
# If not found, that's expected - it's now clawdbot

The Bottom Line

clawdbot is the current CLI name. Use clawdbot commands from now on!

clawdbot status
clawdbot gateway

The project was renamed back (or the rename was reversed). This happened in a recent release - check the changelog for details. ๐Ÿฆ

finite ibex
#

where was it announced being renamed back?

verbal gate
#

brave api

lethal horizonBOT
# verbal gate brave api

Hey Paul! ๐Ÿฆ

What would you like to know about the Brave API? Are you looking to:

  1. Set it up for web search in Clawdbot?
  2. Get an API key?
  3. Understand how it works?

Let me know and I'll point you in the right direction! Happy to help! ๐Ÿฆ

verbal gate
#

Set it up for web search in Clawdbot

still nest
lethal horizonBOT
# verbal gate Set it up for web search in Clawdbot

Here's how to set up Brave API for web search in Clawdbot! ๐Ÿฆ

1. Get Your API Key

  1. Go to https://brave.com/search/api/
  2. Create an account and choose the Data for Search plan (not "Data for AI" โ€” that won't work!)
  3. Generate your API key

2. Configure Clawdbot

Set it via the CLI (recommended):

clawdbot configure --section web

Or set the environment variable:

#
export BRAVE_API_KEY="your_key_here"

Or in your config file:

{
  tools: {
    web: {
      search: {
        provider: "brave",
        apiKey: "YOUR_API_KEY",
        maxResults: 5,
        timeoutSeconds: 30
      }
    }
#
  }
}

3. Restart the Gateway

clawdbot gateway restart

That's it! Your agent will now use Brave Search for web_search queries. ๐ŸŽ‰

Note: The Data for AI plan won't work โ€” you need the Data for Search plan. Brave has a free tier, so you can test it out first!

Let me know if you hit any snags! ๐Ÿฆ