Skip to main content
The generate command (default) scaffolds a production-ready OpenClaw stack with customizable services, presets, and deployment configurations.

Usage

create-better-openclaw [project-directory] [options]
create-better-openclaw generate [project-directory] [options]
If no project directory is specified, you’ll be prompted to enter one or the current directory will be used.

Arguments

project-directory
string
Directory name for the generated project. If not provided, you’ll be prompted interactively.

Options

Interactive mode

-y, --yes
boolean
default:"false"
Use default configuration and skip the interactive wizard.
--open
boolean
default:"false"
Open the web UI stack builder at https://better-openclaw.dev/new in your browser instead of using the CLI.

Service configuration

--services
string
Comma-separated service IDs to include in the stack (e.g., postgres,redis,qdrant).
--skills
string
Comma-separated skill pack IDs to include.
--preset
string
Use a preset stack configuration. Available: minimal, creator, researcher, devops, full.

AI provider configuration

--ai-providers
string
default:"openai"
Comma-separated AI providers: openai, anthropic, google, xai, deepseek, groq, openrouter, mistral, together, ollama, lmstudio, vllm.
--llm
string
LLM provider shortcut (e.g., anthropic, openai, ollama) that auto-configures the AI provider.

Proxy configuration

--proxy
string
default:"none"
Reverse proxy type: none, caddy, or traefik.
--proxy-http-port
number
default:"80"
Custom HTTP port for reverse proxy.
--proxy-https-port
number
default:"443"
Custom HTTPS port for reverse proxy.
--domain
string
Domain for reverse proxy with auto-SSL certificate provisioning.

Deployment configuration

--deployment
string
default:"local"
Deployment target: local, vps, homelab, or clawexa.
--deployment-type
string
default:"docker"
Deployment type: docker or bare-metal.
--deploy
string
default:"local"
Deploy target: local (default) or cloud-init (VPS provisioning).

Infrastructure options

--monitoring
boolean
Include monitoring stack (Prometheus, Grafana).
--no-monitoring
boolean
Explicitly exclude monitoring stack.
--gpu
boolean
default:"false"
Enable GPU passthrough for AI services.
--platform
string
default:"linux/amd64"
Target platform architecture: linux/amd64, linux/arm64, windows/amd64, macos/amd64, or macos/arm64.

Docker image options

--image
string
default:"official"
OpenClaw Docker image variant: official, coolify, or alpine.

Security options

--no-hardened
boolean
default:"false"
Disable security hardening (cap_drop, no-new-privileges flags).

Output options

--output-format
string
default:"directory"
Output format: directory, tar, or zip.
--force
boolean
default:"false"
Overwrite existing project directory if it exists.
--dry-run
boolean
default:"false"
Show what would be generated without writing any files.

Global options

--json
boolean
default:"false"
Output results as JSON for programmatic use.

Examples

Interactive mode

create-better-openclaw
Runs the interactive wizard to guide you through stack configuration.

Quick start with defaults

create-better-openclaw my-stack --yes
Generates a stack with default settings in the my-stack directory.

Using a preset

create-better-openclaw my-stack --preset researcher
Generates a researcher preset stack with services optimized for research workflows.

Custom service selection

create-better-openclaw my-stack --services postgres,redis,qdrant --ai-providers anthropic,openai
Generates a stack with specific services and AI providers.

With reverse proxy and SSL

create-better-openclaw my-stack --preset full --proxy caddy --domain openclaw.example.com
Generates a full stack with Caddy reverse proxy and automatic SSL for the specified domain.

With monitoring and GPU

create-better-openclaw my-stack --preset creator --monitoring --gpu
Generates a creator preset with monitoring stack and GPU passthrough enabled.

Dry run to preview

create-better-openclaw my-stack --preset minimal --dry-run
Shows what would be generated without creating any files.

Web UI

create-better-openclaw --open
Opens the visual stack builder at https://better-openclaw.dev/new in your browser.

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
Otherwise, the command will exit with an error.

Output

The command generates:
  • docker-compose.yml - Main Docker Compose configuration
  • .env - Environment variables and secrets
  • README.md - Setup and usage instructions
  • Service-specific configuration files
  • Optional: monitoring configs, proxy configs, backup scripts

Terminal output example

$ create-better-openclaw my-stack --preset researcher --monitoring

 Validating configuration...
 Resolving dependencies...
 Generating docker-compose.yml...
 Generating .env file...
 Writing service configs...

 Stack generated successfully!

  Services:  8
  Memory:    ~4096MB
  
  Next steps:
    cd my-stack
    docker compose up -d
    
  Access OpenClaw at http://localhost:3000

Build docs developers (and LLMs) love