generate command (default) scaffolds a production-ready OpenClaw stack with customizable services, presets, and deployment configurations.
Usage
Arguments
Directory name for the generated project. If not provided, you’ll be prompted interactively.
Options
Interactive mode
Use default configuration and skip the interactive wizard.
Open the web UI stack builder at https://better-openclaw.dev/new in your browser instead of using the CLI.
Service configuration
Comma-separated service IDs to include in the stack (e.g.,
postgres,redis,qdrant).Comma-separated skill pack IDs to include.
Use a preset stack configuration. Available:
minimal, creator, researcher, devops, full.AI provider configuration
Comma-separated AI providers:
openai, anthropic, google, xai, deepseek, groq, openrouter, mistral, together, ollama, lmstudio, vllm.LLM provider shortcut (e.g.,
anthropic, openai, ollama) that auto-configures the AI provider.Proxy configuration
Reverse proxy type:
none, caddy, or traefik.Custom HTTP port for reverse proxy.
Custom HTTPS port for reverse proxy.
Domain for reverse proxy with auto-SSL certificate provisioning.
Deployment configuration
Deployment target:
local, vps, homelab, or clawexa.Deployment type:
docker or bare-metal.Deploy target:
local (default) or cloud-init (VPS provisioning).Infrastructure options
Include monitoring stack (Prometheus, Grafana).
Explicitly exclude monitoring stack.
Enable GPU passthrough for AI services.
Target platform architecture:
linux/amd64, linux/arm64, windows/amd64, macos/amd64, or macos/arm64.Docker image options
OpenClaw Docker image variant:
official, coolify, or alpine.Security options
Disable security hardening (cap_drop, no-new-privileges flags).
Output options
Output format:
directory, tar, or zip.Overwrite existing project directory if it exists.
Show what would be generated without writing any files.
Global options
Output results as JSON for programmatic use.
Examples
Interactive mode
Quick start with defaults
my-stack directory.
Using a preset
Custom service selection
With reverse proxy and SSL
With monitoring and GPU
Dry run to preview
Web UI
Non-interactive mode requirements
When running in a non-TTY environment (e.g., CI/CD), you must provide one of:--yes- Use default configuration--preset <name>- Use a preset--services <ids>- Provide service IDs
Output
The command generates:docker-compose.yml- Main Docker Compose configuration.env- Environment variables and secretsREADME.md- Setup and usage instructions- Service-specific configuration files
- Optional: monitoring configs, proxy configs, backup scripts