OpenClaw Config Edit: Komplet Opsætnings- og Konfigurationsguide (2026)
Mestr openclaw config edit-kommandoer til WhatsApp, Discord, Telegram, Ollama og mere. Trin-for-trin guide til konfiguration af kanaler, modeller, udbydere og løsning af almindelige OpenClaw-konfigurationsfejl.
Kort Fortalt
Hurtig reference til de mest almindelige OpenClaw config-kommandoer:
openclaw config edit
openclaw config set channels.whatsapp.enabled true
openclaw config set model.provider openai
openclaw config set model.name gpt-4o
openclaw config show
openclaw doctor
openclaw doctor --fix
openclaw config reset
Hvad er OpenClaw?
OpenClaw er et open-source AI-assistent framework, der forbinder store sprogmodeller med beskedkanaler som WhatsApp, Discord, Telegram og Slack. Det understøtter flere modeludbydere — OpenAI, Anthropic, Ollama (lokale modeller), Google og mere — og kan udvides med brugerdefinerede skills og plugins.
Kernen i OpenClaw er dets konfigurationssystem. Næsten alt styres gennem config-filer. At mestre openclaw config edit er nøglen til at få OpenClaw til at køre som du vil.
openclaw config edit: Det grundlæggende
Åbning af config-editoren
openclaw config edit
Dette åbner din konfigurationsfil i din standard terminaleditor. Config-filen er typisk placeret i ~/.openclaw/config.yaml eller ~/.config/openclaw/config.yaml.
Config-filstruktur
model:
provider: openai
name: gpt-4o
temperature: 0.7
max_tokens: 4096
channels:
whatsapp:
enabled: false
phone_number_id: ""
access_token: ""
discord:
enabled: false
bot_token: ""
telegram:
enabled: false
bot_token: ""
slack:
enabled: false
bot_token: ""
app_token: ""
skills:
- web_search
- calculator
- weather
stt:
provider: whisper
model: whisper-1
system_prompt: "You are a helpful assistant."
Indstilling af individuelle værdier
openclaw config set model.provider anthropic
openclaw config set model.name claude-sonnet-4-6
openclaw config set model.temperature 0.5
Be first to build with AI
Y Build is the AI-era operating system for startups. Join the waitlist and get early access.
Opsætning af kanaler
openclaw config set channels.whatsapp.enabled true
openclaw config set channels.whatsapp.phone_number_id "YOUR_PHONE_NUMBER_ID"
openclaw config set channels.whatsapp.access_token "YOUR_ACCESS_TOKEN"
openclaw config set channels.whatsapp.verify_token "YOUR_VERIFY_TOKEN"
openclaw config set channels.whatsapp.webhook_url "https://your-domain.com/webhook/whatsapp"
Discord
openclaw config set channels.discord.enabled true
openclaw config set channels.discord.bot_token "YOUR_DISCORD_BOT_TOKEN"
Telegram
openclaw config set channels.telegram.enabled true
openclaw config set channels.telegram.bot_token "YOUR_TELEGRAM_BOT_TOKEN"
openclaw config set channels.telegram.mode polling
Til produktion: brug webhook-tilstand.
Slack
openclaw config set channels.slack.enabled true
openclaw config set channels.slack.bot_token "xoxb-YOUR-BOT-TOKEN"
openclaw config set channels.slack.app_token "xapp-YOUR-APP-TOKEN"
Konfiguration af modeludbydere
OpenAI
openclaw config set model.provider openai
openclaw config set model.name gpt-4o
export OPENAI_API_KEY="sk-..."
Anthropic (Claude)
openclaw config set model.provider anthropic
openclaw config set model.name claude-sonnet-4-6
export ANTHROPIC_API_KEY="sk-ant-..."
Ollama (Lokale modeller)
ollama pull llama3.3
openclaw config set model.provider ollama
openclaw config set model.name llama3.3
openclaw config set model.base_url "http://localhost:11434"
Google (Gemini)
openclaw config set model.provider google
openclaw config set model.name gemini-2.5-pro
export GOOGLE_API_KEY="..."
xAI (Grok)
openclaw config set model.provider openai
openclaw config set model.name grok-4.1
openclaw config set model.base_url "https://api.x.ai/v1"
export OPENAI_API_KEY="xai-..."
Almindelige config-fejl og løsninger
Fejl: "Unknown config key"
Tjek for tastefejl. Kør openclaw config show for at se alle gyldige nøgler.
Fejl: "Channel auto-enabled without credentials"
openclaw config set channels.whatsapp.enabled false
openclaw config set channels.discord.enabled false
openclaw config set channels.slack.enabled false
Fejl: "Model provider not configured"
Indstil den tilsvarende miljøvariabel:
echo 'export ANTHROPIC_API_KEY="sk-ant-..."' >> ~/.zshrc
source ~/.zshrc
Brug af openclaw doctor
openclaw doctor
openclaw doctor --fix
Avanceret konfiguration
Brugerdefinerede skills
skills:
- web_search
- calculator
- custom_skill:
path: ./my-skills/custom_tool.py
config:
api_key_env: CUSTOM_API_KEY
Tale-til-tekst (STT)
stt:
provider: whisper
model: whisper-1
language: auto
Tuya Smart Home Integration
tuya:
enabled: true
access_id: "YOUR_TUYA_ACCESS_ID"
access_key: "YOUR_TUYA_ACCESS_KEY"
endpoint: "https://openapi.tuyaus.com"
Flere modelkonfigurationer
models:
default:
provider: openai
name: gpt-4o
fast:
provider: ollama
name: llama3.3
reasoning:
provider: anthropic
name: claude-opus-4-6
Ofte stillede spørgsmål
Hvor er OpenClaw config-filen gemt?
Standard placering er ~/.openclaw/config.yaml. Kør openclaw config show --path for den præcise placering.
Kan jeg bruge OpenClaw uden cloud API?
Ja. Konfigurer Ollama som modeludbyder og brug Telegram i polling-tilstand.
Hvordan opdaterer jeg OpenClaw?
pip install --upgrade openclaw
Kan jeg køre flere kanaler samtidigt?
Ja. OpenClaw håndterer dem samtidigt.
Hvordan nulstiller jeg min config?
openclaw config reset
Vil du have noget enklere?
Y Build håndterer hele stacken — deployment, produktvideoer, AI SEO og analytics. Ingen config-filer. Ingen terminal. Bare byg og ship. Start gratis →Kilder:
Be first to build with AI
Y Build is the AI-era operating system for startups. Join the waitlist and get early access.