OpenClaw Configuration Generator
openclaw config edit). For full config structure, see the Configuration File Structure guide. Never paste real API keys or tokens into this page-use placeholders or environment variable names only.
Overview
The OpenClaw Configuration Generator helps you create valid gateway, channel, model provider, and agent configuration blocks without memorizing the schema. OpenClaw uses a single main config file (YAML or JSON) stored in your config directory (e.g. ~/.openclaw). This tool outputs snippets you can merge into that file after installing OpenClaw.
Why use a generator? New users often need a starting template; the generator provides common defaults (e.g. gateway bound to 127.0.0.1 for security) and reduces typos. Exact key names can vary by OpenClaw version-always check the official documentation for your release and run openclaw doctor after editing.
When to Use This Tool
- You are setting up OpenClaw for the first time and want a quick start config skeleton.
- You want to add a new channel (e.g. Telegram, Discord) and need the correct structure.
- You are adding a model provider (Anthropic, OpenAI, Ollama, etc.) and prefer a form over copying from docs.
- You are defining or duplicating an agent with a custom system prompt and model.
- You are learning the config file sections and want to see how gateway, channels, providers, and agents fit together.
For advanced options (memory, MCP, sandbox, tool policies), use the advanced configuration guide and the official schema.
Generate Config Snippets
Fill in the options below. Use environment variable names (e.g. ANTHROPIC_API_KEY) for secrets-do not enter real API keys or bot tokens here. Click Generate to produce YAML you can copy into your config.
Security Note
This page runs entirely in your browser; no data is sent to our servers. Still, never paste real API keys, bot tokens, or secrets into the form. Use environment variable names (e.g. ANTHROPIC_API_KEY) and set the actual values in your shell or a secrets manager. After merging generated snippets into your config, run openclaw doctor and follow the security best practices (e.g. bind gateway to localhost, restrict file permissions).
Next Steps After Generating Config
- Copy the generated YAML and merge it into your main config file. Use
openclaw config editto open the file, or place it at the path shown byopenclaw doctor. - Set your environment variables (e.g.
export ANTHROPIC_API_KEY=sk-...) or use a.envfile that your OpenClaw process can read. Never commit secrets to version control. - Restart the gateway if it is already running so it picks up the new config.
- Add more channels or agents by reusing this generator or editing the config manually. See the file structure guide and agent customization.
- Install and enable skills from ClawHub and reference them in your agent config; audit skills with skills security in mind.
If the gateway fails to start or reports validation errors, see configuration problems and the troubleshooting hub.
FAQ
- Does this generator support the full OpenClaw schema?
- No. It produces common snippets for gateway, one channel, one model provider, and one agent. For memory, MCP, sandbox, multiple channels, or provider-specific options, edit the config manually or refer to the config file structure and advanced configuration.
- My OpenClaw version uses different key names. What should I do?
- OpenClaw’s config schema can change between versions. Always check the official OpenClaw documentation for your release and adjust the generated YAML if needed.
openclaw doctorwill report schema or validation issues. - Can I generate JSON instead of YAML?
- This tool outputs YAML only. You can convert YAML to JSON with standard tools if your setup requires JSON. Most OpenClaw installations use YAML for readability.
- Where do I put the generated config?
- Merge the blocks into your main OpenClaw config file. Its location is typically
~/.openclaw/config.yaml(or similar); runopenclaw doctorto see the exact path. See where configuration lives.
Key Resources
- What is OpenClaw?
- Quick Start Guide
- Installation Hub
- Configuration Hub
- Security Best Practices
- Channel Setup - Telegram, WhatsApp, Discord, Slack, and more
- Use Case Examples
- Troubleshooting