Clawdbot Gateway Konfiguration

Vollständige Anleitung zur Konfiguration des Clawdbot AI-Assistenten-Gateways. Erfahren Sie mehr über Konfigurationsoptionen, Umgebungsvariablen und erweiterte Einstellungen.

Übersicht der Clawdbot Gateway Konfiguration

Das Clawdbot Gateway wird über ~/.clawdbot/clawdbot.json konfiguriert. Dieser Leitfaden behandelt alle Konfigurationsoptionen zur Anpassung Ihres Gateways.

Konfigurationsdatei

Speicherort

~/.clawdbot/clawdbot.json

Grundstruktur

{
  "gateway": {
    "port": 3010,
    "host": "localhost"
  },
  "providers": {},
  "agents": {},
  "tools": {},
  "sessions": {}
}

Gateway-Einstellungen

Kerneinstellungen

{
  "gateway": {
    "port": 3010,
    "host": "localhost",
    "logLevel": "info",
    "maxConnections": 100
  }
}

Optionen

OptionStandardBeschreibung
port3010WebSocket-Server-Port
hostlocalhostBind-Adresse
logLevelinfoLog-Detailgrad
maxConnections100Maximale gleichzeitige Verbindungen

Provider-Konfiguration

WhatsApp

{
  "providers": {
    "whatsapp": {
      "enabled": true,
      "authStrategy": "qr",
      "dmPolicy": "main"
    }
  }
}

Telegram

{
  "providers": {
    "telegram": {
      "enabled": true,
      "token": "${TELEGRAM_BOT_TOKEN}"
    }
  }
}

Discord

{
  "providers": {
    "discord": {
      "enabled": true,
      "token": "${DISCORD_BOT_TOKEN}",
      "intents": ["GUILDS", "GUILD_MESSAGES", "DIRECT_MESSAGES"]
    }
  }
}

Agenten-Konfiguration

Einzelner Agent

{
  "agents": {
    "main": {
      "workspace": "~/.clawdbot/workspace",
      "model": "claude-3-sonnet"
    }
  }
}

Multi-Agent

{
  "agents": {
    "main": {
      "workspace": "~/.clawdbot/agents/main/workspace"
    },
    "work": {
      "workspace": "~/.clawdbot/agents/work/workspace"
    }
  }
}

Sitzungskonfiguration

Sitzungsrichtlinie

{
  "sessions": {
    "dmScope": "main",
    "resetTime": "04:00",
    "idleMinutes": 60,
    "maxHistory": 100
  }
}

Sitzungsoptionen

OptionStandardBeschreibung
dmScopemainDM-Sitzungsbereich
resetTime04:00Tägliche Reset-Zeit
idleMinutesnullInaktivitäts-Timeout
maxHistory100Maximale Nachrichten im Verlauf

Werkzeugkonfiguration

Werkzeugrichtlinie

{
  "tools": {
    "profile": "full",
    "allow": ["*"],
    "deny": ["browser"]
  }
}

Provider-spezifische Werkzeuge

{
  "tools": {
    "byProvider": {
      "whatsapp": {
        "deny": ["exec"]
      }
    }
  }
}

Umgebungsvariablen

Verwendung von Umgebungsvariablen

{
  "providers": {
    "telegram": {
      "token": "${TELEGRAM_BOT_TOKEN}"
    }
  }
}

Häufige Variablen

VariableBeschreibung
CLAWDBOT_CONFIGKonfigurationsdateipfad
CLAWDBOT_LOG_LEVELLog-Level-Überschreibung
CLAWDBOT_PORTPort-Überschreibung

CLI-Konfiguration

Konfiguration überschreiben

clawdbot gateway start --port 3011 --log-level debug

Konfigurationsbefehle

# Aktuelle Konfiguration anzeigen
clawdbot config get

# Konfigurationswert setzen
clawdbot config set gateway.port 3011

# Auf Standardwerte zurücksetzen
clawdbot config reset

Erweiterte Einstellungen

Leistung

{
  "gateway": {
    "messageBuffer": 1000,
    "processTimeout": 30000,
    "streamChunkSize": 50
  }
}

Grenzen

{
  "limits": {
    "maxMessageLength": 10000,
    "maxConcurrentRequests": 10,
    "rateLimitPerMinute": 60
  }
}

Nächste Schritte