# OpenClaw Configuration Overview

OpenClaw is highly customizable. This guide covers essential and advanced configuration options.

🤖

AI Model Setup

Configure Claude, GPT, or local models via Ollama

Configure →
🎭

SOUL.md Personality

Customize your AI agent's personality and behavior

Customize →
💬

Messaging Platforms

Connect Discord, Telegram, WhatsApp, Slack, and more

Integrate →
🌐

Web Interface

Configure the local web dashboard and settings

Setup →
🔌

Skills & Plugins

Install from 5,705 community skills on ClawHub

Browse →
🔒

Security Settings

Protect your API keys and configure security best practices

Secure →

1 Configure OpenClaw AI Models

OpenClaw is model-agnostic and supports multiple AI models. Configure your preferred models here.

Option 1: Cloud-Based Models

Anthropic Claude (Recommended)

Configure Claude Opus 4.6, Claude 4.5 series (Opus, Sonnet, Haiku), or older Claude models.

Get Your API Key:
  1. Visit console.anthropic.com
  2. Sign up or log in to your account
  3. Go to API Keys section and create a new key
  4. Add credits to your account
Configure in OpenClaw:
bash
openclaw config set model claude-opus-4-6
openclaw config set apiKey YOUR_CLAUDE_API_KEY
Available Claude Models:
  • claude-opus-4-6 - Latest flagship (Feb 2026)
  • claude-opus-4-5 - Most capable with effort parameter
  • claude-sonnet-4-5 - Best coding performance, 1M token context
  • claude-haiku-4-5 - Fastest, cost-efficient

OpenAI GPT

Configure GPT-5, GPT-5.3-Codex, or other OpenAI models.

Get Your API Key:
  1. Visit platform.openai.com
  2. Create an account or sign in
  3. Navigate to API keys and create a new key
  4. Add payment method and credits
Configure in OpenClaw:
bash
openclaw config set model gpt-5
openclaw config set apiKey YOUR_OPENAI_API_KEY
Available GPT Models:
  • gpt-5 - Latest flagship model
  • gpt-5-3-codex - Most capable agentic coding model (Feb 2026)

Option 2: Local Models with Ollama (Free)

Ollama Integration

Run AI models locally on your computer with no API costs. Requires models with ≥64,000 token context.

Install Ollama:
bash
curl -fsSL https://ollama.ai/install.sh | sh
Launch OpenClaw with Ollama:
bash
ollama launch openclaw
Recommended Local Models:
  • glm-5 - Zhipu AI's latest open model
  • qwen3-coder - Qwen series coding specialist
  • gpt-oss:20b / gpt-oss:120b - Open-source GPT variants
  • kimi-k2.5 - Local deployment of Moonshot's model
Hardware Requirements:
  • 8GB+ RAM for smaller models
  • 16GB+ RAM for larger models
  • GPU recommended for faster inference

Option 3: OpenRouter Auto (Smart Routing)

OpenRouter Integration

Automatically select the most cost-effective model based on task complexity.

Configure OpenRouter:
bash
openclaw config set model openrouter/openrouter/auto
openclaw config set apiKey YOUR_OPENROUTER_API_KEY

Get OpenRouter API key from openrouter.ai

2 Configure OpenClaw SOUL.md Personality System

SOUL.md is OpenClaw's revolutionary personality configuration system. Customize your AI agent's personality, values, and communication style.

What is SOUL.md?

SOUL.md is a Markdown file that defines your agent's personality, values, communication style, and behavior. Every time your agent wakes, it reads SOUL.md first - "it reads itself into being."

Peter Steinberger's Soul Philosophy:

"Be the assistant you'd want to talk to at 2am. Not a corporate drone. Not a sycophant. Just... good."

- Peter Steinberger, Creator of OpenClaw

Key Principles:

  • Have opinions. Strong ones. Stop hedging with "it depends."
  • Delete corporate speak. If it sounds like an employee handbook, it doesn't belong.
  • Skip pleasantries. No "Great question" or "I'd be happy to help." Just answer.
  • Be brief. If the answer fits in one sentence, that's what you get.
  • Use humor. Not forced jokes - natural wit from being smart.
  • Call things out. If something's dumb, say so. Charm over cruelty.
  • Swearing allowed. A well-placed expletive hits different than corporate praise.

Locate Your SOUL.md File

Each OpenClaw workspace contains its own SOUL.md file:

bash
cd ~/.openclaw/workspaces/default
nano SOUL.md

Example SOUL.md Template

markdown
# SOUL.md - My AI Agent's Personality

## Core Identity
I am a knowledgeable, direct assistant who values efficiency and clarity.

## Communication Style
- Brief and to the point
- No corporate pleasantries
- Honest feedback, even when critical
- Humor when appropriate

## Values
- Truth over politeness
- Action over discussion
- Simplicity over complexity
- Results over process

## Behavior Rules
- Never say 'I'd be happy to help' - just help
- If the answer is one sentence, give one sentence
- Call out inefficient approaches
- Suggest better alternatives when I see them

