Configuration Problems
Quick diagnostic
Not sure where to start? Run openclaw doctor first. It checks configuration, paths, and common issues. Then use the commands below to narrow down config-specific problems.
# Full health check (config, gateway, paths)
openclaw doctor
# Optional: try auto-fixing some issues
openclaw doctor --fix
# Check status and which config is in use
openclaw status
# Validate configuration file
openclaw config validate
# View recent logs (errors often mention config keys)
openclaw logs --tail 50
openclaw logs --follow
See Quick diagnostics and the main Troubleshooting Guide for the full diagnostic flow. If the gateway wonât start at all, start with Gateway Issues.
Summary: Configuration errors at a glance
| Symptom / error | Likely cause | What to do |
|---|---|---|
| Config validation failed | Invalid YAML/JSON, wrong keys, or schema mismatch | Fix syntax; check key names against official docs; run openclaw doctor and openclaw config validate. See Config validation failed below. |
| Session file path violations | Session path not allowed, missing, or bad permissions | Set a valid session path in config; ensure directory exists and is writable; check schema for allowed paths. See Session path violations. |
| Model not allowed | Agent references a model not in allowed list or wrong provider | Add model to provider config and/or allowlist; verify agentâs model matches a configured provider. See model provider setup and Model not allowed. |
| Missing scope errors | Config node or permission scope missing for an operation | Add required scope or config block per official docs; run openclaw config validate. |
| Schema node unsupported | Config structure doesnât match your OpenClaw version (e.g. channel adapter name changed) | Update config to match your versionâs schema; check release notes and config file structure; see Schema node unsupported. |
| Agent config moved / agent not found | Config file or path changed; CLI and gateway using different config | Ensure single config path for CLI and gateway; verify with openclaw doctor; see Agent config moved. |
Config validation failed
Errors like âConfig validation failedâ or âInvalid configurationâ mean the config file doesnât pass the schema or syntax checks. Common causes:
- YAML/JSON syntax: Wrong indentation, missing colons, unclosed quotes, or tabs instead of spaces (in YAML). Use a linter or
openclaw config validateto get line hints. - Wrong or deprecated keys: Key names and nesting can change between OpenClaw versions. Compare your file to the official OpenClaw documentation for your release.
- Wrong config file: You might be editing a file that isnât the one OpenClaw loads. Run
openclaw doctorto see which config path is in use (see where configuration lives).
Steps:
- Run
openclaw config validateandopenclaw doctor; note the reported error and file/line if given. - Open the config with
openclaw config edit(so you edit the correct file) and fix the reported key or syntax. - If you recently upgraded, read release notes and update or remove deprecated keys. See Configuration file structure for main sections (gateway, channels, model providers, agents, skills, memory).
Session file path violations
OpenClaw stores session and state data in a configured path. If that path is invalid, missing, or not allowed by your config, you may see session file path violations or similar errors.
- Path must be allowed: Some setups restrict which directories can be used for session data. Check your config schema for session/storage path options and allowed values.
- Directory must exist and be writable: Create the directory if needed and set permissions so the user running the gateway can write to it.
- Absolute vs relative: Prefer an absolute path for session data to avoid confusion when starting the gateway from different working directories.
See directory layout and memory configuration for where session and state are typically stored. After changing paths, run openclaw doctor and restart the gateway.
Model not allowed
Errors like âModel not allowedâ or âModel X is not configuredâ mean the agent is trying to use a model that isnât enabled or doesnât exist in your model provider configuration.
- Provider and model name: In the config, each provider (Anthropic, OpenAI, Google, Ollama, etc.) has a list of models. The agentâs
model(or equivalent) must match one of those. See model provider setup and per-provider guides: Anthropic, OpenAI, Ollama. - Allowlist / allow list: Some versions require an explicit allowlist of model names. Add the model name to the providerâs allowed models in config.
- API key and provider: Ensure the provider block has a valid API key (or env var) and the model name matches what that provider supports. For API errors (rate limits, billing), see Model & API Errors.
Missing scope errors
Missing scope errors usually mean a required configuration block or permission scope is absent. For example, a channel might require a scope that isnât set, or an agent might need a capability that isnât declared.
- Check the exact error message for the missing scope or node name.
- Consult the official OpenClaw documentation for the channel, agent, or feature youâre configuring-add the required block or scope.
- Run
openclaw config validateandopenclaw doctor; they may point to the missing section.
Schema node unsupported
Errors like âSchema node unsupportedâ or âChannel schema unavailableâ mean part of your config uses a structure or key that your OpenClaw version doesnât recognize. This often happens after an upgrade or when copying config from another version.
- Version mismatch: Adapter names, channel schema, and top-level keys can change between versions. Read the release notes for your version and the official docs.
- Typos in channel id or adapter: Validate with
openclaw config validateandopenclaw doctor. Fix any reported path or schema errors (e.g. wrongadapteror channelid). - Config file location: OpenClaw may be reading a different config file than the one you edited.
openclaw doctorshows which config file is in use-see Configuration file guide.
For channel-specific schema errors, see Channel Errors (e.g. Telegram, WhatsApp, Discord).
Agent config moved or agent not found
If you see âAgent config movedâ, âAgent not foundâ, or the gateway canât find channels/agents after a config change, the CLI and gateway may be using different config files or paths.
- Single config: Ensure the same user and environment (e.g. same
OPENCLAW_CONFIG_PATHif you use it) are used when runningopenclawand when the gateway starts. Otherwise one may read an old or different file. - Verify path: Run
openclaw doctorto see which config file the CLI expects. If you start the gateway manually (e.g. systemd, Docker), ensure that process uses the same path. See where configuration lives. - After moving or copying config: Update any scripts or service files that point to the config path. Restart the gateway after changing the path.
For defining and naming agents, see Agent customization.
Step-by-step config debugging
- Run diagnostics:
openclaw doctorandopenclaw doctor --fix. - Confirm config in use:
openclaw status(or doctor output) shows the config path. Edit only that file. - Validate:
openclaw config validateand fix any reported errors. - Check logs:
openclaw logs --tail 50oropenclaw logs --followfor messages that mention config keys or schema. - Restart gateway: After fixing config, restart so the gateway reloads:
openclaw restart(or your service manager).
Related configuration guides
- Configuration file structure - Where config lives, main sections, editing safely
- Model provider setup - Anthropic, OpenAI, Ollama, and others
- Agent customization - System prompts, models, skills per agent
- Advanced configuration - MCP, sandbox, tool policies, logging
- Credential management - API keys and secrets (avoid putting raw keys in config)
Getting help
If you're still stuck:
- Quick diagnostics - Run
openclaw doctorand basic checks - Troubleshooting Guide - Overview of all error types
- Community Hub - Ask in Discord or community channels
- GitHub issues - Search existing issues or open a new one (include OpenClaw version, redacted config snippet, and full error message)
When reporting, include: OpenClaw version, output of openclaw doctor (redact paths if sensitive), the exact error message, and a redacted config snippet (no API keys or tokens).