create-better-openclaw
v1.0.2
Published
Scaffold production-ready OpenClaw Docker Compose stacks in one command. 95+ services, presets, auto-wiring, and skill packs.
Downloads
345
Maintainers
Readme
@better-openclaw/cli
The official Command Line Interface (CLI) for rapidly scaffolding production-ready OpenClaw stacks directly to your filesystem. Connects to @better-openclaw/core to build and output tailored Docker Compose & native hybrid topologies.
Installation & Usage
You can use the CLI seamlessly using pnpx, npx, or standard global installation mechanisms. Node.js >= 20 is required.
# Interactive interactive builder (Visual Wizard)
pnpx create-better-openclaw@latest [my-directory]
# Headless / Pipeline generation (Fast track with presets)
pnpx create-better-openclaw@latest --preset researcher --yes
# Custom Advanced Scaffold
pnpx create-better-openclaw@latest --services ollama,qdrant,n8n --skills ollama-local-llm,qdrant-memoryFeatures
- Interactive Wizard (Terminal UI): Guides you smoothly through Platform architecture, Custom vs Preset service selection, AI Skill Packs, and precise deployment/proxy variables. Driven by highly optimized
@clack/prompts. - Intelligent Dependency Graphs: Ensures prerequisite tools are correctly enabled.
- Multiple Platform Topologies: Support targeting
linux/amd64,linux/arm64,macos, andwindows. - Multiple Output Formats: Directly outputs to a
directory, atar.gzarchive, or azipbundle via flags (--output-format zip).
Non-Interactive CLI Options
This tool is highly suited for CI/CD environments or scripting automation.
| Argument | Definition |
|----------|------------|
| -y, --yes | Silently build using default configuration mappings |
| --preset <id> | Scaffold immediately using predefined blueprints (minimal, creator, researcher, devops, full) |
| --services <ids> | Explicit comma-separated list of service IDs to install |
| --skills <ids> | Explicit comma-separated list of companion Skill Pack IDs to mount into agents |
| --proxy <type> | Assign Reverse proxy networking mode: none, caddy, traefik |
| --domain <domain> | Fully qualified domain mapped to wildcard auto-SSL proxies |
| --monitoring | Embed Prometheus, Grafana, and Cadvisor telemetry |
| --gpu | Passthrough host GPU telemetry to NVIDIA/AMD hardware integrations for deployed LLMs |
| --deployment-type <type> | Defines compute execution layer boundaries. Options: docker (Full containerization) vs. bare-metal (Native node execution + Docker fallback layer where required). |
| --output-format <type> | File emission mechanism: directory, zip, tar |
| --dry-run | Build generation outputs in memory for trace logging without writing to disk |
| --open | Escape terminal workflow and launch the Visual Web UI better-openclaw.dev platform |
Deploy to PaaS
Deploy a generated stack directly to a self-hosted Dokploy or Coolify instance:
# Interactive deploy wizard
pnpx create-better-openclaw deploy
# Non-interactive deploy
pnpx create-better-openclaw deploy \
--provider dokploy \
--url https://dokploy.example.com \
--api-key YOUR_API_KEY \
--dir ./my-stack| Flag | Description |
|--------------------|----------------------------------------------------------|
| --provider <id> | PaaS provider: dokploy or coolify |
| --url <url> | Instance URL of the PaaS platform |
| --api-key <key> | API key or bearer token |
| --dir <path> | Directory containing docker-compose.yml (default: .) |
If any required flag is missing, the CLI falls back to the interactive wizard which guides you through provider selection, URL, and API key entry.
Package Development
The CLI compiles against standard TypeScript configurations into dual CJS/MJS mappings for backwards execution compatibility.
pnpm build # Compile via tsdown
pnpm dev # Hot-reload transpilation watch mode
pnpm test # CLI unit execution