## Areas of Focus
- Software development and coding
- System architecture and design
- Productivity and workflow optimization
- Technical problem-solving

Community SOUL.md Templates

💡 Tip: After editing SOUL.md, restart OpenClaw for changes to take effect: openclaw restart

3 Configure OpenClaw Messaging Platform Integration

Connect OpenClaw to messaging platforms to chat with your AI assistant from anywhere. OpenClaw supports 50+ integrations.

💬

Discord Integration

Setup Steps:

  1. Visit Discord Developer Portal
  2. Create a new application
  3. Go to "Bot" section and create a bot
  4. Copy the bot token
  5. Enable necessary intents (Message Content, Server Members)

Configure in OpenClaw:

bash
openclaw config set discord.token YOUR_DISCORD_BOT_TOKEN
openclaw platform enable discord
✈️

Telegram Integration

Setup Steps:

  1. Open Telegram and search for @BotFather
  2. Send /newbot command
  3. Follow prompts to create your bot
  4. Copy the bot token provided

Configure in OpenClaw:

bash
openclaw config set telegram.token YOUR_TELEGRAM_BOT_TOKEN
openclaw platform enable telegram
📱

WhatsApp Integration

Setup Steps:

  1. Enable WhatsApp platform in OpenClaw
  2. Scan QR code with WhatsApp mobile app
  3. Session will be saved automatically

Configure in OpenClaw:

bash
openclaw platform enable whatsapp
# Follow on-screen QR code instructions

All Supported Platforms

Discord
Telegram
WhatsApp
Slack
Microsoft Teams
Signal
iMessage (BlueBubbles)
Google Chat
Matrix
Zalo

OpenClaw supports 50+ integrations total. See official docs for complete list.

4 Configure OpenClaw Web Interface

The OpenClaw web interface provides a local dashboard for chatting and managing your AI assistant.

Accessing the Web Interface

By default, OpenClaw web interface runs at:

http://127.0.0.1:18789/

Change Port (Optional)

If port 18789 is already in use, configure a different port:

bash
openclaw config set port 8080
openclaw restart

Web Interface Features (v2026.2.6)

  • Token Usage Dashboard - Track API usage and costs
  • Chat Interface - Send messages and view conversation history
  • Platform Management - Enable/disable messaging platforms
  • Skill Browser - Browse and install skills from ClawHub
  • Settings Panel - Configure OpenClaw settings

Remote Access (Advanced)

⚠️ Security Warning: Exposing OpenClaw to the internet without proper security can be dangerous. Only do this if you understand the risks.

For remote access, use SSH tunneling or a VPN instead of exposing the port directly.

5 Configure OpenClaw Skills & Plugins

Extend OpenClaw's capabilities with skills from the ClawHub marketplace. 5,705 community skills available as of Feb 2026.

OpenClaw Ecosystem

  • 5,705 skills on ClawHub marketplace (Feb 7, 2026)
  • 53 official bundled skills included with OpenClaw
  • 25 core tools for base functionality
  • 700+ total skills in ecosystem

Browse Skills

Install a Skill

bash
openclaw skill install <skill-name>
openclaw restart

List Installed Skills

bash
openclaw skill list

Security Scanning (v2026.2.6+)

All ClawHub skills are now scanned with VirusTotal threat intelligence for safety.

✓ VirusTotal Integration - Code Insight capability scans all skills

6 OpenClaw Security Configuration Best Practices

Protect your API keys and configure security settings to keep your OpenClaw installation secure.

🔒 Critical Security Practices

  • Never commit API keys to Git - Use environment variables or secure vaults
  • Don't expose port 18789 to internet - Use SSH tunneling or VPN for remote access
  • Review skills before installing - 341 malicious skills were found on ClawHub
  • Keep OpenClaw updated - Security patches are released regularly
  • Use strong authentication - Enable auth for web interface in production

API Key Storage

Store API keys in environment variables instead of config files:

bash
export ANTHROPIC_API_KEY='your-key-here'
export OPENAI_API_KEY='your-key-here'

Known Vulnerabilities

CVE-2026-25253 - Critical RCE vulnerability (CVSS 8.8)

  • Patched in version 2026.1.29
  • Update to latest version immediately
  • Run: npm update -g openclaw@latest

Skill Safety

  • Use VirusTotal-scanned skills (v2026.2.6+)
  • Review skill source code before installing
  • 7.1% of skills mishandle secrets - be cautious
  • Uninstall unused skills regularly

7 Advanced OpenClaw Configuration

Memory & Persistence Configuration

Enable persistent memory with Voyage AI integration:

bash
openclaw config set memory.enabled true
openclaw config set memory.provider voyage

Configuration File Location

OpenClaw stores configuration in:

  • macOS/Linux: ~/.openclaw/config.json
  • Windows: %USERPROFILE%\.openclaw\config.json

View All Configuration

bash
openclaw config list

Reset Configuration

bash
openclaw config reset
# Warning: This will delete all configuration!

Next Steps After Configuring OpenClaw